
28 Mar
2022
28 Mar
'22
8:35 a.m.
Hi Marek,
On Thu, 17 Mar 2022 at 06:50, Marek Behún kabel@kernel.org wrote:
From: Marek Behún marek.behun@nic.cz
Add helpers ofnode_get_phy_node() and dev_get_phy_node() and use it in net/mdio-uclass.c function dm_eth_connect_phy_handle().
This is useful because other part's of U-Boot may want to get PHY ofnode without connecting a PHY.
Signed-off-by: Marek Behún marek.behun@nic.cz
drivers/core/ofnode.c | 21 +++++++++++++++++++++ drivers/core/read.c | 5 +++++ include/dm/ofnode.h | 14 ++++++++++++++ include/dm/read.h | 19 +++++++++++++++++++ net/mdio-uclass.c | 24 ++++++------------------ 5 files changed, 65 insertions(+), 18 deletions(-)
Please add a test for your new function. With that:
Reviewed-by: Simon Glass sjg@chromium.org