All of lore.kernel.org
 help / color / mirror / Atom feed
* Interrupt issue in twl4030_keypad
@ 2011-12-12 18:30 Felipe Contreras
  2011-12-12 19:12 ` Felipe Balbi
  2011-12-12 19:23 ` Greg KH
  0 siblings, 2 replies; 9+ messages in thread
From: Felipe Contreras @ 2011-12-12 18:30 UTC (permalink / raw)
  To: linux-omap, stable, Greg Kroah-Hartman; +Cc: linux-input, Felipe Balbi

Hi,

The short version is this: either we revert this patch[1], or we apply
this patch series[2], as well as its essential fixes[3].

The long version is this. There's a synchronization issue with the
current keypad driver and twl core; the irq is marked as handled even
though the thread that is supposed to handle it hasn't run yet, and
since it's clear-on-read, and it hasn't been read, it's detected
again, so they keypad driver receives two interrupt callbacks instead
of one, and in the second one reads nothing from the i2c register, so
a key release is assumed. This makes key-presses as simple as shift+a
impossible.

In other words, it's totally unreliable. This might not be isolated to
the keypard driver, but other "nested" interrupts from twl core that
started using request_threaded_irq prematurely (before it was
supported by the twl core). But at least I haven't tried those.

This patch was applied on 2.6.33, which means all versions before 3.2
are affected, including 3.1.

What do you think about fixing this on stable kernels?

Cheers.

[1] http://article.gmane.org/gmane.linux.kernel/932255
[2] http://article.gmane.org/gmane.linux.ports.arm.omap/59958
[3] http://article.gmane.org/gmane.linux.ports.arm.omap/67333
-- 
Felipe Contreras

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

end of thread, other threads:[~2011-12-16  1:36 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-12-12 18:30 Interrupt issue in twl4030_keypad Felipe Contreras
2011-12-12 19:12 ` Felipe Balbi
2011-12-12 20:55   ` Felipe Contreras
2011-12-12 21:34     ` Felipe Balbi
2011-12-16  1:36       ` Felipe Contreras
2011-12-13 13:15     ` Grazvydas Ignotas
2011-12-12 19:23 ` Greg KH
2011-12-12 21:04   ` Felipe Contreras
2011-12-12 21:30     ` Greg KH

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.