kernel: bump to 4.4.45
[openwrt/staging/wigyori.git] / target / linux / cns3xxx / patches-4.4 / 200-broadcom_phy_reinit.patch
index 1c7215051d4b5bcedc888fe929a77210959df6e5..0d8ff5997be9b632d883fdfb196097599b979bf9 100644 (file)
@@ -1,6 +1,6 @@
 --- a/drivers/net/phy/broadcom.c
 +++ b/drivers/net/phy/broadcom.c
-@@ -332,6 +332,11 @@ static int bcm5481_config_aneg(struct ph
+@@ -362,6 +362,11 @@ static int bcm5481_config_aneg(struct ph
                /* Write bits 14:0. */
                reg |= (1 << 15);
                phy_write(phydev, 0x18, reg);
@@ -11,4 +11,4 @@
 +              phy_write(phydev, 0x1c, 0xa41f);
        }
  
-       return ret;
+       if (of_property_read_bool(np, "enet-phy-lane-swap")) {