Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1623640 > unrolled thread

[PATCH] Make AMBA a menuconfig to ease disabling it all

Started byVincent Legoll <vincent.legoll@gmail.com>
First post2017-04-14 13:40 +0200
Last post2017-04-14 16:10 +0200
Articles 7 — 3 participants

Back to article view | Back to linux.kernel


Contents

  [PATCH] Make AMBA a menuconfig to ease disabling it all Vincent Legoll <vincent.legoll@gmail.com> - 2017-04-14 13:40 +0200
    Re: [PATCH] Make AMBA a menuconfig to ease disabling it all Russell King - ARM Linux <linux@armlinux.org.uk> - 2017-04-14 13:50 +0200
      Re: [PATCH] Make AMBA a menuconfig to ease disabling it all Vincent Legoll <vincent.legoll@gmail.com> - 2017-04-14 14:40 +0200
        [PATCH RFC] Make BCMA a menuconfig to ease disabling it all Vincent Legoll <vincent.legoll@gmail.com> - 2017-04-17 12:10 +0200
          [PATCH] Make BCMA a menuconfig to ease disabling it all Vincent Legoll <vincent.legoll@gmail.com> - 2017-04-17 12:10 +0200
          Re: [PATCH RFC] Make BCMA a menuconfig to ease disabling it all Vincent Legoll <vincent.legoll@gmail.com> - 2017-04-17 12:20 +0200
    Re: [PATCH] Make AMBA a menuconfig to ease disabling it all kbuild test robot <lkp@intel.com> - 2017-04-14 16:10 +0200

#1623640 — [PATCH] Make AMBA a menuconfig to ease disabling it all

FromVincent Legoll <vincent.legoll@gmail.com>
Date2017-04-14 13:40 +0200
Subject[PATCH] Make AMBA a menuconfig to ease disabling it all
Message-ID<tw7K1-x1-3@gated-at.bofh.it>
No need to get into the submenu to disable all AMBA-related config entries

Signed-off-by: Vincent Legoll <vincent.legoll@gmail.com>
---
 drivers/amba/Kconfig | 12 +++---------
 1 file changed, 3 insertions(+), 9 deletions(-)

diff --git a/drivers/amba/Kconfig b/drivers/amba/Kconfig
index 294ba6f..3f8fcb8 100644
--- a/drivers/amba/Kconfig
+++ b/drivers/amba/Kconfig
@@ -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
-- 
2.9.3

[toc] | [next] | [standalone]


#1623642

FromRussell King - ARM Linux <linux@armlinux.org.uk>
Date2017-04-14 13:50 +0200
Message-ID<tw7TH-Aq-1@gated-at.bofh.it>
In reply to#1623640
On Fri, Apr 14, 2017 at 01:39:32PM +0200, Vincent Legoll wrote:
> No need to get into the submenu to disable all AMBA-related config entries
> 
> Signed-off-by: Vincent Legoll <vincent.legoll@gmail.com>

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

-- 
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.

[toc] | [prev] | [next] | [standalone]


#1623652

FromVincent Legoll <vincent.legoll@gmail.com>
Date2017-04-14 14:40 +0200
Message-ID<tw8G5-14T-1@gated-at.bofh.it>
In reply to#1623642
Hello,

On Fri, Apr 14, 2017 at 1:47 PM, Russell King - ARM Linux
<linux@armlinux.org.uk> wrote:
> 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.

-- 
Vincent Legoll

[toc] | [prev] | [next] | [standalone]


#1624623 — [PATCH RFC] Make BCMA a menuconfig to ease disabling it all

FromVincent Legoll <vincent.legoll@gmail.com>
Date2017-04-17 12:10 +0200
Subject[PATCH RFC] Make BCMA a menuconfig to ease disabling it all
Message-ID<txbLz-7Q4-3@gated-at.bofh.it>
In reply to#1623652
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

[toc] | [prev] | [next] | [standalone]


#1624624 — [PATCH] Make BCMA a menuconfig to ease disabling it all

FromVincent Legoll <vincent.legoll@gmail.com>
Date2017-04-17 12:10 +0200
Subject[PATCH] Make BCMA a menuconfig to ease disabling it all
Message-ID<txbLz-7Q4-9@gated-at.bofh.it>
In reply to#1624623
No need to get into the submenu to disable all BCMA-related config entries

Signed-off-by: Vincent Legoll <vincent.legoll@gmail.com>
---
 drivers/bcma/Kconfig | 9 ++-------
 1 file changed, 2 insertions(+), 7 deletions(-)

diff --git a/drivers/bcma/Kconfig b/drivers/bcma/Kconfig
index b5c48a8..54f81c5 100644
--- a/drivers/bcma/Kconfig
+++ b/drivers/bcma/Kconfig
@@ -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
-- 
2.9.3

[toc] | [prev] | [next] | [standalone]


#1624625 — Re: [PATCH RFC] Make BCMA a menuconfig to ease disabling it all

FromVincent Legoll <vincent.legoll@gmail.com>
Date2017-04-17 12:20 +0200
SubjectRe: [PATCH RFC] Make BCMA a menuconfig to ease disabling it all
Message-ID<txbVf-7Tg-1@gated-at.bofh.it>
In reply to#1624623
Argh,

looks like the "--in-reply-to" did not hook it up properly...

This was intended as a reply to:
http://lkml.iu.edu/hypermail/linux/kernel/1704.1/04654.html
Re: [PATCH] Make AMBA a menuconfig to ease disabling it all
from (Fri Apr 14 2017 - 08:33:57 EST)

Sorry

-- 
Vincent Legoll

[toc] | [prev] | [next] | [standalone]


#1623677

Fromkbuild test robot <lkp@intel.com>
Date2017-04-14 16:10 +0200
Message-ID<twa5c-22B-15@gated-at.bofh.it>
In reply to#1623640

[Multipart message — attachments visible in raw view] — view raw

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

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web