aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux
diff options
context:
space:
mode:
authorHauke Mehrtens <hauke@openwrt.org>2014-07-17 20:34:18 +0000
committerHauke Mehrtens <hauke@openwrt.org>2014-07-17 20:34:18 +0000
commit4a0919e7bbf9d68577c72665aace31b181691ed4 (patch)
treec5b7cf53d29c2c48ecff758242923f7a17cc003e /target/linux
parent82dcb5a1d6bad66b56cfb35eeebf12126495f884 (diff)
downloadupstream-4a0919e7bbf9d68577c72665aace31b181691ed4.tar.gz
upstream-4a0919e7bbf9d68577c72665aace31b181691ed4.tar.bz2
upstream-4a0919e7bbf9d68577c72665aace31b181691ed4.zip
brcm47xx: fix switch detection with kernel 3.14
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41706 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux')
-rw-r--r--target/linux/brcm47xx/patches-3.14/960-fix-phy-device.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/target/linux/brcm47xx/patches-3.14/960-fix-phy-device.patch b/target/linux/brcm47xx/patches-3.14/960-fix-phy-device.patch
new file mode 100644
index 0000000000..f8d923916d
--- /dev/null
+++ b/target/linux/brcm47xx/patches-3.14/960-fix-phy-device.patch
@@ -0,0 +1,22 @@
+This fixes a problem introduced in this commit:
+
+commit 87aa9f9c61ad56d505641681812e92ad976f8608
+Author: Florian Fainelli <f.fainelli@gmail.com>
+Date: Fri Dec 6 13:01:34 2013 -0800
+
+ net: phy: consolidate PHY reset in phy_init_hw()
+
+The fixups are not executed before the switch gets registered but after
+the kernel searches for the right switch driver. When the search is
+executed it searches for the phy_id 0x00, because it was not fixed.
+
+--- a/drivers/net/phy/phy_device.c
++++ b/drivers/net/phy/phy_device.c
+@@ -353,6 +353,7 @@ int phy_device_register(struct phy_devic
+ phydev->bus->phy_map[phydev->addr] = phydev;
+
+ /* Run all of the fixups for this PHY */
++ phy_scan_fixups(phydev);
+ err = phy_init_hw(phydev);
+ if (err) {
+ pr_err("PHY %d failed to initialize\n", phydev->addr);