]> git.dujemihanovic.xyz Git - u-boot.git/commit
net: introduce helpers to get PHY interface mode from a device/ofnode
authorMarek Behún <marek.behun@nic.cz>
Wed, 6 Apr 2022 22:33:01 +0000 (00:33 +0200)
committerRamon Fried <ramon@neureality.ai>
Sun, 10 Apr 2022 05:44:12 +0000 (08:44 +0300)
commit123ca114e07ecf28aa2538748d733e2b22d8b8b5
tree0a5481e51e4e50b33daf4d10f37574f6f797b04f
parent9c06b4815ce1d663085c214133762614bba79fbe
net: introduce helpers to get PHY interface mode from a device/ofnode

Add helpers ofnode_read_phy_mode() and dev_read_phy_mode() to parse the
"phy-mode" / "phy-connection-type" property. Add corresponding UT test.

Use them treewide.

This allows us to inline the phy_get_interface_by_name() into
ofnode_read_phy_mode(), since the former is not used anymore.

Signed-off-by: Marek Behún <marek.behun@nic.cz>
Reviewed-by: Ramon Fried <rfried.dev@gmail.com>
Tested-by: Patrice Chotard <patrice.chotard@foss.st.com>
41 files changed:
arch/sandbox/dts/test.dts
board/st/stm32f746-disco/stm32f746-disco.c
drivers/core/ofnode.c
drivers/core/read.c
drivers/net/ag7xxx.c
drivers/net/altera_tse.c
drivers/net/bcm6348-eth.c
drivers/net/bcmgenet.c
drivers/net/designware.c
drivers/net/dwc_eth_qos.c
drivers/net/fec_mxc.c
drivers/net/fm/eth.c
drivers/net/fsl_enetc.c
drivers/net/ftgmac100.c
drivers/net/higmacv300.c
drivers/net/ldpaa_eth/ldpaa_eth.c
drivers/net/macb.c
drivers/net/mt7620-eth.c
drivers/net/mtk_eth.c
drivers/net/mvgbe.c
drivers/net/mvneta.c
drivers/net/mvpp2.c
drivers/net/phy/phy.c
drivers/net/pic32_eth.c
drivers/net/qe/dm_qe_uec.c
drivers/net/ravb.c
drivers/net/sh_eth.c
drivers/net/sni_ave.c
drivers/net/sni_netsec.c
drivers/net/sun8i_emac.c
drivers/net/ti/am65-cpsw-nuss.c
drivers/net/ti/cpsw.c
drivers/net/ti/keystone_net.c
drivers/net/tsec.c
drivers/net/xilinx_axi_emac.c
drivers/net/zynq_gem.c
include/dm/ofnode.h
include/dm/read.h
include/phy.h
net/mdio-uclass.c
test/dm/ofnode.c