ar71xx: enable SGMII fixup on Mikrotik wAP AC
authorEtienne Champetier <champetier.etienne@gmail.com>
Sun, 14 Jul 2019 02:43:28 +0000 (19:43 -0700)
committerDavid Bauer <mail@david-bauer.net>
Sun, 21 Jul 2019 11:09:31 +0000 (13:09 +0200)
commit76a4c93f9dcafc0efd6f825fbd40eb4a2e53d456
tree9406c1f012263ab06a29840b877b02f123f11fb3
parent4022035aafd3f68b9fa56069b5260f55cbf30e5e
ar71xx: enable SGMII fixup on Mikrotik wAP AC

fixes intermittent loss of connectivity on 1Gbit port, with log message:
> 803x_aneg_done: SGMII link is not ok

Thanks to David Bauer for pointing me in the right direction.
I just had to figure out the right bus_id, which you find in this log:
> ag71xx ag71xx.1: connected to PHY at gpio-1:00 [uid=004dd074,
  driver=Atheros 8031 ethernet]

Fixes FS#2236

Signed-off-by: Etienne Champetier <champetier.etienne@gmail.com>
[Wrapped commit message - Fixed whitespace erors]
Signed-off-by: David Bauer <mail@david-bauer.net>
(cherry picked from commit 2a7519e29d6cbbe1eb73623ef35add0ef596fb5f)
target/linux/ar71xx/files/arch/mips/ath79/mach-rbspi.c