From: Vasily Khoruzhick <anarsoul@gmail.com> To: Robert Jarzmik <robert.jarzmik@free.fr> Cc: Dmitry Torokhov <dmitry.torokhov@gmail.com>, Chao Xie <chao.xie@marvell.com>, Haojian Zhuang <haojian.zhuang@gmail.com>, Mark Brown <broonie@opensource.wolfsonmicro.com>, linux-input@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH RESEND] ARM: pxa27x_keypad: clear pending interrupts on keypad config Date: Sun, 28 Oct 2012 21:09:42 +0300 [thread overview] Message-ID: <CA+E=qVeETyX+jY+uKS5HAOymGOnF7x+sKGnmrQ0J=3CbnfVTNg@mail.gmail.com> (raw) In-Reply-To: <87vcduwkfa.fsf@free.fr> On Sun, Oct 28, 2012 at 8:55 PM, Robert Jarzmik <robert.jarzmik@free.fr> wrote: > Vasily Khoruzhick <anarsoul@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
WARNING: multiple messages have this Message-ID (diff)
From: anarsoul@gmail.com (Vasily Khoruzhick) To: linux-arm-kernel@lists.infradead.org Subject: [PATCH RESEND] ARM: pxa27x_keypad: clear pending interrupts on keypad config Date: Sun, 28 Oct 2012 21:09:42 +0300 [thread overview] Message-ID: <CA+E=qVeETyX+jY+uKS5HAOymGOnF7x+sKGnmrQ0J=3CbnfVTNg@mail.gmail.com> (raw) In-Reply-To: <87vcduwkfa.fsf@free.fr> On Sun, Oct 28, 2012 at 8:55 PM, Robert Jarzmik <robert.jarzmik@free.fr> wrote: > Vasily Khoruzhick <anarsoul@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
next prev parent reply other threads:[~2012-10-28 18:10 UTC|newest] Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top 2012-10-28 15:46 [PATCH RESEND] ARM: pxa27x_keypad: clear pending interrupts on keypad config Vasily Khoruzhick 2012-10-28 15:46 ` Vasily Khoruzhick 2012-10-28 17:55 ` Robert Jarzmik 2012-10-28 17:55 ` Robert Jarzmik 2012-10-28 18:09 ` Vasily Khoruzhick [this message] 2012-10-28 18:09 ` Vasily Khoruzhick 2012-10-28 18:34 ` Robert Jarzmik 2012-10-28 18:34 ` Robert Jarzmik 2012-11-01 9:35 ` Haojian Zhuang 2012-11-01 9:35 ` Haojian Zhuang
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to='CA+E=qVeETyX+jY+uKS5HAOymGOnF7x+sKGnmrQ0J=3CbnfVTNg@mail.gmail.com' \ --to=anarsoul@gmail.com \ --cc=broonie@opensource.wolfsonmicro.com \ --cc=chao.xie@marvell.com \ --cc=dmitry.torokhov@gmail.com \ --cc=haojian.zhuang@gmail.com \ --cc=linux-arm-kernel@lists.infradead.org \ --cc=linux-input@vger.kernel.org \ --cc=robert.jarzmik@free.fr \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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.