Skip to contentSkip to conversation

Make AMBA a menuconfig to ease disabling it all

PATCH In review Vincent Legoll 4 participants 10 messages Apr 14, 2017 – Aug 8, 2017

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

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

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

---
 drivers/amba/Kconfig | 12 +++---------
 1 file changed, 3 insertions(+), 9 deletions(-)
drivers/amba/Kconfig +3 -9
index 294ba6f..3f8fcb8 100644
@@ -1,14 +1,8 @@
-config ARM_AMBA
-	bool
-
-if ARM_AMBA
-
-config TEGRA_AHB
-	bool
+menuconfig TEGRA_AHB
+	bool "NVIDIA Tegra AHB"
+	depends on ARCH_TEGRA
 	default y if ARCH_TEGRA
 	help
 	  Adds AHB configuration functionality for NVIDIA Tegra SoCs,
 	  which controls AHB bus master arbitration and some performance
 	  parameters (priority, prefetch size).
-
-endif
Signature · 1 line
2.9.3
#1 lore raw
Quoted 3 lines · Vincent Legoll

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

This patch is completely incorrect - it removes the ARM_AMBA symbol which is used elsewhere, thereby breaking every AMBA device in the kernel.

Signature · 3 lines
RMK's Patch system: http://www.armlinux.org.uk/developer/patches/
FTTC broadband for 0.8mile line: currently at 9.6Mbps down 400kbps up
according to speedtest.net.
#2 lore raw

Hello,

Quoted 2 lines · Russell King - ARM Linux

This patch is completely incorrect - it removes the ARM_AMBA symbol which is used elsewhere, thereby breaking every AMBA device in the kernel.

Yep you're right, I was going after something else (BCMA) and got confused by its naming: "Broadcom specific AMBA".

Please disregard that patch, and sorry for the noise.

Signature · 1 line
Vincent Legoll
#3 lore raw

RFC PATCH 1/1 Make BCMA a menuconfig to ease disabling it all

Hello,

this is more what I wanted to achieve, an easily disableable BCMA menuconfig.

This is working as intended on x86_64 defconfig, whereas it is harder to disable for ARCH=arm because of "select"s. But that's less of an issue, as those arch's defconfigs may very well want the feature enbled, and that would make sense.

Any input appreciated.

Thanks

#4 lore raw

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

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

---
 drivers/bcma/Kconfig | 9 ++-------
 1 file changed, 2 insertions(+), 7 deletions(-)
drivers/bcma/Kconfig +2 -7
index b5c48a8..54f81c5 100644
@@ -3,11 +3,8 @@ config BCMA_POSSIBLE
 	depends on HAS_IOMEM && HAS_DMA
 	default y
 
-menu "Broadcom specific AMBA"
-	depends on BCMA_POSSIBLE
-
-config BCMA
-	tristate "BCMA support"
+menuconfig BCMA
+	tristate "Broadcom specific AMBA"
 	depends on BCMA_POSSIBLE
 	help
 	  Bus driver for Broadcom specific Advanced Microcontroller Bus
@@ -117,5 +114,3 @@ config BCMA_DEBUG
 	  This turns on additional debugging messages.
 
 	  If unsure, say N
-
-endmenu
Signature · 1 line
2.9.3
#5 lore raw

Re: Make BCMA a menuconfig to ease disabling it all

Quoted 3 lines · Vincent Legoll

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

I would like to get an ack from someone before I'll apply this.

Patch set to Deferred.

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

https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches
#6 lore raw

Re: bcma: make BCMA a menuconfig to ease disabling it all

In reply to Vincent Legoll
Quoted 3 lines · Vincent Legoll

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

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

9ca766b3641f bcma: make BCMA a menuconfig to ease disabling it all

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

https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches
#8 lore raw
In reply to Vincent Legoll
url: https://github.com/0day-ci/linux/commits/Vincent-Legoll/Make-AMBA-a-menuconfig-to-ease-disabling-it-all/20170414-194337 config: arm-integrator_defconfig (attached as .config) compiler…

Hi Vincent,

[auto build test WARNING on linus/master]
[also build test WARNING on v4.11-rc6 next-20170413]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]

url: https://github.com/0day-ci/linux/commits/Vincent-Legoll/Make-AMBA-a-menuconfig-to-ease-disabling-it-all/20170414-194337
config: arm-integrator_defconfig (attached as .config)
compiler: arm-linux-gnueabi-gcc (Debian 6.1.1-9) 6.1.1 20160705
reproduce:
wget https://raw.githubusercontent.com/01org/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
make.cross ARCH=arm

All warnings (new ones prefixed by >>):

warning: (ARCH_INTEGRATOR_AP) selects SERIAL_AMBA_PL010 which has unmet direct dependencies (TTY && HAS_IOMEM && ARM_AMBA)
warning: (ARCH_INTEGRATOR_CP) selects SERIAL_AMBA_PL011 which has unmet direct dependencies (TTY && HAS_IOMEM && ARM_AMBA)
warning: (ARCH_REALVIEW && ARCH_SOCFPGA && INTEGRATOR_IMPD1) selects GPIO_PL061 which has unmet direct dependencies (GPIOLIB && HAS_IOMEM && ARM_AMBA)

---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation

#9 lore raw
In reply to Vincent Legoll
url: https://github.com/0day-ci/linux/commits/Vincent-Legoll/Make-AMBA-a-menuconfig-to-ease-disabling-it-all/20170414-194337 config: arm-multi_v7_defconfig (attached as .config) compiler…

Hi Vincent,

[auto build test ERROR on linus/master]
[also build test ERROR on v4.11-rc6 next-20170413]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]

url: https://github.com/0day-ci/linux/commits/Vincent-Legoll/Make-AMBA-a-menuconfig-to-ease-disabling-it-all/20170414-194337
config: arm-multi_v7_defconfig (attached as .config)
compiler: arm-linux-gnueabi-gcc (Debian 6.1.1-9) 6.1.1 20160705
reproduce:
wget https://raw.githubusercontent.com/01org/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
make.cross ARCH=arm

All error/warnings (new ones prefixed by >>):

warning: (ARCH_HIGHBANK) selects PL320_MBOX which has unmet direct dependencies (MAILBOX && ARM_AMBA)
warning: (MACH_NOMADIK_8815NHK && MACH_MOP500) selects I2C_NOMADIK which has unmet direct dependencies (I2C && HAS_IOMEM && ARM_AMBA)
drivers/built-in.o: In function `pl061_gpio_init':

>> sunxi_sid.c:(.init.text+0x7334): undefined reference to `amba_driver_register'
   drivers/built-in.o: In function `nmk_i2c_init':
   sunxi_sid.c:(.init.text+0x5a32c): undefined reference to `amba_driver_register'
   drivers/built-in.o: In function `ipc_init':
   sunxi_sid.c:(.init.text+0x68454): undefined reference to `amba_driver_register'
   drivers/built-in.o: In function `nmk_i2c_exit':
>> sunxi_sid.c:(.exit.text+0x1ef4): undefined reference to `amba_driver_unregister'
   arch/arm/mach-highbank/built-in.o: In function `highbank_init':
>> pm.c:(.init.text+0x74): undefined reference to `amba_bustype'

pm.c:(.init.text+0x78): undefined reference to `amba_bustype'

---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation