Skip to contentSkip to conversation

wifi: rtw89: correct dependency of the multicolor LED

PATCH In review Ping-Ke Shih 1 participant 2 messages Sep 18 – Sep 23 Realtek wireless driver (rtw89)

lore
Share & tools
lore

Ping-Ke Shih

author maintainer
#0 lore raw

PATCH 1/1 wifi: rtw89: correct dependency of the multicolor LED

The rtw89 depends on multicolor LED module, but for the case multicolor LED is module and rtw89 is built-in driver, like

CONFIG_LEDS_CLASS_MULTICOLOR=m
CONFIG_RTW89=y
CONFIG_RTW89_LEDS_MC=y

The linker reports error:

ld.lld: error: undefined symbol: led_classdev_multicolor_register_ext

Avoid this case, and summerize the supported combination as below

  CONFIG_LEDS_CLASS_MULTICOLOR  y      m    m
  CONFIG_RTW89                  y/m    m    y
  support                       O      O    X
Fixes 721d90c8509a ("wifi: rtw89: add multicolor LED support for RTL8852CU valve board")
---
 drivers/net/wireless/realtek/rtw89/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/wireless/realtek/rtw89/Kconfig +1 -1
index 7c678dd1f6b3..9c6c16af7f35 100644
@@ -215,7 +215,7 @@ config RTW89_LEDS
 config RTW89_LEDS_MC
 	bool
 	depends on RTW89_LEDS
-	depends on LEDS_CLASS_MULTICOLOR
+	depends on LEDS_CLASS_MULTICOLOR=y || LEDS_CLASS_MULTICOLOR=RTW89_CORE
 	imply LEDS_TRIGGER_TIMER
 	default y
 

base-commit: 73e3b1c94c7d5b4a113e7cbb42665dc2fe3b9d78

Signature · 1 line
2.25.1
author maintainer
#1 lore raw
Quoted 13 lines · Ping-Ke Shih

The rtw89 depends on multicolor LED module, but for the case multicolor LED is module and rtw89 is built-in driver, like

CONFIG_LEDS_CLASS_MULTICOLOR=m
CONFIG_RTW89=y
CONFIG_RTW89_LEDS_MC=y

The linker reports error:

ld.lld: error: undefined symbol: led_classdev_multicolor_register_ext

Avoid this case, and summerize the supported combination as below

Quoted 8 lines
  CONFIG_LEDS_CLASS_MULTICOLOR  y      m    m
  CONFIG_RTW89                  y/m    m    y
  support                       O      O    X
Fixes 721d90c8509a ("wifi: rtw89: add multicolor LED support for RTL8852CU valve board")

1 patch(es) applied to rtw-next branch of rtw.git, thanks.

398660e43ed9 wifi: rtw89: correct dependency of the multicolor LED

---
https://github.com/pkshih/rtw.git