ar71xx: allow to override at803x sgmii aneg status
authorDavid Bauer <mail@david-bauer.net>
Mon, 6 Aug 2018 14:15:05 +0000 (16:15 +0200)
committerMatthias Schiffer <mschiffer@universe-factory.net>
Mon, 3 Sep 2018 21:13:12 +0000 (23:13 +0200)
commit6a4f059ec83132af8c13d39921539b22f5ff8205
treed9e0881e438a8a1801b8c339f3ec50b8d653e273
parent3444638a05abf7456bb86823c33d651183bd137e
ar71xx: allow to override at803x sgmii aneg status

When checking the outcome of the PHY autonegotiation status, at803x
currently returns false in case the SGMII side is not established.

Due to a hardware-bug, ag71xx needs to fixup the SoCs SGMII side, which
it can't as it is not aware of the link-establishment.

This commit allows to ignore the SGMII side autonegotiation status to
allow ag71xx to do the fixup work.

Signed-off-by: David Bauer <mail@david-bauer.net>
(cherry picked from commit 4e39e213af7e3e0cd747403e8c227e145cfef988)
target/linux/ar71xx/files/arch/mips/ath79/mach-fritz450e.c
target/linux/ar71xx/patches-4.9/903-at803x-add-sgmii-aneg-override-pdata.patch [new file with mode: 0644]