[U-Boot] Why do we need both MDIO and MII commands

Ramon Fried rfried.dev at gmail.com
Fri Sep 13 12:52:58 UTC 2019


On Thu, Sep 12, 2019 at 5:55 PM Tom Rini <trini at konsulko.com> wrote:
>
> On Wed, Sep 11, 2019 at 10:58:22PM +0300, Ramon Fried wrote:
>
> > Hi.
> > Marek raised this issue in IRC several weeks ago and I was wondering
> > the same. why do we support this two commands which accomplish
> > basically the same ?
> >
> > Can we ditch the mii comand and move the missing functionality to the
> > mdio command ?
>
> Patch that also include a compatibility option would be a good thing to
> see, yes.
I learned the history of both of the commands and and also read some
of the IEEE standard
regarding the mii command (clause 22) and mdio command (clause 45).
Basically, clause 45 is en extension which is not supported by old devices.
Addressing method is different, and I think it will be cumbersome to
create a single command
that handles both.
When I rethink it, I think we should keep both the commands.
Any thoughts ?
Thanks,
Ramon.
>
> --
> Tom


More information about the U-Boot mailing list