kernel: update 4.4 to 4.4.86
[openwrt/openwrt.git] / target / linux / bcm53xx / patches-4.4 / 710-b53-add-hacky-CPU-port-fixes-for-devices-not-using-p.patch
index 2ee9cd48765539a9fbd5d09b51f1cd6558ab48ee..244a4a658663ce2c005178c3d6a1cec56e37a69b 100644 (file)
@@ -13,16 +13,16 @@ Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
 
 --- a/drivers/net/phy/b53/b53_common.c
 +++ b/drivers/net/phy/b53/b53_common.c
-@@ -25,6 +25,7 @@
- #include <linux/module.h>
- #include <linux/switch.h>
+@@ -27,6 +27,7 @@
+ #include <linux/of.h>
+ #include <linux/of_net.h>
  #include <linux/platform_data/b53.h>
 +#include <linux/of.h>
  
  #include "b53_regs.h"
  #include "b53_priv.h"
-@@ -1383,6 +1384,28 @@ static int b53_switch_init(struct b53_de
-                       sw_dev->cpu_port = 5;
+@@ -1578,6 +1579,28 @@ static int b53_switch_init(struct b53_de
+                       return ret;
        }
  
 +      /* Set correct CPU port */