From: Carlo Caione Date: Thu, 24 Jan 2019 20:19:47 +0000 Subject: [U-Boot] [PATCH v4 3/3] cmd: mdio: Add new parameter to access MMD PHY registers In-Reply-To: References: <20190124085600.18886-1-ccaione@baylibre.com> <20190124085600.18886-4-ccaione@baylibre.com> <424d9c49-721c-9046-e46f-a86858adcdce@baylibre.com> <7aba15b6-087c-5216-a985-32b160d83a0d@baylibre.com> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 24/01/2019 20:12, Vladimir Oltean wrote: > > I still think I haven't successfully made my point. > If "mdio read 3.1" is a C45-only thing, "mdio read 1" is a C22-only > thing, then why do you need a new command "mdio rmmd 3.1" to do C45 > emulation over C22? Is there any overlap I'm missing that mandates a new > syntax to differentiate? Can the command not simply see whether the PHY > is C22, and if it is and the MMD address is non-zero, just emulate it > via 0xd and 0xe writes? Ok, I got your point now. I didn't give much thought on this TBH, good question. Do we currently have a way in U-Boot to differentiate between C22 and C45 PHYs? The generic_10g PHY should be C45 but is that the only one currently supported? -- Carlo Caione