1
0
mirror of https://git.openwrt.org/openwrt/openwrt.git synced 2024-10-19 14:08:17 +02:00
openwrt/target/linux/ipq806x
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
..
base-files treewide: remove execute bit and shebang from board.d files 2021-03-06 11:30:06 +01:00
files/arch/arm/boot/dts ipq806x: work-around vendor 'rootfs_data' GPT partition 2021-03-19 13:36:02 +00:00
generic ipqx0xx: add Generic subtarget 2019-08-22 21:15:28 +02:00
image ipq806x: work-around borked QCA SDK bootloader 2021-03-06 19:05:53 +00:00
patches-5.4 ipq806x: dwmac: clear forced speed during probe 2021-05-07 07:05:16 +02:00
config-5.4 treewide: switch the timer frequency to 100 Hz 2021-04-21 10:31:10 +01:00
Makefile treewide: use wpad-basic-wolfssl as default 2020-08-20 14:19:39 +02:00
modules.mk kernel: usb: move phy-qcom-ipq806x-usb to ipq806x modules.mk 2020-08-13 02:12:12 +02:00