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

Patrice CHOTARD
2022-04-06T14:04:09Z

Hi Marek

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

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

Thanks
Patrice