ARM: mvebu: select ARCH_REQUIRE_GPIOLIB for mvebu platform
Subsystems (3)
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
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
@@ -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
Jason Cooper
AppliedPATCH 1/1 ARM: mvebu: select ARCH_REQUIRE_GPIOLIB for mvebu platform
Quoted 22 lines · Gregory CLEMENT
Initially
ARCH_REQUIRE_GPIOLIBwas part of Thomas Petazzoni series when he introduced the gpiolib support for mvebu:
93a59cf arm: mvebu: use GPIO support now that a driver is availableThis commit was written to be applied for the
ARCH_MVEBUwhich was located inarch/arm/KConfigand was merged in 3.7.In the same time Rob Herring moved the
ARCH_MVEBUblock toarch/arm/mach-mvebu/Kconfigwith this commit and also merged in 3.7:
387798b ARM: initial multiplatform supportUnfortunately the
ARCH_REQUIRE_GPIOLIBhave been lost during this migration. This was not noticed until the v3.10-rc1, because mvebu as part ofARCH_MULTIPLATFORMwas always selected withARCH_VEXPRESS, and this architect selectedARCH_REQUIRE_GPIOLIB.Since the following commit from Arnd: "883a106 ARM: default machine descriptor for multiplatform",
ARCH_VEXPRESSwas then no more selected by default withARCH_MVEBUand it made appeared the lack ofARCH_REQUIRE_GPIOLIBfor mvebu. This commit added back the selection ofARCH_REQUIRE_GPIOLIBforARCH_MVEBU.
Quoted 4 lines
Signed-off-by Gregory CLEMENT <[email protected]>--- arch/arm/mach-mvebu/Kconfig | 1 + 1 file changed, 1 insertion(+)
Applied to mvebu/fixes
thx,
Jason.