[PATCH u-boot-net v3 07/14] net: introduce helpers to get PHY interface mode from a device/ofnode

Patrice CHOTARD patrice.chotard at foss.st.com
Wed Apr 6 16:03:53 CEST 2022


Hi Marek

On 3/29/22 22:08, Marek Behún wrote:
> From: Marek Behún <marek.behun at nic.cz>
> 
> 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 at nic.cz>
> Reviewed-by: Ramon Fried <rfried.dev at gmail.com>
> ---
>  arch/sandbox/dts/test.dts                  |  1 +
>  board/st/stm32f746-disco/stm32f746-disco.c | 13 +++-----

Tested-by: Patrice Chotard <patrice.chotard at foss.st.com>
Tested on stm32f746-disco board

Thanks
Patrice


More information about the U-Boot mailing list