immortalwrt/target/linux
Mark Mentovai 63e8f6fc68 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-11 23:31:59 +08:00
..
apm821xx apm821xx: MBL: correct phy-mode delay settings 2021-05-02 11:26:47 +08:00
arc770 treewide: switch the timer frequency to 100 Hz 2021-04-22 23:12:24 +08:00
archs38 treewide: switch the timer frequency to 100 Hz 2021-04-22 23:12:24 +08:00
armvirt treewide: switch the timer frequency to 100 Hz 2021-04-22 23:12:24 +08:00
at91 treewide: switch the timer frequency to 100 Hz 2021-04-22 23:12:24 +08:00
ath25 kernel: Activate FORTIFY_SOURCE for MIPS kernel 5.4 2021-05-01 11:12:26 +08:00
ath79 ath79: ag71xx: fix error handling for of_get_phy_mode 2021-05-11 01:03:00 +08:00
bcm27xx kernel: bump 5.4 to 5.4.115 2021-05-01 11:08:48 +08:00
bcm47xx bcm47xx: make WGT634U NVRAM patch apply again 2021-03-13 12:05:27 +08:00
bcm53xx treewide: switch the timer frequency to 100 Hz 2021-04-22 23:12:24 +08:00
bcm63xx kernel: Activate FORTIFY_SOURCE for MIPS kernel 5.4 2021-05-01 11:12:26 +08:00
bcm4908 treewide: switch the timer frequency to 100 Hz 2021-04-22 23:12:24 +08:00
bmips treewide: switch the timer frequency to 100 Hz 2021-04-22 23:12:24 +08:00
gemini treewide: switch the timer frequency to 100 Hz 2021-04-22 23:12:24 +08:00
generic treewide: consolidate named GPIO patch into hack-5.10 2021-05-09 20:53:30 +08:00
imx6 treewide: switch the timer frequency to 100 Hz 2021-04-22 23:12:24 +08:00
ipq40xx Merge Mainline 2021-05-01 11:50:45 +08:00
ipq806x ipq806x: dwmac: fix GMACs connected via SGMII fixed-link 2021-05-11 23:31:59 +08:00
ipq807x treewide: remove redundant ubifs kconfig symbols 2021-04-22 23:09:52 +08:00
kirkwood kernel: fix parsing fixed subpartitions 2021-05-08 00:16:07 +08:00
lantiq treewide: consolidate named GPIO patch into hack-5.10 2021-05-09 20:53:30 +08:00
layerscape kernel: bump 5.4 to 5.4.114 2021-05-01 11:08:14 +08:00
malta treewide: switch the timer frequency to 100 Hz 2021-04-22 23:12:24 +08:00
mediatek mediatek: reserve memory for ramoops and enable PSTORE 2021-05-09 20:50:01 +08:00
mpc85xx treewide: switch the timer frequency to 100 Hz 2021-04-22 23:12:24 +08:00
mvebu kernel: fix parsing fixed subpartitions 2021-05-08 00:16:07 +08:00
mxs treewide: switch the timer frequency to 100 Hz 2021-04-22 23:12:24 +08:00
octeon treewide: switch the timer frequency to 100 Hz 2021-04-22 23:12:24 +08:00
octeontx treewide: switch the timer frequency to 100 Hz 2021-04-22 23:12:24 +08:00
omap treewide: remove redundant ubifs kconfig symbols 2021-04-22 23:09:52 +08:00
oxnas treewide: remove redundant ubifs kconfig symbols 2021-04-22 23:09:52 +08:00
pistachio treewide: switch the timer frequency to 100 Hz 2021-04-22 23:12:24 +08:00
ramips ramips: use standard naming scheme for Zyxel NR7101 LED nodes 2021-05-11 01:03:08 +08:00
realtek realtek: Fix VLAN issues introduced by multicast patches 2021-05-11 01:03:26 +08:00
rockchip rockchip: add OF node for pcie eth on NanoPi R4S 2021-04-29 00:10:10 +08:00
sunxi Merge Mainline 2021-05-03 17:20:04 +08:00
tegra kernel: Move CONFIG_USERIO to generic config 2021-03-28 11:17:21 +08:00
uml treewide: switch the timer frequency to 100 Hz 2021-04-22 23:12:24 +08:00
x86 treewide: switch the timer frequency to 100 Hz 2021-04-22 23:12:24 +08:00
zynq kernel: Move CONFIG_USERIO to generic config 2021-03-28 11:17:21 +08:00
Makefile target: use SPDX license identifiers on Makefiles 2021-02-11 12:05:39 +08:00