arm64: enable RapidIO config options in Kconfig
PATCH 1/1 arm64: enable RapidIO config options in Kconfig
ARM64 SoCs with a PCI bus present the RapiodIO options; SoCs with RapidIO IP blocks but without a PCI bus, need to select HAS_RAPIDIO in Kconfig.platforms.
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 and that modules insert successfully in a custom Qemu hardware model. Maintainers for RapidIO subsystem CCed.
Similar patch for ARM has been submitted.
arch/arm64/Kconfig | 16 ++++++++++++++++ 1 file changed, 16 insertions(+)
arch/arm64/Kconfig +16 -0
@@ -293,6 +293,22 @@ config PCI_SYSCALL 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" + endmenu menu "Kernel Features"
Signature · 1 line
2.18.0
Quoted 29 lines · Alexei Colin
ARM64 SoCs with a PCI bus present the RapiodIO options; SoCs with RapidIO IP blocks but without a PCI bus, need to select
HAS_RAPIDIOinKconfig.platforms.
HAS_RAPIDIOwas chosen overHAVE_RAPIDIOto be consistent with other architectures which already define this flag (powerpc).Signed-off-by Alexei Colin <[email protected]>---
Tested that kernel builds with RapidIO subsystem and switch drivers and that modules insert successfully in a custom Qemu hardware model. Maintainers for RapidIO subsystem CCed.
Similar patch for ARM has been submitted.arch/arm64/Kconfig | 16 ++++++++++++++++ 1 file changed, 16 insertions(+)arch/arm64/Kconfig +3
-0@@ -293,6 +293,22 @@ config PCI_SYSCALL source "drivers/pci/Kconfig" +config HAS_RAPIDIO + bool + default n
arch/arm64/Kconfig config PCI_SYSCALL · line 308
Quoted 10 lines
arch/arm64/Kconfig +10
-0+ +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.
It feels a bit weird to push this help text into the arch Kconfig files, rather than just have them provide the HAS_RAPIDIO symbol, but if that's what everybody else is doing then I guess it's fine.
Will
Quoted 36 lines · Will Deacon
Quoted 35 lines · Alexei Colin
ARM64 SoCs with a PCI bus present the RapiodIO options; SoCs with RapidIO IP blocks but without a PCI bus, need to select
HAS_RAPIDIOinKconfig.platforms.
HAS_RAPIDIOwas chosen overHAVE_RAPIDIOto be consistent with other architectures which already define this flag (powerpc).Signed-off-by Alexei Colin <[email protected]>---
Tested that kernel builds with RapidIO subsystem and switch drivers and that modules insert successfully in a custom Qemu hardware model. Maintainers for RapidIO subsystem CCed.
Similar patch for ARM has been submitted.arch/arm64/Kconfig | 16 ++++++++++++++++ 1 file changed, 16 insertions(+)arch/arm64/Kconfig +9
-0@@ -293,6 +293,22 @@ config PCI_SYSCALL 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
Quoted 8 lines
arch/arm64/Kconfig config PCI_SYSCALL · line 308
Quoted 4 lines
arch/arm64/Kconfig +4
-0+ packet-switched interconnect. + + If you say Y here, the kernel will include drivers and + infrastructure code to support RapidIO interconnect devices.It feels a bit weird to push this help text into the arch
Kconfigfiles, rather than just have them provide theHAS_RAPIDIOsymbol, but if that's what everybody else is doing then I guess it's fine.
Both Arnd and Russell King asked for moving CONFIG_RAPIDIO to drivers/rapidio/Kconfig, and I also think that would be better.
Signature · 1 line
~Randy