[U-Boot] [PATCH 1/2 v2] net: introduce MDIO DM class for MDIO devices
Bin Meng
bmeng.cn at gmail.com
Mon Jun 3 12:52:11 UTC 2019
On Mon, Jun 3, 2019 at 5:47 PM 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
>
> 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>
More information about the U-Boot
mailing list