mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-22 15:02:32 +00:00
12f12df569
Changelog: https://cdn.kernel.org/pub/linux/kernel/v6.x/ChangeLog-6.6.55 Added the following default ksym to target/linux/generic/config-6.6: CONFIG_PROC_MEM_ALWAYS_FORCE=y # CONFIG_PROC_MEM_FORCE_PTRACE is not set # CONFIG_PROC_MEM_NO_FORCE is not set Removed upstreamed: generic/backport-6.6/780-23-v6.12-r8169-Fix-spelling-mistake-tx_underun-tx_underrun.patch[1] generic/backport-6.6/780-25-v6.12-r8169-add-tally-counter-fields-added-with-RTL8125.patch[2] generic/pending-6.6/684-gso-fix-gso-fraglist-segmentation-after-pull-from-fr.patch[3] lantiq/patches-6.6/0025-v6.12-net-ethernet-lantiq_etop-fix-memory-disclosure.patch[4] Manually rebased: bcm27xx/patches-6.6/950-0086-Main-bcm2708-bcm2709-linux-port.patch bcm27xx/patches-6.6/950-0998-i2c-designware-Add-support-for-bus-clear-feature.patch All other patches automatically rebased. 1. https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v6.6.56&id=f02fcb7283b1c25f7e3ae07d7a2c830e06eb1a62 2. https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v6.6.56&id=1c723d785adb711496bc64c24240f952f4faaabf 3. https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v6.6.56&id=af3122f5fdc0d00581d6e598a668df6bf54c9daa 4. https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v6.6.56&id=e66e38d07b31e177ca430758ed97fbc79f27d966 Build system: x86/64 Build-tested: x86/64/AMD Cezanne, flogic/xiaomi_redmi-router-ax6000-ubootmod, ramips/tplink_archer-a6-v3 Run-tested: x86/64/AMD Cezanne, flogic/xiaomi_redmi-router-ax6000-ubootmod, ramips/tplink_archer-a6-v3 Signed-off-by: John Audia <therealgraysky@proton.me> Link: https://github.com/openwrt/openwrt/pull/16655 Signed-off-by: Nick Hainke <vincent@systemli.org>
76 lines
3.0 KiB
Diff
76 lines
3.0 KiB
Diff
From a2634a5ffcafc31c343c6153ae487eb184c433a6 Mon Sep 17 00:00:00 2001
|
|
From: Heiner Kallweit <hkallweit1@gmail.com>
|
|
Date: Wed, 3 Jan 2024 16:52:04 +0100
|
|
Subject: [PATCH] r8169: fix building with CONFIG_LEDS_CLASS=m
|
|
|
|
When r8169 is built-in but LED support is a loadable module, the new
|
|
code to drive the LED causes a link failure:
|
|
|
|
ld: drivers/net/ethernet/realtek/r8169_leds.o: in function `rtl8168_init_leds':
|
|
r8169_leds.c:(.text+0x36c): undefined reference to `devm_led_classdev_register_ext'
|
|
|
|
LED support is an optional feature, so fix this issue by adding a Kconfig
|
|
symbol R8169_LEDS that is guaranteed to be false if r8169 is built-in
|
|
and LED core support is a module. As a positive side effect of this change
|
|
r8169_leds.o no longer is built under this configuration.
|
|
|
|
Fixes: 18764b883e15 ("r8169: add support for LED's on RTL8168/RTL8101")
|
|
Reported-by: kernel test robot <lkp@intel.com>
|
|
Closes: https://lore.kernel.org/oe-kbuild-all/202312281159.9TPeXbNd-lkp@intel.com/
|
|
Suggested-by: Arnd Bergmann <arnd@arndb.de>
|
|
Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
|
|
Reviewed-by: Simon Horman <horms@kernel.org>
|
|
Tested-by: Simon Horman <horms@kernel.org> # build-tested
|
|
Tested-by: Arnd Bergmann <arnd@arndb.de>
|
|
Link: https://lore.kernel.org/r/d055aeb5-fe5c-4ccf-987f-5af93a17537b@gmail.com
|
|
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
|
|
---
|
|
drivers/net/ethernet/realtek/Kconfig | 7 +++++++
|
|
drivers/net/ethernet/realtek/Makefile | 6 ++----
|
|
drivers/net/ethernet/realtek/r8169_main.c | 5 ++---
|
|
3 files changed, 11 insertions(+), 7 deletions(-)
|
|
|
|
--- a/drivers/net/ethernet/realtek/Kconfig
|
|
+++ b/drivers/net/ethernet/realtek/Kconfig
|
|
@@ -113,4 +113,11 @@ config R8169
|
|
To compile this driver as a module, choose M here: the module
|
|
will be called r8169. This is recommended.
|
|
|
|
+config R8169_LEDS
|
|
+ def_bool R8169 && LEDS_TRIGGER_NETDEV
|
|
+ depends on !(R8169=y && LEDS_CLASS=m)
|
|
+ help
|
|
+ Optional support for controlling the NIC LED's with the netdev
|
|
+ LED trigger.
|
|
+
|
|
endif # NET_VENDOR_REALTEK
|
|
--- a/drivers/net/ethernet/realtek/Makefile
|
|
+++ b/drivers/net/ethernet/realtek/Makefile
|
|
@@ -6,8 +6,6 @@
|
|
obj-$(CONFIG_8139CP) += 8139cp.o
|
|
obj-$(CONFIG_8139TOO) += 8139too.o
|
|
obj-$(CONFIG_ATP) += atp.o
|
|
-r8169-objs += r8169_main.o r8169_firmware.o r8169_phy_config.o
|
|
-ifdef CONFIG_LEDS_TRIGGER_NETDEV
|
|
-r8169-objs += r8169_leds.o
|
|
-endif
|
|
+r8169-y += r8169_main.o r8169_firmware.o r8169_phy_config.o
|
|
+r8169-$(CONFIG_R8169_LEDS) += r8169_leds.o
|
|
obj-$(CONFIG_R8169) += r8169.o
|
|
--- a/drivers/net/ethernet/realtek/r8169_main.c
|
|
+++ b/drivers/net/ethernet/realtek/r8169_main.c
|
|
@@ -5410,11 +5410,10 @@ static int rtl_init_one(struct pci_dev *
|
|
if (rc)
|
|
return rc;
|
|
|
|
-#if IS_REACHABLE(CONFIG_LEDS_CLASS) && IS_ENABLED(CONFIG_LEDS_TRIGGER_NETDEV)
|
|
- if (tp->mac_version > RTL_GIGA_MAC_VER_06 &&
|
|
+ if (IS_ENABLED(CONFIG_R8169_LEDS) &&
|
|
+ tp->mac_version > RTL_GIGA_MAC_VER_06 &&
|
|
tp->mac_version < RTL_GIGA_MAC_VER_61)
|
|
rtl8168_init_leds(dev);
|
|
-#endif
|
|
|
|
netdev_info(dev, "%s, %pM, XID %03x, IRQ %d\n",
|
|
rtl_chip_infos[chipset].name, dev->dev_addr, xid, tp->irq);
|