[PATCH 1/2] kernel: netdevices: Create Vitesse DSA switch packages

Robert Marko robimarko at gmail.com
Fri May 2 05:16:22 PDT 2025


On Thu, 10 Apr 2025 at 14:01, Linus Walleij <linus.walleij at linaro.org> wrote:
>
> This adds kernel packages for the Vitesse VSC73XX switches.
>
> I have split the switch into explicit SPI and platform integrated
> variants as it's quite a bit of code.
>
> Signed-off-by: Linus Walleij <linus.walleij at linaro.org>
> ---
>  package/kernel/linux/modules/netdevices.mk | 48 ++++++++++++++++++++++++++++++
>  1 file changed, 48 insertions(+)
>
> diff --git a/package/kernel/linux/modules/netdevices.mk b/package/kernel/linux/modules/netdevices.mk
> index 5ad21ae6284054821503a8dbf8b120083e56db04..e9b807a3089e3b9b8bbacc14d36e8915984a888d 100644
> --- a/package/kernel/linux/modules/netdevices.mk
> +++ b/package/kernel/linux/modules/netdevices.mk
> @@ -696,6 +696,54 @@ endef
>  $(eval $(call KernelPackage,dsa-rtl8365mb))
>
>
> +define KernelPackage/dsa-vsc73xx
> +  SUBMENU:=$(NETWORK_DEVICES_MENU)
> +  TITLE:=Vitesse VSC73XX DSA switch family support
> +  DEPENDS:=+kmod-dsa +kmod-phy-vitesse +kmod-fixed-phy
> +  KCONFIG:= \
> +       CONFIG_NET_DSA_VITESSE_VSC73XX \
> +       CONFIG_NET_DSA_TAG_VSC73XX_8021Q

Hi Linus,
This unfortunately is currently breaking all targets during building
as in 6.6 kernel there is
no CONFIG_NET_DSA_TAG_VSC73XX_8021Q, it was added in 6.11 AFAIK.

So they will all fail due to $(LINUX_DIR)/net/dsa/tag_vsc73xx_8021q.ko missing.

This unfortunately is the side-effect of our CI only testing GH PRs
and there is nothing on the
mailing list.

Regards,
Robert

> +  FILES:= \
> +       $(LINUX_DIR)/drivers/net/dsa/vitesse-vsc73xx-core.ko \
> +       $(LINUX_DIR)/net/dsa/tag_vsc73xx_8021q.ko
> +endef
> +
> +define KernelPackage/dsa-vsc73xx/description
> +  Kernel modules for Vitesse VSC73XX switches
> +endef
> +
> +$(eval $(call KernelPackage,dsa-vsc73xx))
> +
> +define KernelPackage/dsa-vsc73xx-spi
> +  SUBMENU:=$(NETWORK_DEVICES_MENU)
> +  TITLE:=Vitesse VSC73XX SPI support
> +  DEPENDS:=+kmod-dsa-vsc73xx
> +  KCONFIG:= CONFIG_NET_DSA_VITESSE_VSC73XX_SPI
> +  FILES:= $(LINUX_DIR)/drivers/net/dsa/vitesse-vsc73xx-spi.ko
> +  AUTOLOAD:=$(call AutoProbe,vitesse-vsc73xx-spi)
> +endef
> +
> +define KernelPackage/dsa-vsc73xx-spi/description
> +  Kernel modules for Vitesse VSC73XX switches using SPI
> +endef
> +
> +$(eval $(call KernelPackage,dsa-vsc73xx-spi))
> +
> +define KernelPackage/dsa-vsc73xx-platform
> +  SUBMENU:=$(NETWORK_DEVICES_MENU)
> +  TITLE:=Vitesse VSC73XX platform support
> +  DEPENDS:=+kmod-dsa-vsc73xx
> +  KCONFIG:= CONFIG_NET_DSA_VITESSE_VSC73XX_PLATFORM
> +  FILES:= $(LINUX_DIR)/drivers/net/dsa/vitesse-vsc73xx-platform.ko
> +  AUTOLOAD:=$(call AutoProbe,vitesse-vsc73xx-platform)
> +endef
> +
> +define KernelPackage/dsa-vsc73xx-spi/description
> +  Kernel modules for Vitesse VSC73XX switches using platform integration
> +endef
> +
> +$(eval $(call KernelPackage,dsa-vsc73xx-platform))
> +
>  define KernelPackage/swconfig
>    SUBMENU:=$(NETWORK_DEVICES_MENU)
>    TITLE:=switch configuration API
>
> --
> 2.49.0
>
>
> _______________________________________________
> openwrt-devel mailing list
> openwrt-devel at lists.openwrt.org
> https://lists.openwrt.org/mailman/listinfo/openwrt-devel



More information about the openwrt-devel mailing list