aredn/patches/711-aredn-ports-dumbswitch-...

17 lines
417 B
Diff

--- /dev/null
+++ b/target/linux/ath79/patches-5.10/903-phy-ar8216-no-van-ports.patch
@@ -0,0 +1,13 @@
+--- a/drivers/net/phy/ar8216.c
++++ b/drivers/net/phy/ar8216.c
+@@ -1393,7 +1393,9 @@
+ if (i == AR8216_PORT_CPU)
+ continue;
+
+- portmask[i] = 1 << AR8216_PORT_CPU;
++ for (j = 0; j < dev->ports; j++) {
++ portmask[i] |= (1 << j);
++ }
+ portmask[AR8216_PORT_CPU] |= (1 << i);
+ }
+ }