[U-Boot] [PATCH 1/5] net: mdio: Add mdio_free() and mdio_unregister() API

Bin Meng bmeng.cn at gmail.com
Fri Sep 11 03:45:34 CEST 2015


Hi Joe,

On Fri, Sep 11, 2015 at 6:30 AM, Joe Hershberger
<joe.hershberger at gmail.com> wrote:
> Hi Bin,
>
> On Fri, Sep 4, 2015 at 9:53 AM, Bin Meng <bmeng.cn at gmail.com> wrote:
>> Currently there is no API to uninitialize mdio. Add two APIs for this.
>
> Is this causing some failure in the short term? The plan is to move
> eth phy support to driver model in the next year. If it is not needed
> for a device to function then it would be nice to not spend effort on
> this API.

Good to know we have plan to convert PHY support to driver model.

>
> If it is needed short term, then the approach looks fine.
>

Yes, it is needed, otherwise for ethernet device which depends on this
PHY support it will fail to probe() for the 2nd time as the MDIO
resource are not cleaned up.
In the future when we convert PHY support to driver model, we won't
miss this part if these are added now.

[snip]

Regards,
Bin


More information about the U-Boot mailing list