bcm53xx: enhance support for Linksys EA9500
[openwrt/openwrt.git] / target / linux / bcm53xx / patches-5.4 / 700-b53-add-hacky-CPU-port-fixes-for-devices-not-using-p.patch
index a5f13afe02d229c4b579bc74620bd381b9ad79cb..a6d0f119ec17885eab7400964fb3c353c102d93d 100644 (file)
@@ -21,7 +21,7 @@ Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
  
  #include "b53_regs.h"
  #include "b53_priv.h"
-@@ -1587,6 +1588,28 @@ static int b53_switch_init(struct b53_de
+@@ -1587,6 +1588,29 @@ static int b53_switch_init(struct b53_de
                        return ret;
        }
  
@@ -44,7 +44,8 @@ Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
 +       * For some reason it doesn't work (no packets on eth2).
 +       */
 +      if (of_machine_is_compatible("netgear,r7900") ||
-+          of_machine_is_compatible("netgear,r8000"))
++          of_machine_is_compatible("netgear,r8000") ||
++          (of_machine_is_compatible("linksys,panamera") && dev->chip_id == BCM53012_DEVICE_ID))
 +              sw_dev->cpu_port = 5;
 +
        dev->enabled_ports |= BIT(sw_dev->cpu_port);