public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] 2.6.32-rc5 bug in Palm Tungsten C keyboard
@ 2009-10-26 22:59 Ondrej Zajicek
  2009-10-27  7:43 ` Eric Miao
  0 siblings, 1 reply; 4+ messages in thread
From: Ondrej Zajicek @ 2009-10-26 22:59 UTC (permalink / raw)
  To: linux-kernel, torvalds, marek.vasut, eric.y.miao

Palm Tungsten C keyboard structure has swapped
rows/cols gpio structures and does not work.
This patch fixes it.

Signed-off-by: Ondrej Zajicek <santiago@crfreenet.org>

diff -uprN linux-2.6.32-rc5-old/arch/arm/mach-pxa/palmtc.c linux-2.6.32-rc5/arch/arm/mach-pxa/palmtc.c
--- linux-2.6.32-rc5-old/arch/arm/mach-pxa/palmtc.c	2009-10-16 02:41:50.000000000 +0200
+++ linux-2.6.32-rc5/arch/arm/mach-pxa/palmtc.c	2009-10-26 20:56:44.000000000 +0100
@@ -292,10 +292,10 @@ const static unsigned int palmtc_keypad_
 
 static struct matrix_keypad_platform_data palmtc_keypad_platform_data = {
 	.keymap_data	= &palmtc_keymap_data,
-	.col_gpios	= palmtc_keypad_row_gpios,
-	.num_col_gpios	= 12,
-	.row_gpios	= palmtc_keypad_col_gpios,
-	.num_row_gpios	= 4,
+	.row_gpios	= palmtc_keypad_row_gpios,
+	.num_row_gpios	= ARRAY_SIZE(palmtc_keypad_row_gpios),
+	.col_gpios	= palmtc_keypad_col_gpios,
+	.num_col_gpios	= ARRAY_SIZE(palmtc_keypad_col_gpios),
 	.active_low	= 1,
 
 	.debounce_ms		= 20,


-- 
Elen sila lumenn' omentielvo

Ondrej 'SanTiago' Zajicek (email: santiago@crfreenet.org)
OpenPGP encrypted e-mails preferred (KeyID 0x11DEADC3, wwwkeys.pgp.net)
"To err is human -- to blame it on a computer is even more so."

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] 2.6.32-rc5 bug in Palm Tungsten C keyboard
  2009-10-26 22:59 [PATCH] 2.6.32-rc5 bug in Palm Tungsten C keyboard Ondrej Zajicek
@ 2009-10-27  7:43 ` Eric Miao
  2009-10-28  1:37   ` Marek Vasut
  0 siblings, 1 reply; 4+ messages in thread
From: Eric Miao @ 2009-10-27  7:43 UTC (permalink / raw)
  To: Ondrej Zajicek; +Cc: linux-kernel, torvalds, marek.vasut

On Tue, Oct 27, 2009 at 6:59 AM, Ondrej Zajicek <santiago@crfreenet.org> wrote:
> Palm Tungsten C keyboard structure has swapped
> rows/cols gpio structures and does not work.
> This patch fixes it.
>
> Signed-off-by: Ondrej Zajicek <santiago@crfreenet.org>

This fix looks obvious to me. Applied to 'fix'.

>
> diff -uprN linux-2.6.32-rc5-old/arch/arm/mach-pxa/palmtc.c linux-2.6.32-rc5/arch/arm/mach-pxa/palmtc.c
> --- linux-2.6.32-rc5-old/arch/arm/mach-pxa/palmtc.c     2009-10-16 02:41:50.000000000 +0200
> +++ linux-2.6.32-rc5/arch/arm/mach-pxa/palmtc.c 2009-10-26 20:56:44.000000000 +0100
> @@ -292,10 +292,10 @@ const static unsigned int palmtc_keypad_
>
>  static struct matrix_keypad_platform_data palmtc_keypad_platform_data = {
>        .keymap_data    = &palmtc_keymap_data,
> -       .col_gpios      = palmtc_keypad_row_gpios,
> -       .num_col_gpios  = 12,
> -       .row_gpios      = palmtc_keypad_col_gpios,
> -       .num_row_gpios  = 4,
> +       .row_gpios      = palmtc_keypad_row_gpios,
> +       .num_row_gpios  = ARRAY_SIZE(palmtc_keypad_row_gpios),
> +       .col_gpios      = palmtc_keypad_col_gpios,
> +       .num_col_gpios  = ARRAY_SIZE(palmtc_keypad_col_gpios),
>        .active_low     = 1,
>
>        .debounce_ms            = 20,
>
>
> --
> Elen sila lumenn' omentielvo
>
> Ondrej 'SanTiago' Zajicek (email: santiago@crfreenet.org)
> OpenPGP encrypted e-mails preferred (KeyID 0x11DEADC3, wwwkeys.pgp.net)
> "To err is human -- to blame it on a computer is even more so."
>

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] 2.6.32-rc5 bug in Palm Tungsten C keyboard
  2009-10-27  7:43 ` Eric Miao
@ 2009-10-28  1:37   ` Marek Vasut
  2009-10-28  1:55     ` Eric Miao
  0 siblings, 1 reply; 4+ messages in thread
From: Marek Vasut @ 2009-10-28  1:37 UTC (permalink / raw)
  To: Eric Miao; +Cc: Ondrej Zajicek, linux-kernel, torvalds

Dne Út 27. října 2009 08:43:44 Eric Miao napsal(a):
> On Tue, Oct 27, 2009 at 6:59 AM, Ondrej Zajicek <santiago@crfreenet.org> 
wrote:
> > Palm Tungsten C keyboard structure has swapped
> > rows/cols gpio structures and does not work.
> > This patch fixes it.
> >
> > Signed-off-by: Ondrej Zajicek <santiago@crfreenet.org>
> 
> This fix looks obvious to me. Applied to 'fix'.

Just wondering ... you checked the GPIO directions, right ? I mean, it works in 
both directions, it just works worse the other one. I can't really check now.

Also, it'll be possibly good to use the following emails for pxa patches:
Eric Miao <eric.y.miao@gmail.com>
Linux-ARM-Kernel <linux-arm-kernel@lists.infradead.org>
Marek Vasut <marek.vasut@gmail.com>

Those should be enough.

Cheers!
> 
> > diff -uprN linux-2.6.32-rc5-old/arch/arm/mach-pxa/palmtc.c
> > linux-2.6.32-rc5/arch/arm/mach-pxa/palmtc.c ---
> > linux-2.6.32-rc5-old/arch/arm/mach-pxa/palmtc.c     2009-10-16
> > 02:41:50.000000000 +0200 +++ linux-2.6.32-rc5/arch/arm/mach-pxa/palmtc.c
> > 2009-10-26 20:56:44.000000000 +0100 @@ -292,10 +292,10 @@ const static
> > unsigned int palmtc_keypad_
> >
> >  static struct matrix_keypad_platform_data palmtc_keypad_platform_data =
> > { .keymap_data    = &palmtc_keymap_data,
> > -       .col_gpios      = palmtc_keypad_row_gpios,
> > -       .num_col_gpios  = 12,
> > -       .row_gpios      = palmtc_keypad_col_gpios,
> > -       .num_row_gpios  = 4,
> > +       .row_gpios      = palmtc_keypad_row_gpios,
> > +       .num_row_gpios  = ARRAY_SIZE(palmtc_keypad_row_gpios),
> > +       .col_gpios      = palmtc_keypad_col_gpios,
> > +       .num_col_gpios  = ARRAY_SIZE(palmtc_keypad_col_gpios),
> >        .active_low     = 1,
> >
> >        .debounce_ms            = 20,
> >
> >
> > --
> > Elen sila lumenn' omentielvo
> >
> > Ondrej 'SanTiago' Zajicek (email: santiago@crfreenet.org)
> > OpenPGP encrypted e-mails preferred (KeyID 0x11DEADC3, wwwkeys.pgp.net)
> > "To err is human -- to blame it on a computer is even more so."
> 

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] 2.6.32-rc5 bug in Palm Tungsten C keyboard
  2009-10-28  1:37   ` Marek Vasut
@ 2009-10-28  1:55     ` Eric Miao
  0 siblings, 0 replies; 4+ messages in thread
From: Eric Miao @ 2009-10-28  1:55 UTC (permalink / raw)
  To: Marek Vasut; +Cc: Ondrej Zajicek, linux-kernel, torvalds

On Wed, Oct 28, 2009 at 9:37 AM, Marek Vasut <marek.vasut@gmail.com> wrote:
> Dne Út 27. října 2009 08:43:44 Eric Miao napsal(a):
>> On Tue, Oct 27, 2009 at 6:59 AM, Ondrej Zajicek <santiago@crfreenet.org>
> wrote:
>> > Palm Tungsten C keyboard structure has swapped
>> > rows/cols gpio structures and does not work.
>> > This patch fixes it.
>> >
>> > Signed-off-by: Ondrej Zajicek <santiago@crfreenet.org>
>>
>> This fix looks obvious to me. Applied to 'fix'.
>
> Just wondering ... you checked the GPIO directions, right ? I mean, it works in
> both directions, it just works worse the other one. I can't really check now.
>

It would be good if you can have it checked and give your Ack please.

> Also, it'll be possibly good to use the following emails for pxa patches:
> Eric Miao <eric.y.miao@gmail.com>
> Linux-ARM-Kernel <linux-arm-kernel@lists.infradead.org>
> Marek Vasut <marek.vasut@gmail.com>
>
> Those should be enough.
>
> Cheers!

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2009-10-28  1:56 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-10-26 22:59 [PATCH] 2.6.32-rc5 bug in Palm Tungsten C keyboard Ondrej Zajicek
2009-10-27  7:43 ` Eric Miao
2009-10-28  1:37   ` Marek Vasut
2009-10-28  1:55     ` Eric Miao

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox