All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] net: dsa: lantiq_gswip: two fixes for -net/-stable
@ 2021-01-03  1:25 Martin Blumenstingl
  2021-01-03  1:25 ` [PATCH 1/2] net: dsa: lantiq_gswip: Enable GSWIP_MII_CFG_EN also for internal PHYs Martin Blumenstingl
  2021-01-03  1:25 ` [PATCH 2/2] net: dsa: lantiq_gswip: Fix GSWIP_MII_CFG(p) register access Martin Blumenstingl
  0 siblings, 2 replies; 11+ messages in thread
From: Martin Blumenstingl @ 2021-01-03  1:25 UTC (permalink / raw)
  To: hauke, netdev
  Cc: andrew, vivien.didelot, f.fainelli, olteanv, davem, kuba,
	linux-kernel, Martin Blumenstingl

While testing the lantiq_gswip driver in OpenWrt at least one board had
a non-working Ethernet port connected to an internal 100Mbit/s PHY22F
GPHY. The problem which could be observed:
- the PHY would detect the link just fine
- ethtool stats would see the TX counter rise
- the RX counter in ethtool was stuck at zero

It turns out that two independent patches are needed to fix this:
- first we need to enable the MII data lines also for internal PHYs
- second we need to program the GSWIP_MII_CFG registers for all ports
  except the CPU port

These two patches have also been tested by back-porting them on top of
Linux 5.4.86 in OpenWrt.

Special thanks to Hauke for debugging and brainstorming this on IRC
with me!


Martin Blumenstingl (2):
  net: dsa: lantiq_gswip: Enable GSWIP_MII_CFG_EN also for internal PHYs
  net: dsa: lantiq_gswip: Fix GSWIP_MII_CFG(p) register access

 drivers/net/dsa/lantiq_gswip.c | 27 +++++++--------------------
 1 file changed, 7 insertions(+), 20 deletions(-)

-- 
2.30.0


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

end of thread, other threads:[~2021-01-04 23:55 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-03  1:25 [PATCH 0/2] net: dsa: lantiq_gswip: two fixes for -net/-stable Martin Blumenstingl
2021-01-03  1:25 ` [PATCH 1/2] net: dsa: lantiq_gswip: Enable GSWIP_MII_CFG_EN also for internal PHYs Martin Blumenstingl
2021-01-03  1:35   ` Hauke Mehrtens
2021-01-03  2:09   ` Andrew Lunn
2021-01-03  2:12     ` Martin Blumenstingl
2021-01-04 21:52       ` Jakub Kicinski
2021-01-04 23:54         ` Martin Blumenstingl
2021-01-04 19:53   ` Florian Fainelli
2021-01-03  1:25 ` [PATCH 2/2] net: dsa: lantiq_gswip: Fix GSWIP_MII_CFG(p) register access Martin Blumenstingl
2021-01-03  1:36   ` Hauke Mehrtens
2021-01-04 19:58   ` Florian Fainelli

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.