Skip to contentSkip to conversation

ARM: mvebu: select ARCH_REQUIRE_GPIOLIB for mvebu platform

PATCH New Gregory CLEMENT 2 participants 3 messages May 17, 2013

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

PATCH 1/1 ARM: mvebu: select ARCH_REQUIRE_GPIOLIB for mvebu platform

Hello,

The following fix a regression which appear in 3.10-rc1: the GPIOLIB is nor more selected for mvebu. I found this while I was trying to test the GPIO buttons on the OpenBlocks AX3, but it impacts all the mvebu platform.

It was the conjunction of a lot of
elements which lead to this bug, see the commit log for the details. The patch by itself is very simple.

Regards,

Gregory CLEMENT (1):
ARM: mvebu: select ARCH_REQUIRE_GPIOLIB for mvebu platform

 arch/arm/mach-mvebu/Kconfig | 1 +
 1 file changed, 1 insertion(+)
Signature · 1 line
1.8.1.2
#1 lore raw

PATCH 1/1 ARM: mvebu: select ARCH_REQUIRE_GPIOLIB for mvebu platform

Initially ARCH_REQUIRE_GPIOLIB was part of Thomas Petazzoni series when he introduced the gpiolib support for mvebu:
93a59cf arm: mvebu: use GPIO support now that a driver is available

This commit was written to be applied for the ARCH_MVEBU which was located in arch/arm/KConfig and was merged in 3.7.

In the same time Rob Herring moved the ARCH_MVEBU block to arch/arm/mach-mvebu/Kconfig with this commit and also merged in 3.7:
387798b ARM: initial multiplatform support

Unfortunately the ARCH_REQUIRE_GPIOLIB have been lost during this migration. This was not noticed until the v3.10-rc1, because mvebu as part of ARCH_MULTIPLATFORM was always selected with ARCH_VEXPRESS, and this architect selected ARCH_REQUIRE_GPIOLIB.

Since the following commit from Arnd: "883a106 ARM: default machine descriptor for multiplatform", ARCH_VEXPRESS was then no more selected by default with ARCH_MVEBU and it made appeared the lack of ARCH_REQUIRE_GPIOLIB for mvebu. This commit added back the selection of ARCH_REQUIRE_GPIOLIB for ARCH_MVEBU.

---
 arch/arm/mach-mvebu/Kconfig | 1 +
 1 file changed, 1 insertion(+)
arch/arm/mach-mvebu/Kconfig +1 -0
index e11acbb..80a8bca 100644
@@ -15,6 +15,7 @@ config ARCH_MVEBU
 	select MVEBU_CLK_GATING
 	select MVEBU_MBUS
 	select ZONE_DMA if ARM_LPAE
+	select ARCH_REQUIRE_GPIOLIB
 
 if ARCH_MVEBU
 
Signature · 1 line
1.8.1.2
Applied
#2 lore raw

PATCH 1/1 ARM: mvebu: select ARCH_REQUIRE_GPIOLIB for mvebu platform

Quoted 22 lines · Gregory CLEMENT

Initially ARCH_REQUIRE_GPIOLIB was part of Thomas Petazzoni series when he introduced the gpiolib support for mvebu:
93a59cf arm: mvebu: use GPIO support now that a driver is available

This commit was written to be applied for the ARCH_MVEBU which was located in arch/arm/KConfig and was merged in 3.7.

In the same time Rob Herring moved the ARCH_MVEBU block to arch/arm/mach-mvebu/Kconfig with this commit and also merged in 3.7:
387798b ARM: initial multiplatform support

Unfortunately the ARCH_REQUIRE_GPIOLIB have been lost during this migration. This was not noticed until the v3.10-rc1, because mvebu as part of ARCH_MULTIPLATFORM was always selected with ARCH_VEXPRESS, and this architect selected ARCH_REQUIRE_GPIOLIB.

Since the following commit from Arnd: "883a106 ARM: default machine descriptor for multiplatform", ARCH_VEXPRESS was then no more selected by default with ARCH_MVEBU and it made appeared the lack of ARCH_REQUIRE_GPIOLIB for mvebu. This commit added back the selection of ARCH_REQUIRE_GPIOLIB for ARCH_MVEBU.

Quoted 4 lines
---
 arch/arm/mach-mvebu/Kconfig | 1 +
 1 file changed, 1 insertion(+)

Applied to mvebu/fixes

thx,

Jason.