Skip to contentSkip to conversation

ia64: Hook up gpiolib support

PATCH In review Mark Brown 3 participants 10 messages Jun 1, 2011 – Jun 2, 2011

lore
Share & tools
lore

Mark Brown

author
#0 lore raw

PATCH 1/1 ia64: Hook up gpiolib support

Allow people to use gpiolib on ia64, mostly for build coverage as it seems more useful to standardise on availablity of the API than handle it being optional.

---
 arch/ia64/Kconfig            |    4 +++
 arch/ia64/include/asm/gpio.h |   55 ++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 59 insertions(+), 0 deletions(-)
 create mode 100644 arch/ia64/include/asm/gpio.h
arch/ia64/Kconfig +4 -0
index 38280ef..dbffa42 100644
@@ -27,6 +27,7 @@ config IA64
 	select GENERIC_PENDING_IRQ if SMP
 	select IRQ_PER_CPU
 	select GENERIC_IRQ_SHOW
+	select ARCH_WANT_OPTINAL_GPIOLIB
 	default y
 	help
 	  The Itanium Processor Family is Intel's 64-bit successor to
@@ -89,6 +90,9 @@ config GENERIC_TIME_VSYSCALL
 config HAVE_SETUP_PER_CPU_AREA
 	def_bool y
 
+config GENERIC_GPIO
+	def_bool y
+
 config DMI
 	bool
 	default y
arch/ia64/include/asm/gpio.h new file +55 -0

55 lines not on this page · raw message

Signature · 1 line
1.7.5.3
#1 lore raw

+ select ARCH_WANT_OPTINAL_GPIOLIB

"OPTINAL"? ... presumably "OPTIONAL" (or "OPTIMAL" :-)

-Tony

author
#2 lore raw
In reply to Mark Brown
Quoted 3 lines · Tony
arch/ia64/Kconfig +1 -0
+	select ARCH_WANT_OPTINAL_GPIOLIB

"OPTINAL"? ... presumably "OPTIONAL" (or "OPTIMAL" :-)

Should be OPTINAL, yes.

#3 lore raw
In reply to Mark Brown
Quoted 7 lines · Mark Brown
Quoted 3 lines · Tony

+     select ARCH_WANT_OPTINAL_GPIOLIB

"OPTINAL"? ... presumably "OPTIONAL" (or "OPTIMAL" :-)

Should be OPTINAL, yes.

Same typo again? :-)

g.

Signature · 2 lines
Grant Likely, B.Sc., P.Eng.
Secret Lab Technologies Ltd.
author
#4 lore raw
In reply to Mark Brown
Quoted 10 lines · Grant Likely

On Wed, Jun 1, 2011 at 1:31 PM, Mark Brown

Quoted 6 lines · Tony
Quoted 3 lines

+     select ARCH_WANT_OPTINAL_GPIOLIB

"OPTINAL"? ... presumably "OPTIONAL" (or "OPTIMAL" :-)

Should be OPTINAL, yes.

Same typo again? :-)

Bah, humbg. :P

#5 lore raw
In reply to Mark Brown
Quoted 6 lines · Mark Brown
Quoted 4 lines · Grant Likely

On Wed, Jun 1, 2011 at 1:31 PM, Mark Brown

Quoted 2 lines · Tony
Quoted 1 line

+     select ARCH_WANT_OPTINAL_GPIOLIB

Quoted 7 lines
Quoted 5 lines
Quoted 3 lines
Quoted 1 line

"OPTINAL"? ... presumably "OPTIONAL" (or "OPTIMAL" :-)

Should be OPTINAL, yes.

Same typo again?  :-)

Bah, humbg.  :P

          ^^

HAHAHAHAHA

g.

Signature · 2 lines
Grant Likely, B.Sc., P.Eng.
Secret Lab Technologies Ltd.
author
#6 lore raw

PATCH 1/1 ia64: Hook up gpiolib support

In reply to Mark Brown

Allow people to use gpiolib on ia64, mostly for build coverage as it seems more useful to standardise on availablity of the API than handle it being optional.

---
 arch/ia64/Kconfig            |    4 +++
 arch/ia64/include/asm/gpio.h |   55 ++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 59 insertions(+), 0 deletions(-)
 create mode 100644 arch/ia64/include/asm/gpio.h
arch/ia64/Kconfig +4 -0
index 38280ef..578701e 100644
@@ -27,6 +27,7 @@ config IA64
 	select GENERIC_PENDING_IRQ if SMP
 	select IRQ_PER_CPU
 	select GENERIC_IRQ_SHOW
+	select ARCH_WANT_OPTIONAL_GPIOLIB
 	default y
 	help
 	  The Itanium Processor Family is Intel's 64-bit successor to
@@ -89,6 +90,9 @@ config GENERIC_TIME_VSYSCALL
 config HAVE_SETUP_PER_CPU_AREA
 	def_bool y
 
+config GENERIC_GPIO
+	def_bool y
+
 config DMI
 	bool
 	default y
arch/ia64/include/asm/gpio.h new file +55 -0

55 lines not on this page · raw message

Signature · 1 line
1.7.5.3
#7 lore raw
In reply to Mark Brown
Quoted 3 lines · Mark Brown

Allow people to use gpiolib on ia64, mostly for build coverage as it seems more useful to standardise on availablity of the API than handle it being optional.

Well it applies cleanly, builds too. I can even turn on CONFIG_GPIOLIB=y, CONFIG_DEBUG_GPIO=y and CONFIG_GPIO_SYSFS=y and build even more bits (no warnings, nice).

But is there anything that I can do with it to show that it is working correctly?

-Tony

author
#8 lore raw
In reply to Mark Brown
Quoted 2 lines · Tony Luck

But is there anything that I can do with it to show that it is working correctly?

Not really - you can build drivers that use gpiolib but unless you obtain some hardware which uses it or write a virtual GPIO driver and a consumer for it there's not really a lot doing except build tests. Like I said in the changelog the main thought here was to make build coverage easier in a way that is more useful than bodging around optionally available stuff.

#9 lore raw
In reply to Mark Brown
Quoted 6 lines

Not really - you can build drivers that use gpiolib but unless you obtain some hardware which uses it or write a virtual GPIO driver and a consumer for it there's not really a lot doing except build tests. Like I said in the changelog the main thought here was to make build coverage easier in a way that is more useful than bodging around optionally available stuff.

Fair enough. I've dropped it into my test tree, so it should show up in linux-next soon. I'll send to Linus in the 3.1 merge window.

-Tony