Skip to contentSkip to conversation

plat-pxa: move PXA GPIO driver to GPIO subsystem

PATCH New Linus Walleij 3 participants 3 messages Sep 27, 2011 – Oct 2, 2011

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

PATCH v2 1/2 plat-pxa: move PXA GPIO driver to GPIO subsystem

From: Linus Walleij <[email protected]>

As per example from the other ARM boards, push the PXA GPIO driver down to the GPIO subsystem so it can be consolidated.

---
 arch/arm/plat-pxa/Makefile |    1 -
 arch/arm/plat-pxa/gpio.c   |  336 --------------------------------------------
 drivers/gpio/Makefile      |    1 +
 drivers/gpio/gpio-pxa.c    |  336 ++++++++++++++++++++++++++++++++++++++++++++
 4 files changed, 337 insertions(+), 337 deletions(-)
 delete mode 100644 arch/arm/plat-pxa/gpio.c
 create mode 100644 drivers/gpio/gpio-pxa.c
arch/arm/plat-pxa/Makefile +0 -1
index 3aca5ba..f302d04 100644
@@ -4,7 +4,6 @@
 
 obj-y	:= dma.o
 
-obj-$(CONFIG_GENERIC_GPIO)	+= gpio.o
 obj-$(CONFIG_PXA3xx)		+= mfp.o
 obj-$(CONFIG_PXA95x)		+= mfp.o
 obj-$(CONFIG_ARCH_MMP)		+= mfp.o
arch/arm/plat-pxa/gpio.c deleted +0 -336

336 lines not on this page · raw message

drivers/gpio/Makefile +1 -0
index a4c8ac9..828e9ab 100644
@@ -40,6 +40,7 @@ obj-$(CONFIG_GPIO_PCA953X)	+= gpio-pca953x.o
 obj-$(CONFIG_GPIO_PCF857X)	+= gpio-pcf857x.o
 obj-$(CONFIG_GPIO_PCH)		+= gpio-pch.o
 obj-$(CONFIG_GPIO_PL061)	+= gpio-pl061.o
+obj-$(CONFIG_PLAT_PXA)		+= gpio-pxa.o
 obj-$(CONFIG_GPIO_RDC321X)	+= gpio-rdc321x.o
 obj-$(CONFIG_ARCH_SA1100)	+= gpio-sa1100.o
 obj-$(CONFIG_PLAT_SAMSUNG)	+= gpio-samsung.o
drivers/gpio/gpio-pxa.c new file +336 -0

336 lines not on this page · raw message

Signature · 1 line
1.7.3.2
#1 lore raw

PATCH v2 1/2 plat-pxa: move PXA GPIO driver to GPIO subsystem

drivers/gpio/Makefile obj-$(CONFIG_GPIO_PCA953X) += gpio-pca953x.o · line 46

Quoted 12 lines · Linus Walleij
drivers/gpio/Makefile +1 -0
index a4c8ac9..828e9ab 100644
@@ -40,6 +40,7 @@ obj-$(CONFIG_GPIO_PCA953X)	+= gpio-pca953x.o
 obj-$(CONFIG_GPIO_PCF857X)	+= gpio-pcf857x.o
 obj-$(CONFIG_GPIO_PCH)		+= gpio-pch.o
 obj-$(CONFIG_GPIO_PL061)	+= gpio-pl061.o
+obj-$(CONFIG_PLAT_PXA)		+= gpio-pxa.o
 obj-$(CONFIG_GPIO_RDC321X)	+= gpio-rdc321x.o
 obj-$(CONFIG_ARCH_SA1100)	+= gpio-sa1100.o
 obj-$(CONFIG_PLAT_SAMSUNG)	+= gpio-samsung.o

This is not what my drivers/gpio/Makefile contains. I've applied this patch with GNU patch with fuzz 2, resulting in:

drivers/gpio/Makefile +1 -0
index 84bc738..19c5d27 100644
@@ -40,6 +40,7 @@ obj-$(CONFIG_GPIO_PCA953X)    += gpio-pca953x.o
 obj-$(CONFIG_GPIO_PCF857X)     += gpio-pcf857x.o
 obj-$(CONFIG_GPIO_PCH)         += gpio-pch.o
 obj-$(CONFIG_GPIO_PL061)       += gpio-pl061.o
+obj-$(CONFIG_PLAT_PXA)         += gpio-pxa.o
 obj-$(CONFIG_GPIO_RDC321X)     += gpio-rdc321x.o
 
 obj-$(CONFIG_GPIO_PLAT_SAMSUNG)        += gpio-plat-samsung.o

This will probably conflict with Grant's tree.

#2 lore raw

PATCH v2 1/2 plat-pxa: move PXA GPIO driver to GPIO subsystem

2011/10/2 Russell King - ARM Linux <[email protected]>:

Quoted 19 lines · Linus Walleij
Quoted 3 lines

?obj-$(CONFIG_GPIO_PL061) ? ? += gpio-pl061.o +obj-$(CONFIG_PLAT_PXA) ? ? ? ? ? ? ? += gpio-pxa.o ?obj-$(CONFIG_GPIO_RDC321X) ? += gpio-rdc321x.o

This is not what my drivers/gpio/Makefile contains. ?I've applied this patch with GNU patch with fuzz 2, resulting in:

drivers/gpio/Makefile +0 -0
index 84bc738..19c5d27 100644
@@ -40,6 +40,7 @@ obj-$(CONFIG_GPIO_PCA953X) ? ?+= gpio-pca953x.o

?obj-$(CONFIG_GPIO_PCF857X) ? ? += gpio-pcf857x.o
?obj-$(CONFIG_GPIO_PCH) ? ? ? ? += gpio-pch.o
?obj-$(CONFIG_GPIO_PL061) ? ? ? += gpio-pl061.o
+obj-$(CONFIG_PLAT_PXA) ? ? ? ? += gpio-pxa.o
?obj-$(CONFIG_GPIO_RDC321X) ? ? += gpio-rdc321x.o

Quoted 3 lines

?obj-$(CONFIG_GPIO_PLAT_SAMSUNG) ? ? ? ?+= gpio-plat-samsung.o

This will probably conflict with Grant's tree.

Yes luckily it looks pretty trivial.

Haojioan is working on cleanups to this driver that need to be rebased on top of this and submitted through your branch in order for us not to create even more conflicts.

Feel free to drop any of this stuff if it's just causing trouble, it can surely wait until the next merge window if need be.

Yours,
Linus Walleij