Commit 08ad483
committed
Merge branch 'net-dsa-lantiq_gswip-two-fixes-for-net-stable'
Martin Blumenstingl says:
====================
net: dsa: lantiq_gswip: two fixes for -net/-stable
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!
====================
Link: https://lore.kernel.org/r/20210103012544.3259029-1-martin.blumenstingl@googlemail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>1 file changed
Lines changed: 7 additions & 20 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
92 | 92 | | |
93 | 93 | | |
94 | 94 | | |
95 | | - | |
96 | | - | |
97 | | - | |
| 95 | + | |
98 | 96 | | |
99 | 97 | | |
100 | 98 | | |
| |||
392 | 390 | | |
393 | 391 | | |
394 | 392 | | |
395 | | - | |
396 | | - | |
397 | | - | |
398 | | - | |
399 | | - | |
400 | | - | |
401 | | - | |
402 | | - | |
403 | | - | |
404 | | - | |
405 | | - | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
406 | 396 | | |
407 | 397 | | |
408 | 398 | | |
| |||
822 | 812 | | |
823 | 813 | | |
824 | 814 | | |
825 | | - | |
826 | | - | |
827 | | - | |
| 815 | + | |
| 816 | + | |
828 | 817 | | |
829 | 818 | | |
830 | 819 | | |
| |||
1541 | 1530 | | |
1542 | 1531 | | |
1543 | 1532 | | |
1544 | | - | |
1545 | | - | |
1546 | | - | |
| 1533 | + | |
1547 | 1534 | | |
1548 | 1535 | | |
1549 | 1536 | | |
| |||
0 commit comments