[PATCH] net: phy: Fix rgmii-id phy reset timeout issue

Bin Meng bmeng.cn at gmail.com
Tue Mar 29 18:18:25 CEST 2022


On Tue, Mar 29, 2022 at 10:06 PM Michal Simek <michal.simek at xilinx.com> wrote:
>
> From: T Karthik Reddy <t.karthik.reddy at xilinx.com>
>
> While creating a phy device using phy_device_create(), we need to
> provide a valid phyaddr instead of 0 causing phy address being
> registered as 0 with mdio bus and shows mdio phy list as below
>
> ZynqMP>  mdio list
> eth0:
> 0 - TI DP83867 <--> ethernet at ff0b0000
> eth1:
> 0 - TI DP83867 <--> ethernet at ff0c0000
>
> Also PHY soft reset is being requested on 0 instead of valid
> address causing "PHY reset timed out" error.
>
> So add phyaddr argument to phy_connect_phy_id() and to its prototype
> to create phy device with valid phyaddress.
>
> Fixes: a744a284e354 ("net: phy: Add support for ethernet-phy-id with gpio reset")
> Signed-off-by: T Karthik Reddy <t.karthik.reddy at xilinx.com>
> Signed-off-by: Michal Simek <michal.simek at xilinx.com>
> ---
>
>  drivers/net/phy/ethernet_id.c | 4 ++--
>  drivers/net/phy/phy.c         | 2 +-
>  include/phy.h                 | 2 +-
>  3 files changed, 4 insertions(+), 4 deletions(-)
>

Reviewed-by: Bin Meng <bmeng.cn at gmail.com>


More information about the U-Boot mailing list