diff mbox

[6/6] pci, thunder: Enable Cavium Thunder PCIe host controller

Message ID 1411573068-12952-7-git-send-email-rric@kernel.org
State Changes Requested
Headers show

Commit Message

Robert Richter Sept. 24, 2014, 3:37 p.m. UTC
From: Robert Richter <rrichter@cavium.com>

Enable Cavium Thunder PCIe host controller driver.

IOV is enabled per default if drivers with IOV support are
enabled. IOV can be disabled.

Signed-off-by: Robert Richter <rrichter@cavium.com>
---
 arch/arm64/Kconfig | 11 +++++++++++
 1 file changed, 11 insertions(+)

Comments

Catalin Marinas Sept. 24, 2014, 5:12 p.m. UTC | #1
On Wed, Sep 24, 2014 at 04:37:48PM +0100, Robert Richter wrote:
> From: Robert Richter <rrichter@cavium.com>
> 
> Enable Cavium Thunder PCIe host controller driver.
> 
> IOV is enabled per default if drivers with IOV support are
> enabled. IOV can be disabled.
> 
> Signed-off-by: Robert Richter <rrichter@cavium.com>
> ---
>  arch/arm64/Kconfig | 11 +++++++++++
>  1 file changed, 11 insertions(+)
> 
> diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig
> index 97777e1ef5a7..bd9724e5c8a1 100644
> --- a/arch/arm64/Kconfig
> +++ b/arch/arm64/Kconfig
> @@ -172,6 +172,14 @@ config PCI
>  config PCI_MSI
>  	def_bool PCI
>  
> +config NO_PCI_IOV
> +	def_bool PCI
> +	depends on !PCI_THUNDER
> +
> +config PCI_IOV
> +	def_bool PCI
> +	depends on !NO_PCI_IOV

Does this work with single image where drivers may have different
PCI_IOV needs?
diff mbox

Patch

diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig
index 97777e1ef5a7..bd9724e5c8a1 100644
--- a/arch/arm64/Kconfig
+++ b/arch/arm64/Kconfig
@@ -172,6 +172,14 @@  config PCI
 config PCI_MSI
 	def_bool PCI
 
+config NO_PCI_IOV
+	def_bool PCI
+	depends on !PCI_THUNDER
+
+config PCI_IOV
+	def_bool PCI
+	depends on !NO_PCI_IOV
+
 config PCI_DOMAINS
 	def_bool PCI
 
@@ -185,6 +193,9 @@  source "drivers/pci/Kconfig"
 source "drivers/pci/pcie/Kconfig"
 source "drivers/pci/hotplug/Kconfig"
 
+config PCI_THUNDER
+	def_bool PCI
+
 endmenu
 
 menu "Kernel Features"