From: Dmitry Torokhov <dmitry.torokhov-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
To: Rakesh Iyer <riyer-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
Cc: "rydberg-Hk7bIW8heu4wFerOooGFRg@public.gmane.org"
<rydberg-Hk7bIW8heu4wFerOooGFRg@public.gmane.org>,
Stephen Warren <swarren-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>,
Laxman Dewangan
<ldewangan-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>,
"linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org"
<linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>,
"linux-input-u79uwXL29TY76Z2rM5mHXA@public.gmane.org"
<linux-input-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>,
"linux-tegra-u79uwXL29TY76Z2rM5mHXA@public.gmane.org"
<linux-tegra-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>
Subject: Re: [PATCH v1] Input: tegra-kbc - report wakeup key for some platforms.
Date: Sun, 4 Dec 2011 00:50:38 -0800 [thread overview]
Message-ID: <20111204085038.GC14593@core.coreip.homeip.net> (raw)
In-Reply-To: <1FC56210173BB445BD77F608D6FB8D034F3D1BB4C9-lR+7xdUAJVNDw2glCA4ptUEOCMrvLtNR@public.gmane.org>
Hi Rakesh,
On Thu, Dec 01, 2011 at 01:09:59PM -0800, Rakesh Iyer wrote:
> Hello Dmitry.
>
> Sorry for the wrap issue, my Outlook does not seem to obey the settings.
>
> I wanted to explain the tegra system resume path implementation so I can justify
> why I am doing this complicated fix and why I feel it will guarantee the resume
> is due to keypress.
>
> The tegra wake resume code is registered as a syscore ops.
> When the system is resumed due to a wake event, the suspend_enter (after wakeup)
> routine will invoke the tegra syscoreops_resume method and that routine will propagate
> the wake event to the individual ISR's through genirq.
> If kbc was wake source, kbc_isr will be invoked in this execution path.
>
> If system is resumed due to other reason, the tegra_syscoreops_resume code will not
> find the event.
Consider the following sequence:
1. Something other than keyboard generates wakeup event
2. It's IRQ fires up and gets serviced
3. System starts resuming devices
4. User presses a key on the keypad while it is still suspended _and_
registered as a wakeup source
5. Keypad's ISR runs as well and you decide that KEY_POWER should be
reported even though keypad wasn't the real reason the system
woke up.
Is this scenario not possible?
Thanks.
--
Dmitry
next prev parent reply other threads:[~2011-12-04 8:50 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-11-30 20:43 [PATCH v1] Input: tegra-kbc - report wakeup key for some platforms riyer-DDmLM1+adcrQT0dZR+AlfA
[not found] ` <1322685811-14060-1-git-send-email-riyer-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
2011-11-30 21:07 ` Stephen Warren
2011-11-30 21:20 ` Dmitry Torokhov
2011-11-30 22:14 ` Rakesh Iyer
[not found] ` <1FC56210173BB445BD77F608D6FB8D034F3D1BB4BD-lR+7xdUAJVNDw2glCA4ptUEOCMrvLtNR@public.gmane.org>
2011-12-01 7:26 ` Dmitry Torokhov
2011-12-01 21:09 ` Rakesh Iyer
[not found] ` <1FC56210173BB445BD77F608D6FB8D034F3D1BB4C9-lR+7xdUAJVNDw2glCA4ptUEOCMrvLtNR@public.gmane.org>
2011-12-04 8:50 ` Dmitry Torokhov [this message]
2011-12-05 1:18 ` riyer
[not found] ` <1323047897.3056.14.camel-73r3X0hAYrhxWE4FnwvcdlaTQe2KTcn/@public.gmane.org>
2011-12-05 4:27 ` Dmitry Torokhov
2011-12-05 5:52 ` Rakesh Iyer
2011-12-29 10:32 ` Dmitry Torokhov
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=20111204085038.GC14593@core.coreip.homeip.net \
--to=dmitry.torokhov-re5jqeeqqe8avxtiumwx3w@public.gmane.org \
--cc=ldewangan-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org \
--cc=linux-input-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=linux-tegra-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=riyer-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org \
--cc=rydberg-Hk7bIW8heu4wFerOooGFRg@public.gmane.org \
--cc=swarren-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org \
/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: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).