ath79: fix link mode support list on UniFi AC
authorDavid Bauer <mail@david-bauer.net>
Wed, 14 Apr 2021 22:54:49 +0000 (00:54 +0200)
committerDavid Bauer <mail@david-bauer.net>
Thu, 15 Apr 2021 20:40:39 +0000 (22:40 +0200)
commit8222f8e1b9bec804fc4e8b21c546cc602b2e1fa2
treef5f91fe99adff6c43bad2f26b91f96e7afd6e3c5
parent7f703716ae0e4cb4810eff37605b7594cef1edb8
ath79: fix link mode support list on UniFi AC

This fixes incorrect supported link modes indicated when using ethtool
on the Ubiquiti UniFi AC lite / LR / Mesh.

eroot@OpenWrt:~# ethtool eth0
Settings for eth0:
Supported ports: [ TP MII ]
Supported link modes:   100baseT/Half 100baseT/Full
                        1000baseT/Full
                        1000baseX/Full

The reason for this is, that since kernel 5.4 the PHY capabilities are
read dynamically from the PHY. As Ubiquiti leaves the PHY in a wrong
state, the capabilities of the SGMII side of the PHY are read.

As a side effect, 10 Mbit/s link modes did not work on these boards.

Signed-off-by: David Bauer <mail@david-bauer.net>
target/linux/generic/pending-5.10/736-net-phy-at803x-add-at8031-features.patch [new file with mode: 0644]
target/linux/generic/pending-5.4/736-net-phy-at803x-add-at8031-features.patch [new file with mode: 0644]