[PATCH u-boot-net 03/14] net: introduce helpers to get PHY ofnode from MAC

Simon Glass sjg at chromium.org
Mon Mar 28 08:35:00 CEST 2022


Hi Marek,

On Thu, 17 Mar 2022 at 06:50, Marek Behún <kabel at kernel.org> wrote:
>
> From: Marek Behún <marek.behun at 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 at 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 at chromium.org>


More information about the U-Boot mailing list