aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/cns3xxx/patches-4.14/200-broadcom_phy_reinit.patch
diff options
context:
space:
mode:
authorKoen Vandeputte <koen.vandeputte@ncentric.com>2018-01-11 16:04:36 +0100
committerJohn Crispin <john@phrozen.org>2018-01-17 11:07:17 +0100
commit9f54aaff7024c462936cf1e62a59a7d183660fd1 (patch)
treed0b8061caa9751729ab1d8fa7667330695f70858 /target/linux/cns3xxx/patches-4.14/200-broadcom_phy_reinit.patch
parent2543e7f08cb2f502577c1ead5bd6811233194948 (diff)
downloadupstream-9f54aaff7024c462936cf1e62a59a7d183660fd1.tar.gz
upstream-9f54aaff7024c462936cf1e62a59a7d183660fd1.tar.bz2
upstream-9f54aaff7024c462936cf1e62a59a7d183660fd1.zip
cns3xxx: update patches for 4.14
Signed-off-by: Koen Vandeputte <koen.vandeputte@ncentric.com>
Diffstat (limited to 'target/linux/cns3xxx/patches-4.14/200-broadcom_phy_reinit.patch')
-rw-r--r--target/linux/cns3xxx/patches-4.14/200-broadcom_phy_reinit.patch19
1 files changed, 10 insertions, 9 deletions
diff --git a/target/linux/cns3xxx/patches-4.14/200-broadcom_phy_reinit.patch b/target/linux/cns3xxx/patches-4.14/200-broadcom_phy_reinit.patch
index 0352a89f9e..6880533a05 100644
--- a/target/linux/cns3xxx/patches-4.14/200-broadcom_phy_reinit.patch
+++ b/target/linux/cns3xxx/patches-4.14/200-broadcom_phy_reinit.patch
@@ -1,14 +1,15 @@
--- a/drivers/net/phy/broadcom.c
+++ b/drivers/net/phy/broadcom.c
-@@ -420,6 +420,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);
+@@ -417,7 +417,11 @@ static int bcm5481_config_aneg(struct ph
+ ret = genphy_config_aneg(phydev);
+
+ /* Then we can set up the delay. */
+- bcm5481x_config(phydev);
++ //bcm5481x_config(phydev);
+
-+ phy_write(phydev, 0x1c, 0xa41f);
- }
++ phy_write(phydev, 0x18, 0xf1e7);
++ phy_write(phydev, 0x1c, 0x8e00);
++ phy_write(phydev, 0x1c, 0xa41f);
if (of_property_read_bool(np, "enet-phy-lane-swap")) {
+ /* Lane Swap - Undocumented register...magic! */