Skip to contentSkip to conversation

Make SSB a menuconfig to ease disabling it all

PATCH Superseded Vincent Legoll 2 participants 6 messages Dec 3, 2017 – Dec 7, 2017 Sonics silicon backplane driver (ssb)

lore
Share & tools
lore
#0 lore raw

The following patch makes it easier to disable all SSB config options without entering the submenu. It will also enable one to see that en-disabled state from the outside menu.

This is only intended to change menuconfig UI, not change the config dependencies.

#1 lore raw

PATCH 1/1 Make SSB a menuconfig to ease disabling it all

No need to get into the submenu to disable all SSB-related config entries

---
 drivers/ssb/Kconfig | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)
drivers/ssb/Kconfig +4 -5
index d8e4219c2324..f48a2ee587a4 100644
@@ -3,10 +3,7 @@ config SSB_POSSIBLE
 	depends on HAS_IOMEM && HAS_DMA
 	default y
 
-menu "Sonics Silicon Backplane"
-	depends on SSB_POSSIBLE
-
-config SSB
+menuconfig SSB
 	tristate "Sonics Silicon Backplane support"
 	depends on SSB_POSSIBLE
 	help
@@ -21,6 +18,8 @@ config SSB
 
 	  If unsure, say N.
 
+if SSB
+
 # Common SPROM support routines
 config SSB_SPROM
 	bool
@@ -185,4 +184,4 @@ config SSB_DRIVER_GPIO
 
 	  If unsure, say N
 
-endmenu
+endif # SSB
Signature · 1 line
2.11.0
#2 lore raw
In reply to Vincent Legoll
Quoted 6 lines · Vincent Legoll

The following patch makes it easier to disable all SSB config options without entering the submenu. It will also enable one to see that en-disabled state from the outside menu.

This is only intended to change menuconfig UI, not change the config dependencies.

So you have just oneliners as the commit log in the patch and here in the cover letter you have a better description. As the cover letters are not normally archived to the git repository it's better to have the proper log in the commit log.

Also prefix the title with "ssb: " like other patches have done:

$ git log --oneline -10 drivers/ssb/
b24413180f56 License cleanup: add SPDX GPL-2.0 license identifier to files with no license
c6c092dcb21e ssb: Delete an error message for a failed memory allocation in ssb_devices_register()
8052d7245b60 ssb: Fix error routine when fallback SPROM fails
c683ffe2193b SSB: Change bare unsigned to unsigned int to suit coding style
2d4443be10a7 ssb: gpio_driver: use gpiochip data pointer
10da848f67a7 ssb: host_soc depends on sprom
b7e2d195cc52 ssb: mark ssb_bus_register as __maybe_unused
541c9a84cd85 ssb: pick SoC invariants code from MIPS BCM47xx arch
845da6e58e19 ssb: add Kconfig entry for compiling SoC related code
830c7df46247 ssb: move functions specific to SoC hosted bus to separated file
Signature · 1 line
Kalle Valo
#3 lore raw

PATCH v2 1/1 ssb: make SSB a menuconfig to ease disabling it all

Hello,

thanks for the feedback, is that better ?

#4 lore raw

PATCH 1/1 ssb: make SSB a menuconfig to ease disabling it all

No need to get into the submenu to disable all SSB-related config entries.

This makes it easier to disable all SSB config options without entering the submenu. It will also enable one to see that en/dis-abled state from the outside menu.

This is only intended to change menuconfig UI, not change the config dependencies.

---
 drivers/ssb/Kconfig | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)
drivers/ssb/Kconfig +4 -5
index d8e4219c2324..f48a2ee587a4 100644
@@ -3,10 +3,7 @@ config SSB_POSSIBLE
 	depends on HAS_IOMEM && HAS_DMA
 	default y
 
-menu "Sonics Silicon Backplane"
-	depends on SSB_POSSIBLE
-
-config SSB
+menuconfig SSB
 	tristate "Sonics Silicon Backplane support"
 	depends on SSB_POSSIBLE
 	help
@@ -21,6 +18,8 @@ config SSB
 
 	  If unsure, say N.
 
+if SSB
+
 # Common SPROM support routines
 config SSB_SPROM
 	bool
@@ -185,4 +184,4 @@ config SSB_DRIVER_GPIO
 
 	  If unsure, say N
 
-endmenu
+endif # SSB
Signature · 1 line
2.11.0
#5 lore raw

Re: ssb: make SSB a menuconfig to ease disabling it all

Quoted 11 lines · Vincent Legoll

No need to get into the submenu to disable all SSB-related config entries.

This makes it easier to disable all SSB config options without entering the submenu. It will also enable one to see that en/dis-abled state from the outside menu.

This is only intended to change menuconfig UI, not change the config dependencies.

Patch applied to wireless-drivers-next.git, thanks.

8c9fdd7687d9 ssb: make SSB a menuconfig to ease disabling it all

Signature · 3 lines
https://patchwork.kernel.org/patch/10091683/

https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches