immortalwrt/target/linux
Mark Mentovai f5221dd3e6 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-11 23:11:19 +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: clear forced speed during probe 2021-05-11 23:11:19 +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