Author: hauke
Date: 2014-07-17 22:34:18 +0200 (Thu, 17 Jul 2014)
New Revision: 41706

Added:
   trunk/target/linux/brcm47xx/patches-3.14/960-fix-phy-device.patch
Log:
brcm47xx: fix switch detection with kernel 3.14

Signed-off-by: Hauke Mehrtens <[email protected]>


Added: trunk/target/linux/brcm47xx/patches-3.14/960-fix-phy-device.patch
===================================================================
--- trunk/target/linux/brcm47xx/patches-3.14/960-fix-phy-device.patch           
                (rev 0)
+++ trunk/target/linux/brcm47xx/patches-3.14/960-fix-phy-device.patch   
2014-07-17 20:34:18 UTC (rev 41706)
@@ -0,0 +1,22 @@
+This fixes a problem introduced in this commit:
+
+commit 87aa9f9c61ad56d505641681812e92ad976f8608
+Author: Florian Fainelli <[email protected]>
+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);
_______________________________________________
openwrt-commits mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-commits

Reply via email to