public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [PATCH 0/2] net: Fix Ethernet PHY detection on Beagleplay
@ 2023-08-22 12:13 Roger Quadros
  2023-08-22 12:13 ` [PATCH 1/2] net: ti: am65-cpsw-nuss: Workaround for buggy PHY/Board Roger Quadros
  2023-08-22 12:13 ` [PATCH 2/2] net: phy: Change "PHY not found" message to debug() Roger Quadros
  0 siblings, 2 replies; 16+ messages in thread
From: Roger Quadros @ 2023-08-22 12:13 UTC (permalink / raw)
  To: nm, joe.hershberger
  Cc: robertcnelson, jkridner, r-gunasekaran, s-vadapalli, srk, trini,
	u-boot, Roger Quadros

Hi,

Beagleplay has a buggy Ethernet PHY implementation for the Gigabit
PHY in the sense that it is non responsive over MDIO immediately
after power-up/reset.

We need to either try multiple times or wait sufficiently long enough
(couple of 10s of ms?) before the PHY begins to respond correctly.

One theory is that the PHY is configured to operate on MDIO address 0
which it treats as a special broadcast address.

Datasheet states:
"PHYAD (config pins) sets the PHY address for the device.
The RTL8211F(I)/RTL8211FD(I) supports PHY addresses from 0x01 to 0x07.
Note 1: An MDIO command with PHY address=0 is a broadcast from the MAC;
each PHY device should respond."

This issue is not seen with the other PHY (different make) on the board
which is configured for address 0x1.

As a woraround we try to probe the PHY multiple times instead of giving
up on the first attempt.

cheers,
-roger

Roger Quadros (2):
  net: ti: am65-cpsw-nuss: Workaround for buggy PHY/Board
  net: phy: Change "PHY not found" message to debug()

 drivers/net/phy/phy.c           |  2 +-
 drivers/net/ti/am65-cpsw-nuss.c | 19 ++++++++++++++-----
 2 files changed, 15 insertions(+), 6 deletions(-)


base-commit: a169438411f9277cc689c14078151aa1d1caae3c
-- 
2.34.1


^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2023-08-25  8:22 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-08-22 12:13 [PATCH 0/2] net: Fix Ethernet PHY detection on Beagleplay Roger Quadros
2023-08-22 12:13 ` [PATCH 1/2] net: ti: am65-cpsw-nuss: Workaround for buggy PHY/Board Roger Quadros
2023-08-23  4:35   ` Siddharth Vadapalli
2023-08-23  7:52     ` Roger Quadros
2023-08-23  8:02       ` Siddharth Vadapalli
2023-08-23  8:14         ` Roger Quadros
2023-08-23  8:35           ` Roger Quadros
2023-08-24 18:04   ` Siddharth Vadapalli
2023-08-24 18:24     ` Tom Rini
2023-08-24 19:09       ` Roger Quadros
2023-08-25  5:42         ` Siddharth Vadapalli
2023-08-25  7:52           ` Roger Quadros
2023-08-25  8:22             ` Siddharth Vadapalli
2023-08-22 12:13 ` [PATCH 2/2] net: phy: Change "PHY not found" message to debug() Roger Quadros
2023-08-23  4:54   ` Siddharth Vadapalli
2023-08-23  8:06     ` Roger Quadros

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox