aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/cns3xxx/patches-3.18/200-broadcom_phy_reinit.patch
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2014-11-27 16:24:32 +0000
committerFelix Fietkau <nbd@openwrt.org>2014-11-27 16:24:32 +0000
commit4c369cdb9df368e62c088380f5bb02057c584e58 (patch)
tree3d25051a834952d4f3b4cef11e972aa86ddcf173 /target/linux/cns3xxx/patches-3.18/200-broadcom_phy_reinit.patch
parent41fb5fcd1f747594b96174d8695980a8a3974275 (diff)
downloadmaster-187ad058-4c369cdb9df368e62c088380f5bb02057c584e58.tar.gz
master-187ad058-4c369cdb9df368e62c088380f5bb02057c584e58.tar.bz2
master-187ad058-4c369cdb9df368e62c088380f5bb02057c584e58.zip
cns3xxx: add experimental 3.18 support
Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@43406 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/cns3xxx/patches-3.18/200-broadcom_phy_reinit.patch')
-rw-r--r--target/linux/cns3xxx/patches-3.18/200-broadcom_phy_reinit.patch14
1 files changed, 14 insertions, 0 deletions
diff --git a/target/linux/cns3xxx/patches-3.18/200-broadcom_phy_reinit.patch b/target/linux/cns3xxx/patches-3.18/200-broadcom_phy_reinit.patch
new file mode 100644
index 0000000000..e4cc27829e
--- /dev/null
+++ b/target/linux/cns3xxx/patches-3.18/200-broadcom_phy_reinit.patch
@@ -0,0 +1,14 @@
+--- a/drivers/net/phy/broadcom.c
++++ b/drivers/net/phy/broadcom.c
+@@ -393,6 +393,11 @@ static int bcm5481_config_aneg(struct ph
+ /* Write bits 14:0. */
+ reg |= (1 << 15);
+ phy_write(phydev, 0x18, reg);
++ } else {
++ phy_write(phydev, 0x18, 0xf1e7);
++ phy_write(phydev, 0x1c, 0x8e00);
++
++ phy_write(phydev, 0x1c, 0xa41f);
+ }
+
+ return ret;