f8d923916d5f3be8add23cc33091e1b03d4202d7
[openwrt.git] / target / linux / brcm47xx / patches-3.14 / 960-fix-phy-device.patch
1 This fixes a problem introduced in this commit:
2
3 commit 87aa9f9c61ad56d505641681812e92ad976f8608
4 Author: Florian Fainelli <f.fainelli@gmail.com>
5 Date:   Fri Dec 6 13:01:34 2013 -0800
6
7     net: phy: consolidate PHY reset in phy_init_hw()
8
9 The fixups are not executed before the switch gets registered but after 
10 the kernel searches for the right switch driver. When the search is 
11 executed it searches for the phy_id 0x00, because it was not fixed.
12
13 --- a/drivers/net/phy/phy_device.c
14 +++ b/drivers/net/phy/phy_device.c
15 @@ -353,6 +353,7 @@ int phy_device_register(struct phy_devic
16         phydev->bus->phy_map[phydev->addr] = phydev;
17  
18         /* Run all of the fixups for this PHY */
19 +       phy_scan_fixups(phydev);
20         err = phy_init_hw(phydev);
21         if (err) {
22                 pr_err("PHY %d failed to initialize\n", phydev->addr);