arm: enable RapidIO config options in Kconfig
PATCH 1/1 arm: enable RapidIO config options in Kconfig
ARM SoCs with a PCI bus offer the RapiodIO config menu; SoCs with RapidIO IP blocks but without a PCI bus, need to add "select HAS_RAPIDIO" to the Kconfig entry for that SoC (e.g. ARCH_*).
HAS_RAPIDIO was chosen over HAVE_RAPIDIO to be consistent with other architectures which already define this flag (powerpc).
---
Tested that kernel builds with RapidIO subsystem and switch drivers enabled. Maintainers for RapidIO subsystem CCed.
Sending a similar patch to ARM64 maintainers shortly.
arch/arm/Kconfig | 16 ++++++++++++++++ 1 file changed, 16 insertions(+)
arch/arm/Kconfig +16 -0
@@ -1274,6 +1274,22 @@ config PCI_HOST_ITE8152 source "drivers/pci/Kconfig" +config HAS_RAPIDIO + bool + default n + +config RAPIDIO + tristate "RapidIO support" + depends on HAS_RAPIDIO || PCI + help + This feature enables support for RapidIO high-performance + packet-switched interconnect. + + If you say Y here, the kernel will include drivers and + infrastructure code to support RapidIO interconnect devices. + +source "drivers/rapidio/Kconfig" + source "drivers/pcmcia/Kconfig" endmenu
Signature · 1 line
2.18.0
Quoted 7 lines · Alexei Colin
ARM SoCs with a PCI bus offer the RapiodIO config menu; SoCs with RapidIO IP blocks but without a PCI bus, need to add "select
HAS_RAPIDIO" to theKconfigentry for that SoC (e.g. ARCH_*).
HAS_RAPIDIOwas chosen overHAVE_RAPIDIOto be consistent with other architectures which already define this flag (powerpc).
Quoted 6 lines
Signed-off-by Alexei Colin <[email protected]>---
Tested that kernel builds with RapidIO subsystem and switch drivers enabled. Maintainers for RapidIO subsystem CCed.
Sending a similar patch to ARM64 maintainers shortly.
Could you move CONFIG_RAPIDIO to drivers/rapidio? That would avoid repeating it for each of the five architectures, and make it more consistent with other subsystems.
Arnd
Russell King - ARM Linux
maintainerQuoted 6 lines · Alexei Colin
ARM SoCs with a PCI bus offer the RapiodIO config menu; SoCs with RapidIO IP blocks but without a PCI bus, need to add "select
HAS_RAPIDIO" to theKconfigentry for that SoC (e.g. ARCH_*).
HAS_RAPIDIOwas chosen overHAVE_RAPIDIOto be consistent with other architectures which already define this flag (powerpc).
Is there any reason we can't have the RAPIDIO and HAS_RAPIDIO config blocks in drivers/rapidio/Kconfig (maybe without the || PCI - see below), and then have architecture Kconfig files do:
config (ARM or PPC)
select HAS_RAPIDIO if PCI
or in the case of MIPS:
config MIPS
... select HAS_RAPIDIO
That would avoid duplicating almost identical RAPIDIO and HAS_RAPIDIO config blocks in architecture Kconfig files.
Why should rapidio be available just because we have PCI selected? If it behaves as a PCI add-in card, then why isn't this available for any architecture with PCI?
What about build coverage - shouldn't RAPIDIO be selectable for (eg) other architectures via COMPILE_TEST if it's supposed to be generic?
Signature · 3 lines
RMK's Patch system: http://www.armlinux.org.uk/developer/patches/ FTTC broadband for 0.8mile line in suburbia: sync at 13.8Mbps down 630kbps up According to speedtest.net: 13Mbps down 490kbps up