openwrt/target/linux/lantiq/modules.mk
Benjamin Levine 20ae49dde7 lantiq: xrx200: autoload lantiq_gswip and tag_gswip to fix failsafe mode
lantiq_gswip and tag_gswip were not loaded during failsafe, leaving the
switch uninitialised. This caused LAN1 port to show no link, making
SSH-based recovery impossible.
Add the autoload flag and include tag_gswip (which was also missing from
the autoload list) so the switch initialises correctly in failsafe mode.

Tested on BT HomeHub 5A (lantiq/xrx200).

Fixes: https://github.com/openwrt/openwrt/issues/22480
Signed-off-by: Benjamin Levine <benjaminmileslevine@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/22514
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2026-03-22 22:35:37 +01:00

38 lines
1013 B
Makefile

# SPDX-License-Identifier: GPL-2.0-only
#
# Copyright (C) 2010 OpenWrt.org
I2C_LANTIQ_MODULES:= \
CONFIG_I2C_LANTIQ:drivers/i2c/busses/i2c-lantiq
define KernelPackage/i2c-lantiq
TITLE:=Lantiq I2C controller
$(call i2c_defaults,$(I2C_LANTIQ_MODULES),52)
DEPENDS:=+kmod-i2c-core @TARGET_lantiq_falcon
endef
define KernelPackage/i2c-lantiq/description
Kernel support for the Lantiq/Falcon I2C controller
endef
$(eval $(call KernelPackage,i2c-lantiq))
define KernelPackage/dsa-gswip
SUBMENU:=$(NETWORK_DEVICES_MENU)
TITLE:=Lantiq xRx200/xRx300/xRx330 switch support
DEPENDS:=@TARGET_lantiq_xrx200||TARGET_lantiq_xrx200_legacy
KCONFIG:= \
CONFIG_NET_DSA_LANTIQ_GSWIP \
CONFIG_NET_DSA_TAG_GSWIP
FILES:= \
$(LINUX_DIR)/drivers/net/dsa/lantiq_gswip.ko \
$(LINUX_DIR)/net/dsa/tag_gswip.ko
AUTOLOAD:=$(call AutoLoad,41,tag_gswip lantiq_gswip,1)
endef
define KernelPackage/dsa-gswip/description
Lantiq xRx200/xRx300/xRx330 switch support
endef
$(eval $(call KernelPackage,dsa-gswip))