Files
u-boot/drivers/net
Jonas Karlman f1e2f412b0 net: designware: Reset eth phy before phy connect
Some ethernet PHY require being reset before a phy-id can be read back
on the MDIO bus. This can result in the following message being show
on e.g. a Radxa ROCK Pi E v1.21 with a RTL8211F ethernet PHY.

  Could not get PHY for ethernet@ff540000: addr -1

Add support to designware ethernet driver to reset eth phy by calling
the eth phy uclass function eth_phy_set_mdio_bus(). The call use NULL
as bus parameter to not set a shared mdio bus reference that would be
freed when probe fails. Also add a eth_phy_get_addr() call to try and
get the phy addr from DT when DM_MDIO is disabled.

This help fix ethernet on Radxa ROCK Pi E v1.21:

  => mdio list
  ethernet@ff540000:
  1 - RealTek RTL8211F <--> ethernet@ff540000

Reported-by: Trevor Woerner <twoerner@gmail.com>
Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
2024-02-04 18:02:45 +08:00
..
2022-12-07 12:20:17 -05:00
2023-12-21 08:54:37 -05:00
2023-12-21 08:54:37 -05:00
2023-06-15 17:58:53 +08:00
2023-11-07 14:50:51 -05:00
2024-01-29 22:35:02 -05:00
2024-01-29 22:35:02 -05:00
2024-01-29 22:35:02 -05:00
2021-02-24 16:51:49 -05:00
2022-12-07 16:04:16 -05:00
2021-09-28 18:50:56 +03:00
2024-01-29 22:35:02 -05:00
2024-01-29 22:35:02 -05:00
2024-01-29 22:35:02 -05:00
2023-11-05 16:11:38 -05:00
2022-12-07 16:04:17 -05:00
2022-12-07 16:04:17 -05:00
2022-09-25 08:30:05 -06:00
2023-11-05 13:28:40 -05:00
2023-12-19 11:24:38 +01:00
2022-11-28 10:25:17 -05:00
2022-12-07 16:04:17 -05:00
2023-12-19 11:24:38 +01:00
2022-12-22 10:31:48 -05:00
2022-12-22 10:31:48 -05:00
2023-03-02 17:45:58 -05:00
2022-12-07 16:04:17 -05:00
2023-06-10 13:34:05 +02:00
2022-09-29 16:11:31 -04:00
2024-01-29 22:35:02 -05:00
2023-10-22 23:40:56 +01:00
2023-01-09 11:30:08 -05:00