The 2 IXP4xx SOC drivers qmgr and npe are selected automatically when
needed so they do not need to be presented to the user.

Furthermore these helper drivers are specific to the IXP4xx arch so
hide them completely on other architectures so as to not clutter the
config file.

Signed-off-by: Jean Delvare <jdelv...@suse.de>
Cc: Krzysztof Halasa <khal...@piap.pl>
Cc: Linus Walleij <linus.wall...@linaro.org>
---
Note: Ultimately all I want is that non-ixp4xx users are not asked
about IXP4XX_QMGR and IXP4XX_NPE. If there is another preferred option
to achieve the same, that would work with me too, just let me know.

 drivers/soc/ixp4xx/Kconfig |    6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

--- linux-5.2.orig/drivers/soc/ixp4xx/Kconfig   2019-07-08 00:41:56.000000000 
+0200
+++ linux-5.2/drivers/soc/ixp4xx/Kconfig        2019-07-12 15:21:44.769229835 
+0200
@@ -1,17 +1,19 @@
 # SPDX-License-Identifier: GPL-2.0-only
+if ARCH_IXP4XX
 menu "IXP4xx SoC drivers"
 
 config IXP4XX_QMGR
-       tristate "IXP4xx Queue Manager support"
+       tristate
        help
          This driver supports IXP4xx built-in hardware queue manager
          and is automatically selected by Ethernet and HSS drivers.
 
 config IXP4XX_NPE
-       tristate "IXP4xx Network Processor Engine support"
+       tristate
        select FW_LOADER
        help
          This driver supports IXP4xx built-in network coprocessors
          and is automatically selected by Ethernet and HSS drivers.
 
 endmenu
+endif

-- 
Jean Delvare
SUSE L3 Support

Reply via email to