openwrt/target/linux
Mark Mentovai d62825dd77 ipq806x: dwmac: fix GMACs connected via SGMII fixed-link
fa731838c5 cleared the forced speed in the QSGMII PCS_ALL_CH_CTL
register during probe, but this is only correct for GMACs that are not
configured with fixed-link. This prevented GMACs configured with both
phy-mode = "sgmii" and fixed-link from working properly, as discussed at
https://github.com/openwrt/openwrt/pull/3954#issuecomment-834625090 and
the comments that follow. Notably, this prevented all communication
between gmac2 and the switch on the Netgear R7800.

The correct behavior is to set the QSGMII PCS_ALL_CH_CTL register by
considering the gmac's fixed-link child, setting the speed as directed by
fixed-link if present, and otherwise clearing it as was done previously.

Fixes: fa731838c5 ("ipq806x: dwmac: clear forced speed during probe")
Signed-off-by: Mark Mentovai <mark@moxienet.com>
Tested-by: Hannu Nyman <hannu.nyman@iki.fi>
Run-tested: ipq806x/ubnt,unifi-ac-hd, ipq806x/netgear,r7800
Cc: Petr Štetiar <ynezz@true.cz>
Cc: Ansuel Smith <ansuelsmth@gmail.com>
Tested-by:  Ansuel Smith <ansuelsmth@gmail.com>
2021-05-08 18:45:42 +02:00
..
apm821xx apm821xx: MBL: correct phy-mode delay settings 2021-05-01 12:25:12 +02:00
arc770 treewide: switch the timer frequency to 100 Hz 2021-04-21 10:31:10 +01:00
archs38 treewide: switch the timer frequency to 100 Hz 2021-04-21 10:31:10 +01:00
armvirt treewide: switch the timer frequency to 100 Hz 2021-04-21 10:31:10 +01:00
at91 treewide: switch the timer frequency to 100 Hz 2021-04-21 10:31:10 +01:00
ath25 kernel: Activate FORTIFY_SOURCE for MIPS kernel 5.4 2021-04-30 23:51:19 +02:00
ath79 ath79: Deactivate ZyXEL NBG6716 by default 2021-05-02 15:00:40 +02:00
bcm27xx kernel: bump 5.4 to 5.4.115 2021-04-30 23:48:37 +02:00
bcm47xx
bcm53xx treewide: switch the timer frequency to 100 Hz 2021-04-21 10:31:10 +01:00
bcm63xx kernel: Activate FORTIFY_SOURCE for MIPS kernel 5.4 2021-04-30 23:51:19 +02:00
bcm4908 treewide: switch the timer frequency to 100 Hz 2021-04-21 10:31:10 +01:00
bmips treewide: switch the timer frequency to 100 Hz 2021-04-21 10:31:10 +01:00
gemini treewide: switch the timer frequency to 100 Hz 2021-04-21 10:31:10 +01:00
generic kernel: fix parsing fixed subpartitions 2021-05-06 14:53:25 +02:00
imx6 treewide: switch the timer frequency to 100 Hz 2021-04-21 10:31:10 +01:00
ipq40xx ipq40xx: fix hard_config partition size on MikroTik hAP-ac2 2021-05-08 12:18:43 +02:00
ipq806x ipq806x: dwmac: fix GMACs connected via SGMII fixed-link 2021-05-08 18:45:42 +02:00
ipq807x treewide: remove redundant ubifs kconfig symbols 2021-04-21 10:31:07 +01:00
kirkwood kernel: fix parsing fixed subpartitions 2021-05-06 14:53:25 +02:00
lantiq kernel: fix parsing fixed subpartitions 2021-05-06 14:53:25 +02:00
layerscape kernel: bump 5.4 to 5.4.114 2021-04-30 23:48:37 +02:00
malta treewide: switch the timer frequency to 100 Hz 2021-04-21 10:31:10 +01:00
mediatek mediatek: bpi-r64: add eMMC bootloader artifacts 2021-05-01 22:55:14 +01:00
mpc85xx treewide: switch the timer frequency to 100 Hz 2021-04-21 10:31:10 +01:00
mvebu kernel: fix parsing fixed subpartitions 2021-05-06 14:53:25 +02:00
mxs treewide: switch the timer frequency to 100 Hz 2021-04-21 10:31:10 +01:00
octeon treewide: switch the timer frequency to 100 Hz 2021-04-21 10:31:10 +01:00
octeontx treewide: switch the timer frequency to 100 Hz 2021-04-21 10:31:10 +01:00
omap treewide: remove redundant ubifs kconfig symbols 2021-04-21 10:31:07 +01:00
oxnas treewide: remove redundant ubifs kconfig symbols 2021-04-21 10:31:07 +01:00
pistachio treewide: switch the timer frequency to 100 Hz 2021-04-21 10:31:10 +01:00
ramips kernel: Activate FORTIFY_SOURCE for MIPS kernel 5.4 2021-04-30 23:51:19 +02:00
realtek realtek: Add support for Layer 2 Multicast 2021-05-07 07:05:16 +02:00
rockchip treewide: switch the timer frequency to 100 Hz 2021-04-21 10:31:10 +01:00
sunxi kernel: bump 5.4 to 5.4.112 2021-04-17 21:50:08 +02:00
tegra
uml treewide: switch the timer frequency to 100 Hz 2021-04-21 10:31:10 +01:00
x86 treewide: switch the timer frequency to 100 Hz 2021-04-21 10:31:10 +01:00
zynq
Makefile