aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/sunxi
diff options
context:
space:
mode:
authorPetr Štetiar <ynezz@true.cz>2022-03-08 10:41:24 +0100
committerPetr Štetiar <ynezz@true.cz>2022-03-21 23:05:27 +0100
commitffa1088f63267f817a3adf34c84b8e8089b1a938 (patch)
tree2f1ab69a0c3b1767a2abdd0f0991e1aadf5d90ac /target/linux/sunxi
parentfa676395136b17d753fd90137e58f02a4fcdb09e (diff)
downloadupstream-ffa1088f63267f817a3adf34c84b8e8089b1a938.tar.gz
upstream-ffa1088f63267f817a3adf34c84b8e8089b1a938.tar.bz2
upstream-ffa1088f63267f817a3adf34c84b8e8089b1a938.zip
sunxi: cortexa7: fix ethernet link detection on a20-olinuxino-lime2
a20-olinuxino-lime2 is currently having hard time with link detection of certain 1000Mbit partners due to usage of generic PHY driver, probably due to following missing workaround introduced in upstream in commit 3aed3e2a143c ("net: phy: micrel: add Asym Pause workaround"): The Micrel KSZ9031 PHY may fail to establish a link when the Asymmetric Pause capability is set. This issue is described in a Silicon Errata (DS80000691D or DS80000692D), which advises to always disable the capability. This patch implements the workaround by defining a KSZ9031 specific get_feature callback to force the Asymmetric Pause capability bit to be cleared. This fixes issues where the link would not come up at boot time, or when the Asym Pause bit was set later on. As a20-olinuxino-lime2 has Micrel KSZ9031RNXCC-TR Gigabit PHY since revision H, so we need to use Micrel PHY driver on those devices. Signed-off-by: Petr Štetiar <ynezz@true.cz>
Diffstat (limited to 'target/linux/sunxi')
-rw-r--r--target/linux/sunxi/cortexa7/config-5.101
1 files changed, 1 insertions, 0 deletions
diff --git a/target/linux/sunxi/cortexa7/config-5.10 b/target/linux/sunxi/cortexa7/config-5.10
index e77f4d872f..c3ceb99c3d 100644
--- a/target/linux/sunxi/cortexa7/config-5.10
+++ b/target/linux/sunxi/cortexa7/config-5.10
@@ -5,6 +5,7 @@ CONFIG_GRO_CELLS=y
# CONFIG_MACH_SUN4I is not set
# CONFIG_MACH_SUN5I is not set
CONFIG_MDIO_BUS_MUX=y
+CONFIG_MICREL_PHY=y
CONFIG_MUSB_PIO_ONLY=y
CONFIG_NET_DEVLINK=y
CONFIG_NET_DSA=y