[PATCH 1/3] kernel: 5.10: recover 88E6060 switches support

Sergey Ryazanov ryazanov.s.a at gmail.com
Thu Dec 16 14:29:17 PST 2021


Support for mvswich driver (Marvell 88E6060 switches) build has been
missed during the initial v5.10 kernel introduction. But it is required
for AR21xx boards, e.g. Fonera 2.0. Return the missed driver building
instructions to fix boards support with the new kernel.

Compile tested only with the ath25 target.

Fixes: b10d604459 ("kernel: add linux 5.10 support")
CC: Felix Fietkau <nbd at nbd.name>
Signed-off-by: Sergey Ryazanov <ryazanov.s.a at gmail.com>
---
 .../generic/hack-5.10/700-swconfig_switch_drivers.patch  | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/target/linux/generic/hack-5.10/700-swconfig_switch_drivers.patch b/target/linux/generic/hack-5.10/700-swconfig_switch_drivers.patch
index b90e1fc441..df36e66782 100644
--- a/target/linux/generic/hack-5.10/700-swconfig_switch_drivers.patch
+++ b/target/linux/generic/hack-5.10/700-swconfig_switch_drivers.patch
@@ -12,7 +12,7 @@ Signed-off-by: Felix Fietkau <nbd at nbd.name>
 
 --- a/drivers/net/phy/Kconfig
 +++ b/drivers/net/phy/Kconfig
-@@ -61,6 +61,80 @@ config SFP
+@@ -61,6 +61,84 @@ config SFP
  	depends on HWMON || HWMON=n
  	select MDIO_I2C
  
@@ -50,6 +50,10 @@ Signed-off-by: Felix Fietkau <nbd at nbd.name>
 +	tristate "Driver for IC+ IP17xx switches"
 +	select SWCONFIG
 +
++config MVSWITCH_PHY
++	tristate "Driver for Marvell 88E6060 switches"
++	select ETHERNET_PACKET_MANGLE
++
 +config PSB6970_PHY
 +	tristate "Lantiq XWAY Tantos (PSB6970) Ethernet switch"
 +	select SWCONFIG
@@ -95,7 +99,7 @@ Signed-off-by: Felix Fietkau <nbd at nbd.name>
  config AMD_PHY
 --- a/drivers/net/phy/Makefile
 +++ b/drivers/net/phy/Makefile
-@@ -24,6 +24,19 @@ libphy-$(CONFIG_LED_TRIGGER_PHY)	+= phy_
+@@ -24,6 +24,20 @@ libphy-$(CONFIG_LED_TRIGGER_PHY)	+= phy_
  obj-$(CONFIG_PHYLINK)		+= phylink.o
  obj-$(CONFIG_PHYLIB)		+= libphy.o
  
@@ -104,6 +108,7 @@ Signed-off-by: Felix Fietkau <nbd at nbd.name>
 +obj-$(CONFIG_AR8216_PHY)	+= ar8216.o ar8327.o
 +obj-$(CONFIG_SWCONFIG_B53)	+= b53/
 +obj-$(CONFIG_IP17XX_PHY)	+= ip17xx.o
++obj-$(CONFIG_MVSWITCH_PHY)	+= mvswitch.o
 +obj-$(CONFIG_PSB6970_PHY)	+= psb6970.o
 +obj-$(CONFIG_RTL8306_PHY)	+= rtl8306.o
 +obj-$(CONFIG_RTL8366_SMI)	+= rtl8366_smi.o
-- 
2.32.0




More information about the openwrt-devel mailing list