Skip to contentSkip to conversation

arm: ARCH_REQUIRE_GPIOLIB selects GENERIC_GPIO

PATCH New H Hartley Sweeten 2 participants 14 messages Apr 1, 2010 – May 17, 2010 1 message not in the archive Arm (32-bit)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 arm: ARCH_REQUIRE_GPIOLIB selects GENERIC_GPIO

The ARCH_REQUIRE_GPIOLIB config option will select GPIOLIB which in turn will select GENERIC_GPIO. Because of this, there is no reason to do the select GENERIC_GPIO in arch/arm/Kconfig for the architectures that have ARCH_REQUIRE_GPIOLIB.

---

arch/arm/Kconfig +0 -19
index c5408bf..cdaa337 100644
@@ -271,7 +271,6 @@ config ARCH_VERSATILE
 
 config ARCH_AT91
 	bool "Atmel AT91"
-	select GENERIC_GPIO
 	select ARCH_REQUIRE_GPIOLIB
 	select HAVE_CLK
 	help
@@ -299,7 +298,6 @@ config ARCH_CLPS711X
 config ARCH_GEMINI
 	bool "Cortina Systems Gemini"
 	select CPU_FA526
-	select GENERIC_GPIO
 	select ARCH_REQUIRE_GPIOLIB
 	help
 	  Support for the Cortina Systems Gemini family SoCs
@@ -320,7 +318,6 @@ config ARCH_EP93XX
 	select CPU_ARM920T
 	select ARM_AMBA
 	select ARM_VIC
-	select GENERIC_GPIO
 	select HAVE_CLK
 	select COMMON_CLKDEV
 	select ARCH_REQUIRE_GPIOLIB
@@ -354,7 +351,6 @@ config ARCH_STMP3XXX
 	select ARCH_REQUIRE_GPIOLIB
 	select GENERIC_TIME
 	select GENERIC_CLOCKEVENTS
-	select GENERIC_GPIO
 	select USB_ARCH_HAS_EHCI
 	help
 	  Support for systems based on the Freescale 3xxx CPUs.
@@ -392,7 +388,6 @@ config ARCH_IOP32X
 	select CPU_XSCALE
 	select PLAT_IOP
 	select PCI
-	select GENERIC_GPIO
 	select ARCH_REQUIRE_GPIOLIB
 	help
 	  Support for Intel's 80219 and IOP32X (XScale) family of
@@ -404,7 +399,6 @@ config ARCH_IOP33X
 	select CPU_XSCALE
 	select PLAT_IOP
 	select PCI
-	select GENERIC_GPIO
 	select ARCH_REQUIRE_GPIOLIB
 	help
 	  Support for Intel's IOP33X (XScale) family of processors.
@@ -453,7 +447,6 @@ config ARCH_L7200
 config ARCH_DOVE
 	bool "Marvell Dove"
 	select PCI
-	select GENERIC_GPIO
 	select ARCH_REQUIRE_GPIOLIB
 	select GENERIC_TIME
 	select GENERIC_CLOCKEVENTS
@@ -465,7 +458,6 @@ config ARCH_KIRKWOOD
 	bool "Marvell Kirkwood"
 	select CPU_FEROCEON
 	select PCI
-	select GENERIC_GPIO
 	select ARCH_REQUIRE_GPIOLIB
 	select GENERIC_TIME
 	select GENERIC_CLOCKEVENTS
@@ -487,7 +479,6 @@ config ARCH_MV78XX0
 	bool "Marvell MV78xx0"
 	select CPU_FEROCEON
 	select PCI
-	select GENERIC_GPIO
 	select ARCH_REQUIRE_GPIOLIB
 	select GENERIC_TIME
 	select GENERIC_CLOCKEVENTS
@@ -501,7 +492,6 @@ config ARCH_ORION5X
 	depends on MMU
 	select CPU_FEROCEON
 	select PCI
-	select GENERIC_GPIO
 	select ARCH_REQUIRE_GPIOLIB
 	select GENERIC_TIME
 	select GENERIC_CLOCKEVENTS
@@ -514,7 +504,6 @@ config ARCH_ORION5X
 config ARCH_MMP
 	bool "Marvell PXA168/910/MMP2"
 	depends on MMU
-	select GENERIC_GPIO
 	select ARCH_REQUIRE_GPIOLIB
 	select HAVE_CLK
 	select COMMON_CLKDEV
@@ -528,7 +517,6 @@ config ARCH_MMP
 config ARCH_KS8695
 	bool "Micrel/Kendin KS8695"
 	select CPU_ARM922T
-	select GENERIC_GPIO
         select ARCH_REQUIRE_GPIOLIB
 	help
 	  Support for Micrel/Kendin KS8695 "Centaur" (ARM922T) based
@@ -551,7 +539,6 @@ config ARCH_W90X900
 	bool "Nuvoton W90X900 CPU"
 	select CPU_ARM926T
 	select ARCH_REQUIRE_GPIOLIB
-	select GENERIC_GPIO
 	select HAVE_CLK
 	select COMMON_CLKDEV
 	select GENERIC_TIME
@@ -587,7 +574,6 @@ config ARCH_PXA
 	depends on MMU
 	select ARCH_MTD_XIP
 	select ARCH_HAS_CPUFREQ
-	select GENERIC_GPIO
 	select HAVE_CLK
 	select COMMON_CLKDEV
 	select ARCH_REQUIRE_GPIOLIB
@@ -636,7 +622,6 @@ config ARCH_SA1100
 	select ARCH_MTD_XIP
 	select ARCH_HAS_CPUFREQ
 	select CPU_FREQ
-	select GENERIC_GPIO
 	select GENERIC_TIME
 	select GENERIC_CLOCKEVENTS
 	select HAVE_CLK
@@ -659,7 +644,6 @@ config ARCH_S3C64XX
 	bool "Samsung S3C64XX"
 	select PLAT_SAMSUNG
 	select CPU_V6
-	select GENERIC_GPIO
 	select ARM_VIC
 	select HAVE_CLK
 	select NO_IOPORT
@@ -768,7 +752,6 @@ config ARCH_NOMADIK
 	select COMMON_CLKDEV
 	select GENERIC_TIME
 	select GENERIC_CLOCKEVENTS
-	select GENERIC_GPIO
 	select ARCH_REQUIRE_GPIOLIB
 	help
 	  Support for the Nomadik platform by ST-Ericsson
@@ -778,7 +761,6 @@ config ARCH_DAVINCI
 	select CPU_ARM926T
 	select GENERIC_TIME
 	select GENERIC_CLOCKEVENTS
-	select GENERIC_GPIO
 	select ARCH_REQUIRE_GPIOLIB
 	select HAVE_CLK
 	select ZONE_DMA
@@ -791,7 +773,6 @@ config ARCH_DAVINCI
 
 config ARCH_OMAP
 	bool "TI OMAP"
-	select GENERIC_GPIO
 	select HAVE_CLK
 	select ARCH_REQUIRE_GPIOLIB
 	select ARCH_HAS_CPUFREQ

A message that is not in the archive (sent off-list or not yet received): [email protected]

#2 lore raw

PATCH 1/1 arm: ARCH_REQUIRE_GPIOLIB selects GENERIC_GPIO

Quoted 10 lines · Eric Miao
Quoted 7 lines · H Hartley Sweeten

The ARCH_REQUIRE_GPIOLIB config option will select GPIOLIB which in turn will select GENERIC_GPIO. ?Because of this, there is no reason to do the select GENERIC_GPIO in arch/arm/Kconfig for the architectures that have ARCH_REQUIRE_GPIOLIB.

A clean removal, Acked-by: Eric Miao <[email protected]>

Thanks.

Your reply was just to me. This is just to make sure it's on the arm list.

Regards,
Hartley

#3 lore raw

PATCH 1/1 arm: ARCH_REQUIRE_GPIOLIB selects GENERIC_GPIO

In reply to H Hartley Sweeten
Quoted 4 lines · H Hartley Sweeten

The ARCH_REQUIRE_GPIOLIB config option will select GPIOLIB which in turn will select GENERIC_GPIO. Because of this, there is no reason to do the select GENERIC_GPIO in arch/arm/Kconfig for the architectures that have ARCH_REQUIRE_GPIOLIB.

This kind of patch normally causes regular merge conflicts, which historically have caused a repeated number of headaches - there's a similar patch for GENERIC_TIME which is pending.

I suggest waiting until we're closer to the merge window than we are at present; I'll bring my devel stuff to a freeze state before hand so we can get these two patches merged - maybe around the -rc7 release.

Please ping me closer to that.

#4 lore raw

PATCH 1/1 arm: ARCH_REQUIRE_GPIOLIB selects GENERIC_GPIO

Quoted 10 lines · Russell King
Quoted 4 lines · H Hartley Sweeten

The ARCH_REQUIRE_GPIOLIB config option will select GPIOLIB which in turn will select GENERIC_GPIO. Because of this, there is no reason to do the select GENERIC_GPIO in arch/arm/Kconfig for the architectures that have ARCH_REQUIRE_GPIOLIB.

This kind of patch normally causes regular merge conflicts, which historically have caused a repeated number of headaches - there's a similar patch for GENERIC_TIME which is pending.

Quoted 6 lines

I suggest waiting until we're closer to the merge window than we are at present; I'll bring my devel stuff to a freeze state before hand so we can get these two patches merged - maybe around the -rc7 release.

Please ping me closer to that.

Will do.

I just wanted to get this out there to make sure nobody saw any issues.

I will hold this until around -rc7 as you requested and just collect any Ack's, etc., that show up. Eric Miao has already sent an Acked-by that I will add then.

Regards,
Hartley

#5 lore raw

PATCH 1/1 arm: ARCH_REQUIRE_GPIOLIB selects GENERIC_GPIO

Quoted 18 lines · H Hartley Sweeten
Quoted 10 lines · Russell King
Quoted 4 lines · H Hartley Sweeten

The ARCH_REQUIRE_GPIOLIB config option will select GPIOLIB which in turn will select GENERIC_GPIO. Because of this, there is no reason to do the select GENERIC_GPIO in arch/arm/Kconfig for the architectures that have ARCH_REQUIRE_GPIOLIB.

This kind of patch normally causes regular merge conflicts, which historically have caused a repeated number of headaches - there's a similar patch for GENERIC_TIME which is pending.

Quoted 6 lines

I suggest waiting until we're closer to the merge window than we are at present; I'll bring my devel stuff to a freeze state before hand so we can get these two patches merged - maybe around the -rc7 release.

Please ping me closer to that.

Quoted 7 lines

Will do.

I just wanted to get this out there to make sure nobody saw any issues.

I will hold this until around -rc7 as you requested and just collect any Ack's, etc., that show up. Eric Miao has already sent an Acked-by that I will add then.

Also please keep an eye for any new places in -next where GENERIC_GPIO is selected as well as ARCH_REQUIRE_GPIOLIB - we're likely to see new platforms being added which may continue the old mistake.

#6 lore raw

PATCH 1/1 arm: ARCH_REQUIRE_GPIOLIB selects GENERIC_GPIO

Quoted 23 lines · Russell King

On Mon, Apr 12, 2010 at 02:01:17PM -0500, H Hartley Sweeten wrote:

Quoted 21 lines · Russell King
Quoted 10 lines · H Hartley Sweeten
Quoted 4 lines

The ARCH_REQUIRE_GPIOLIB config option will select GPIOLIB which in turn will select GENERIC_GPIO. Because of this, there is no reason to do the select GENERIC_GPIO in arch/arm/Kconfig for the architectures that have ARCH_REQUIRE_GPIOLIB.

This kind of patch normally causes regular merge conflicts, which historically have caused a repeated number of headaches - there's a similar patch for GENERIC_TIME which is pending.

Quoted 6 lines

I suggest waiting until we're closer to the merge window than we are at present; I'll bring my devel stuff to a freeze state before hand so we can get these two patches merged - maybe around the -rc7 release.

Please ping me closer to that.

Will do.

I just wanted to get this out there to make sure nobody saw any issues.

Quoted 7 lines
Quoted 3 lines

I will hold this until around -rc7 as you requested and just collect any Ack's, etc., that show up. Eric Miao has already sent an Acked-by that I will add then.

Also please keep an eye for any new places in -next where GENERIC_GPIO is selected as well as ARCH_REQUIRE_GPIOLIB - we're likely to see new platforms being added which may continue the old mistake.

Russell,

-rc7 should be coming soon. Would you like this patch rebased now or after Linus releases -rc7? Also, I assume it should be rebased to linux-next or would you prefer it rebased to one of your branches?

Regards,
Hartley

#7 lore raw

PATCH 1/1 arm: ARCH_REQUIRE_GPIOLIB selects GENERIC_GPIO

Quoted 3 lines · H Hartley Sweeten

-rc7 should be coming soon. Would you like this patch rebased now or after Linus releases -rc7? Also, I assume it should be rebased to linux-next or would you prefer it rebased to one of your branches?

Thanks for reminding me.

This time around, there's a number of patches which can only sensibly be applied once I've frozen most of the individual branches of my tree, and this is one of them. Essentually, these are:
- your 'select GPIOLIB' patch
- killing the 'select GENERIC_TIME' from the ARM Kconfig menus
- pmu/oprofile patch set

Freezing it before -rc7 is released would be too early, so I think doing so shortly after -rc7 (which is due this evening/tonight) would be the right time.

#8 lore raw

PATCH 1/1 arm: ARCH_REQUIRE_GPIOLIB selects GENERIC_GPIO

Quoted 14 lines · Russell King
Quoted 3 lines · H Hartley Sweeten

-rc7 should be coming soon. Would you like this patch rebased now or after Linus releases -rc7? Also, I assume it should be rebased to linux-next or would you prefer it rebased to one of your branches?

Thanks for reminding me.

This time around, there's a number of patches which can only sensibly be applied once I've frozen most of the individual branches of my tree, and this is one of them. Essentually, these are:
- your 'select GPIOLIB' patch
- killing the 'select GENERIC_TIME' from the ARM Kconfig menus
- pmu/oprofile patch set

Quoted 3 lines

Freezing it before -rc7 is released would be too early, so I think doing so shortly after -rc7 (which is due this evening/tonight) would be the right time.

Hello Russell,

I see Linus released -rc7 over the weekend. When will you be freezing your -devel tree? I will rebase the 'select GPIOLIB' patch after that.

Regards,
Hartley

#9 lore raw

PATCH 1/1 arm: ARCH_REQUIRE_GPIOLIB selects GENERIC_GPIO

Quoted 15 lines · H Hartley Sweeten
Quoted 14 lines · Russell King
Quoted 3 lines · H Hartley Sweeten

-rc7 should be coming soon. Would you like this patch rebased now or after Linus releases -rc7? Also, I assume it should be rebased to linux-next or would you prefer it rebased to one of your branches?

Thanks for reminding me.

This time around, there's a number of patches which can only sensibly be applied once I've frozen most of the individual branches of my tree, and this is one of them. Essentually, these are:
- your 'select GPIOLIB' patch
- killing the 'select GENERIC_TIME' from the ARM Kconfig menus
- pmu/oprofile patch set

Quoted 8 lines
Quoted 3 lines

Freezing it before -rc7 is released would be too early, so I think doing so shortly after -rc7 (which is due this evening/tonight) would be the right time.

Hello Russell,

I see Linus released -rc7 over the weekend. When will you be freezing your -devel tree? I will rebase the 'select GPIOLIB' patch after that.

Russell,

Ping... ;-)

Are you ready for this patch to be rebased, and to what tree?

Regards,
Hartley

#10 lore raw

PATCH 1/1 arm: ARCH_REQUIRE_GPIOLIB selects GENERIC_GPIO

Quoted 5 lines · H Hartley Sweeten

Russell,

Ping... ;-)

Are you ready for this patch to be rebased, and to what tree?

I've not forgotten; I've just posted the notice about closing my tree down this weekend, and once that's been done I'll be dealing with this and another lose end.

#11 lore raw

PATCH 1/1 arm: ARCH_REQUIRE_GPIOLIB selects GENERIC_GPIO

In reply to H Hartley Sweeten
Quoted 1 line · H Hartley Sweeten

Are you ready for this patch to be rebased, and to what tree?

Can you rebase onto what's currently in the devel tree, and send the resulting patch to the patch system please?

(for others, I've temporarily dropped some merges on the devel tree.)

#12 lore raw

PATCH 1/1 arm: ARCH_REQUIRE_GPIOLIB selects GENERIC_GPIO

Quoted 5 lines · Russell King
Quoted 1 line · H Hartley Sweeten

Are you ready for this patch to be rebased, and to what tree?

Can you rebase onto what's currently in the devel tree, and send the resulting patch to the patch system please?

Russell,

I'm pulling your tree right now. I will post the rebased patch ASAP.

Sorry for the delay,
Hartley

Quoted 1 line

(for others, I've temporarily dropped some merges on the devel tree.)

#13 lore raw

PATCH 1/1 arm: ARCH_REQUIRE_GPIOLIB selects GENERIC_GPIO

In reply to Russell King - ARM Linux

Added to patch system as Patch #6136.

Thanks,
Hartley

-----Original Message-----
From: Russell King - ARM Linux [mailto:linux at arm.linux.org.uk]
Sent: Sunday, May 16, 2010 7:50 AM
To: H Hartley Sweeten
Cc: linux-arm-kernel at lists.infradead.org
Subject: Re: [PATCH] arm: ARCH_REQUIRE_GPIOLIB selects GENERIC_GPIO

Quoted 1 line · H Hartley Sweeten

Are you ready for this patch to be rebased, and to what tree?

Can you rebase onto what's currently in the devel tree, and send the resulting patch to the patch system please?

(for others, I've temporarily dropped some merges on the devel tree.)

#14 lore raw

PATCH 1/1 arm: ARCH_REQUIRE_GPIOLIB selects GENERIC_GPIO

Quoted 1 line · H Hartley Sweeten

Added to patch system as Patch #6136.

Thanks, all merged and pushed out, with everything back that was dropped.

Now just need John's GENERIC_TIME patch and we're all set.

Thanks.