ar71xx: fix QCA955X SGMII link loss
authorDavid Bauer <mail@david-bauer.net>
Mon, 6 Aug 2018 14:15:04 +0000 (16:15 +0200)
committerJohn Crispin <john@phrozen.org>
Wed, 8 Aug 2018 13:48:57 +0000 (15:48 +0200)
commitf4f99ec9737c653815268f2efad0210caaa32e2d
treeb0aa4b6488ecfbd36f6f11b1cd7da75cc3fb9d0f
parentfbe17867daddf76ec26be7dbf6b9af3cfad4a54f
ar71xx: fix QCA955X SGMII link loss

The QCA955X is affected by a hardware bug which causes link-loss of the
SGMII link between SoC and PHY. This happens on change of link-state or
speed.

It is not really known what causes this bug. It definitely occurs when
using a AR8033 Gigabit Ethernet PHY.

Qualcomm solves this Bug in a similar fashion. We need to apply the fix
on a per-device base via platform-data as performing the fixup work will
break connectivity in case the SGMII interface is connected to a Switch.

This bug was first proposed to be fixed by Sven Eckelmann in 2016.
 https://patchwork.ozlabs.org/patch/604782/

Based-on-patch-by: Sven Eckelmann <sven.eckelmann@open-mesh.com>
Signed-off-by: David Bauer <mail@david-bauer.net>
target/linux/ar71xx/files/arch/mips/ath79/mach-fritz450e.c
target/linux/ar71xx/files/arch/mips/include/asm/mach-ath79/ag71xx_platform.h
target/linux/ar71xx/files/drivers/net/ethernet/atheros/ag71xx/ag71xx.h
target/linux/ar71xx/files/drivers/net/ethernet/atheros/ag71xx/ag71xx_main.c
target/linux/ar71xx/patches-4.9/940-qca955x-add-more-registers.patch [new file with mode: 0644]