[U-Boot] [PATCH v4 3/3] cmd: mdio: Add new parameter to access MMD PHY registers

Vladimir Oltean vladimir.oltean at nxp.com
Thu Jan 24 20:12:57 UTC 2019


On 1/24/19 10:08 PM, Carlo Caione wrote:
> On 24/01/2019 20:04, Vladimir Oltean wrote:
>> On 1/24/19 10:01 PM, Carlo Caione wrote:
>>> On 24/01/2019 19:56, Vladimir Oltean wrote:
>>>> On 1/24/19 10:56 AM, Carlo Caione wrote:
>>
>> No, I mean instead of doing "mdio rmmd 3.1" to do "mdio read 3.1"
>> (basically not define a new command).
> 
> Ooooh, I think you can do that only on C45 PHYs, not on C22.
> (tested on my board and it didn't work FWIW).
> 
> Cheers,
> 
> --
> Carlo Caione
> 
> 

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?


-Vladimir


More information about the U-Boot mailing list