[PATCH] wifi: morsemicro: MM81X should be invisible and selected by its users

DORMANTno replies

From: Geert Uytterhoeven <geert+renesas@glider.be>
Date: 2026-08-06 10:05:48
Also in: lkml
Subsystem: morse micro mm81x wireless driver, networking drivers (wireless), the rest · Maintainers: Lachlan Hodges, Dan Callaghan, Johannes Berg, Linus Torvalds

Morse Micro MM81x wireless devices can have either SDIO or USB
interfaces.  Hence there is no point in asking the user about these
devices when configuring a kernel without MMC or USB support.

Fix this by making the core driver symbol invisible, and selecting it by
its users when needed.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
---
Alternatively, MM81X could depend on "MMC || USB", at the expense of
asking the user one more question.
---
 drivers/net/wireless/morsemicro/mm81x/Kconfig | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/drivers/net/wireless/morsemicro/mm81x/Kconfig b/drivers/net/wireless/morsemicro/mm81x/Kconfig
index 33cdcc0df4de2e00..4c4fae77ff67be48 100644
--- a/drivers/net/wireless/morsemicro/mm81x/Kconfig
+++ b/drivers/net/wireless/morsemicro/mm81x/Kconfig
@@ -1,7 +1,7 @@
 # SPDX-License-Identifier: GPL-2.0
 
 config MM81X
-	tristate "Morse Micro MM81x wireless devices"
+	tristate "Morse Micro MM81x wireless devices" if COMPILE_TEST
 	depends on MAC80211
 	select FW_LOADER
 	select CRC7
@@ -11,14 +11,16 @@ config MM81X
 
 config MM81X_USB
 	tristate "Morse Micro MM81x USB support"
-	depends on MM81X && USB
+	depends on MAC80211 && USB
+	select MM81X
 	help
 	  This module adds support for the USB interface of
 	  devices using the Morse Micro MM81x chipset.
 
 config MM81X_SDIO
 	tristate "Morse Micro MM81x SDIO support"
-	depends on MM81X && MMC
+	depends on MAC80211 && MMC
+	select MM81X
 	help
 	  This module adds support for the SDIO interface of
 	  devices using the Morse Micro MM81x chipset.
-- 
2.43.0
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help