Skip to contentSkip to conversation

PCI: mvebu: Restrict build to 32-bit ARM

PATCH Applied Thierry Reding 5 participants 7 messages Feb 18, 2016 – Feb 26, 2016

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 PCI: mvebu: Restrict build to 32-bit ARM

From: Thierry Reding <[email protected]>

This driver uses PCI glue that is only available on 32-bit ARM. This used to work fine as long as ARCH_MVEBU and ARCH_DOVE were exclusively 32-bit, but that's changed now, with ARCH_MVEBU also being available on 64-bit ARM.

---
 drivers/pci/host/Kconfig | 1 +
 1 file changed, 1 insertion(+)
drivers/pci/host/Kconfig +1 -0
index 75a605426538..d1cdd9c992ac 100644
@@ -14,6 +14,7 @@ config PCI_DRA7XX
 config PCI_MVEBU
 	bool "Marvell EBU PCIe controller"
 	depends on ARCH_MVEBU || ARCH_DOVE
+	depends on ARM
 	depends on OF
 
 config PCIE_DW
Signature · 1 line
2.7.1
#1 lore raw
Quoted 8 lines · On Thursday 18 February 2016 14:32:10 Thierry Reding wrote:

From: Thierry Reding <[email protected]>

This driver uses PCI glue that is only available on 32-bit ARM. This used to work fine as long as ARCH_MVEBU and ARCH_DOVE were exclusively 32-bit, but that's changed now, with ARCH_MVEBU also being available on 64-bit ARM.

Looks fine as a temporary workaround, but I think what we really want to do here is to remove the dependency, as the new ARM64 platforms are going to need this driver anyway.

Arnd

#2 lore raw
Quoted 8 lines · Arnd Bergmann
Quoted 7 lines · On Thursday 18 February 2016 14:32:10 Thierry Reding wrote:

From: Thierry Reding <[email protected]>

This driver uses PCI glue that is only available on 32-bit ARM. This used to work fine as long as ARCH_MVEBU and ARCH_DOVE were exclusively 32-bit, but that's changed now, with ARCH_MVEBU also being available on 64-bit ARM.

Quoted 5 lines
Quoted 1 line

Looks fine as a temporary workaround, but I think what we really want to do here is to remove the dependency, as the new ARM64 platforms are going to need this driver anyway.

Agreed. I've been meaning to do just that for Tegra as well, but the conversion is somewhat more involved and this is currently breaking the linux-next builds, so a quick fix, even if temporary, is warranted in my opinion.

Thierry
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20160218/a03a27ec/attachment-0001.sig>

Acked-by on v1 1/1
#5 lore raw
In reply to Thierry Reding

Hello,

Quoted 11 lines · Thierry Reding

From: Thierry Reding <[email protected]>

This driver uses PCI glue that is only available on 32-bit ARM. This used to work fine as long as ARCH_MVEBU and ARCH_DOVE were exclusively 32-bit, but that's changed now, with ARCH_MVEBU also being available on 64-bit ARM.

---
 drivers/pci/host/Kconfig | 1 +
 1 file changed, 1 insertion(+)

Best regards,

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
#3 lore raw
In reply to Arnd Bergmann

Hi Arnd,

Quoted 8 lines · Arnd Bergmann
Quoted 7 lines · On Thursday 18 February 2016 14:32:10 Thierry Reding wrote:

From: Thierry Reding <[email protected]>

This driver uses PCI glue that is only available on 32-bit ARM. This used to work fine as long as ARCH_MVEBU and ARCH_DOVE were exclusively 32-bit, but that's changed now, with ARCH_MVEBU also being available on 64-bit ARM.

Quoted 5 lines
Quoted 1 line

Looks fine as a temporary workaround, but I think what we really want to do here is to remove the dependency, as the new ARM64 platforms are going to need this driver anyway.

Actually the mvebu ARM64 platform we know about (Armada 3700, 7K and 8K), won't use the same controller. A7K/A8K will use a synopsis IP and Armada 3700 a new Marvell IP.

So for me depending on ARM32 is enough.

Gregory

Signature · 4 lines
Gregory Clement, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com
#4 lore raw
Quoted 16 lines · On Thursday 18 February 2016 15:34:30 Gregory CLEMENT wrote:
Quoted 8 lines · Arnd Bergmann
Quoted 7 lines · On Thursday 18 February 2016 14:32:10 Thierry Reding wrote:

From: Thierry Reding <[email protected]>

This driver uses PCI glue that is only available on 32-bit ARM. This used to work fine as long as ARCH_MVEBU and ARCH_DOVE were exclusively 32-bit, but that's changed now, with ARCH_MVEBU also being available on 64-bit ARM.

Quoted 5 lines
Quoted 1 line

Looks fine as a temporary workaround, but I think what we really want to do here is to remove the dependency, as the new ARM64 platforms are going to need this driver anyway.

Quoted 5 lines

Actually the mvebu ARM64 platform we know about (Armada 3700, 7K and 8K), won't use the same controller. A7K/A8K will use a synopsis IP and Armada 3700 a new Marvell IP.

So for me depending on ARM32 is enough.

Ah, that makes things much easier indeed.

Does this mean no more MBUS on the 64-bit platforms too?

Arnd

#6 lore raw
In reply to Thierry Reding
Quoted 8 lines · Thierry Reding

From: Thierry Reding <[email protected]>

This driver uses PCI glue that is only available on 32-bit ARM. This used to work fine as long as ARCH_MVEBU and ARCH_DOVE were exclusively 32-bit, but that's changed now, with ARCH_MVEBU also being available on 64-bit ARM.

I applied this with Thomas' ack to my for-linus branch for v4.5, thanks Thierry!

Quoted 19 lines
---
 drivers/pci/host/Kconfig | 1 +
 1 file changed, 1 insertion(+)
drivers/pci/host/Kconfig +1 -0
index 75a605426538..d1cdd9c992ac 100644
@@ -14,6 +14,7 @@ config PCI_DRA7XX
 config PCI_MVEBU
 	bool "Marvell EBU PCIe controller"
 	depends on ARCH_MVEBU || ARCH_DOVE
+	depends on ARM
 	depends on OF
 
 config PCIE_DW
Signature · 1 line
2.7.1