openwrt/target/linux
Mark Mentovai fa731838c5 ipq806x: dwmac: clear forced speed during probe
On a Ubiquiti UniFi AC HD (ubnt,unifi-ac-hd, UAP-AC-HD, UAP301), a
forced speed on gmac1 is set in the QSGMII PCS_ALL_CH_CTL register,
presumably by the bootloader (4.3.28), preventing the interface from
being usable. The QSDK NSS GMAC driver takes care to clear the forced
speed in nss_gmac_qsgmii_dev_init
(https://source.codeaurora.org/quic/qsdk/oss/lklm/nss-gmac/tree/ipq806x/nss_gmac_init.c?h=nss
at d5bb14925861).

gmac1 is connected to the port on the device labeled SECONDARY, and is
currently eth0 but will be switched to eth1 by a subsequent patch. By
clearing the QSGMII PCS forced speed during dwmac initialization when
SGMII is in use, this port becomes usable.

This patch is upstreamable, and will be sent upstream after successful
testing in OpenWrt.

Signed-off-by: Mark Mentovai <mark@moxienet.com>
Build-tested: ipq806x/ubnt,unifi-ac-hd
Run-tested: ipq806x/ubnt,unifi-ac-hd
2021-05-07 07:05:16 +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 kernel: bump 5.4 to 5.4.114 2021-04-30 23:48:37 +02:00
ipq806x ipq806x: dwmac: clear forced speed during probe 2021-05-07 07:05:16 +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 treewide: switch the timer frequency to 100 Hz 2021-04-21 10:31:10 +01:00
rockchip treewide: switch the timer frequency to 100 Hz 2021-04-21 10:31:10 +01:00
sunxi
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