[U-Boot] [PATCH 1/2 v3] net: introduce MDIO DM class for MDIO devices

Bin Meng bmeng.cn at gmail.com
Tue Jun 4 02:18:42 UTC 2019


Hi Alex,

On Tue, Jun 4, 2019 at 12:11 AM Alex Marginean <alexm.osslist at gmail.com> wrote:
>
> Adds UCLASS_MDIO DM class supporting MDIO buses that are probed as
> stand-alone devices.  Useful in particular for systems that support
> DM_ETH and have a stand-alone MDIO hardware block shared by multiple
> Ethernet interfaces.
>
> Signed-off-by: Alex Marginean <alexm.osslist at gmail.com>
> ---
>
> Changes in v2:
>         - fixed several comments using wrong API names
>         - dropped dm_ from names of internal functions that don't use udevice *
>         - fixed UCLASS driver name
>         - added missing mdio_unregister in dm_mdio_pre_remove
>         - added a comment on why spaces in names aren't ok
>         - added a comment on how static mdio_read/_write/_reset functions
>         are used
> Changes in v3:
>         - none
>
>  cmd/mdio.c             |   5 ++
>  drivers/net/Kconfig    |  13 +++++
>  include/dm/uclass-id.h |   1 +
>  include/miiphy.h       |  49 ++++++++++++++++++
>  net/Makefile           |   1 +
>  net/mdio-uclass.c      | 115 +++++++++++++++++++++++++++++++++++++++++
>  6 files changed, 184 insertions(+)
>  create mode 100644 net/mdio-uclass.c
>

Reviewed-by: Bin Meng <bmeng.cn at gmail.com>

Please keep the RoB tag if there is nothing changed so that I know
this has been reviewed :)

Regards,
Bin


More information about the U-Boot mailing list