[PATCH v6 1/3] ARM: kconfig: allow PCI support to be selected with ARCH_MULTIPLATFORM

Stephen Warren swarren at wwwdotorg.org
Thu May 8 08:08:25 PDT 2014


On 05/07/2014 10:07 AM, Will Deacon wrote:
> When targetting ARCH_MULTIPLATFORM, we may include support for SoCs with
> PCI-capable devices (e.g. mach-virt with virtio-pci).
> 
> This patch allows PCI support to be selected for these SoCs by selecting
> CONFIG_MIGHT_HAVE_PCI when CONFIG_ARCH_MULTIPLATFORM=y.

> diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig

> @@ -314,6 +314,7 @@ config ARCH_MULTIPLATFORM
>  	select CLKSRC_OF
>  	select COMMON_CLK
>  	select GENERIC_CLOCKEVENTS
> +	select MIGHT_HAVE_PCI

Doesn't ARCH_MULTIPLATFORM allow ARCH_$soc to be selected, and ARCH_$soc
selects MIGHT_HAVE_PCI?

That way, you can only enable PCI support if you have actually enabled
an SoC that has PCI, and equally ARCH_$soc selects MIGHT_HAVE_PCI just
like it always used to work before ARCH_MULTIPLATFORM.



More information about the linux-arm-kernel mailing list