[PATCH RESEND] ARM: pxa27x_keypad: clear pending interrupts on keypad config

Vasily Khoruzhick anarsoul at gmail.com
Sun Oct 28 14:09:42 EDT 2012


On Sun, Oct 28, 2012 at 8:55 PM, Robert Jarzmik <robert.jarzmik at free.fr> wrote:
> Vasily Khoruzhick <anarsoul at gmail.com> writes:
>
>> Bootloader can leave interrupt bit pending, and it confuses driver.
> OK, looks good to me.
> One question though, just to make sure everything is covered :
>   Suppose that the resume is the consequence of keypad press. If anybody relied
>   previously on "reading the keypad" to know which key was pressed to wakeup the
>   SoC, is it still working after your patch ?

Hi Robert,

Code from git master will not call pxa27x_keypad_config on resume if
device can cause wakeup,
so everything is OK (however it's another issue for pxa27x, because
device is not resuming correctly)

> And I suppose you can't "convince" your bootloader to behave correctly, can you ?

It behaves correctly, it just can't handle last keypress (because it's
booting Linux).
Even if it would be possible to fix this issue in bootloader it's
always nice to keep driver
failure-proof, so it does not fail even if bootloader left something
in non-consistent state.

Regards
Vasily



More information about the linux-arm-kernel mailing list