ath79: force SGMII SerDes mode to MAC operation
authorDavid Bauer <mail@david-bauer.net>
Wed, 31 Mar 2021 23:20:45 +0000 (01:20 +0200)
committerDavid Bauer <mail@david-bauer.net>
Mon, 12 Apr 2021 22:32:56 +0000 (00:32 +0200)
commitfbbad9a9a629b388626b477e6cd692c160f63fb3
treea77dc9299ce39dab11a689bc27bd909e32646347
parente85180d90ed01ef4fb89675702622a9cabf3b092
ath79: force SGMII SerDes mode to MAC operation

The mode on the SGMII SerDes on the QCA9563 is 1000 Base-X by default.
This only allows for 1000 Mbit/s links, however when used with an SGMII
PHY in 100 Mbit/s link mode, the link remains dead.

This strictly has nothing to do with the SerDes calibration, however it
is done at the same point in the QCA reference U-Boot which is the
blueprint for everything happening here. As the current state is more or
less a hack, this should be fine.

This fixes the issues outlined above on a TP-Link EAP-225 Outdoor.

Reported-by: Tom Herbers <freifunk@tomherbers.de>
Tested-by: Tom Herbers <freifunk@tomherbers.de>
Signed-off-by: David Bauer <mail@david-bauer.net>
target/linux/ath79/files/drivers/net/ethernet/atheros/ag71xx/ag71xx_main.c
target/linux/ath79/patches-5.4/0040-ath79-sgmii-config.patch [new file with mode: 0644]