[U-Boot] [PATCH v3 1/2] dm: mdio: add a uclass for MDIO

Simon Glass sjg at chromium.org
Thu Jun 14 12:58:38 UTC 2018


Hi Ken,

On 12 June 2018 at 22:33,  <make at marvell.com> wrote:
> From: Ken Ma <make at marvell.com>
>
> Add a uclass which provides access to MDIO busses and includes
> operations required by MDIO.
> The implementation is based on the existing mii/phy/mdio data
> structures and APIs.
> This patch also adds evice tree binding for MDIO bus.
>
> Signed-off-by: Ken Ma <make at marvell.com>
> Reviewed-by: sjg at chromium.org, joe.hershberger at ni.com
> ---
>
> Changes in v3:
> - Move mdio uclass implementation to driver/net folder;
> - Replace flat-tree functions with livetree functions and update codes
>   and comments to be consistent with driver-model codes style;
> - Put struct mii_dev to uclass platdata to avoid the mdio alloc and
>   let driver model framework to alloc the memroy automatically,
>   meanwhile the mii bus link initialization is added,
>

I this this looks right from a DM perspective but it is missing a
sandbox driver and a simple test of the functions that you define
(presumably put this in test/dm/mdio.c)

Regards,
Simon


More information about the U-Boot mailing list