LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
From: Benson Leung <bleung@google.com>
To: "Rafael J. Wysocki" <rafael@kernel.org>
Cc: Ravi Chandra Sadineni <ravisadineni@chromium.org>,
"Rafael J. Wysocki" <rjw@rjwysocki.net>,
Len Brown <lenb@kernel.org>,
Ravi Chandra Sadineni <ravisadineni@google.com>,
Dmitry Torokhov <dmitry.torokhov@gmail.com>,
Todd Broch <tbroch@google.com>,
Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
ACPI Devel Maling List <linux-acpi@vger.kernel.org>,
Rajat Jain <rajatja@google.com>,
Furquan Shaikh <furquan@chromium.org>,
bleung@chromium.org
Subject: Re: [PATCH] ACPI LID: increment wakeup count only when notified.
Date: Wed, 6 Jun 2018 16:11:30 -0700 [thread overview]
Message-ID: <20180606231130.GA57957@decatoncale.mtv.corp.google.com> (raw)
In-Reply-To: <CAJZ5v0jBTpUzqEj1CeQ0CKH7zVRkgj1qJffoSujEZWi0HXABXw@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 1358 bytes --]
Hi Rafael,
On Wed, Jun 06, 2018 at 09:00:43AM +0200, Rafael J. Wysocki wrote:
> > @@ -417,6 +414,7 @@ static void acpi_button_notify(struct acpi_device *device, u32 event)
> > /* fall through */
> > case ACPI_BUTTON_NOTIFY_STATUS:
> > input = button->input;
> > + acpi_pm_wakeup_event(&device->dev);
>
> Not really.
>
> There already is an acpi_pm_wakeup_event() call in the else branch below.
>
Ravi removes that other call below. The intent for this is to call
acpi_pm_wakeup_event() regardless if the button->type is ACPI_BUTTON_TYPE_LID,
in case that event is ACPI_BUTTON_NOTIFY_STATUS.
> > if (button->type == ACPI_BUTTON_TYPE_LID) {
> > mutex_lock(&button->input->mutex);
> > users = button->input->users;
> > @@ -426,7 +424,6 @@ static void acpi_button_notify(struct acpi_device *device, u32 event)
> > } else {
> > int keycode;
> >
> > - acpi_pm_wakeup_event(&device->dev);
> > if (button->suspended)
> > break;
> >
> > --
Thanks!
Benson
--
Benson Leung
Staff Software Engineer
Chrome OS Kernel
Google Inc.
bleung@google.com
Chromium OS Project
bleung@chromium.org
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
next prev parent reply other threads:[~2018-06-06 23:11 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-06-04 18:26 Ravi Chandra Sadineni
2018-06-04 19:19 ` Benson Leung
2018-06-06 7:00 ` Rafael J. Wysocki
2018-06-06 23:11 ` Benson Leung [this message]
2018-06-06 23:21 ` Rafael J. Wysocki
2018-06-11 17:57 ` [PATCH V2] " Ravi Chandra Sadineni
[not found] ` <CAOGSYL371YSqpqdzqHUC+UxvMtxTc0q=YFPRcT-SeSHO5Pepeg@mail.gmail.com>
2018-06-21 13:11 ` Rafael J. Wysocki
2018-06-26 9:55 ` Rafael J. Wysocki
2018-06-27 17:55 ` [PATCH V3] " Ravi Chandra Sadineni
2018-07-04 10:39 ` Rafael J. Wysocki
2018-06-11 17:59 ` [PATCH] " Ravi Chandra Sadineni
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=20180606231130.GA57957@decatoncale.mtv.corp.google.com \
--to=bleung@google.com \
--cc=bleung@chromium.org \
--cc=dmitry.torokhov@gmail.com \
--cc=furquan@chromium.org \
--cc=lenb@kernel.org \
--cc=linux-acpi@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=rafael@kernel.org \
--cc=rajatja@google.com \
--cc=ravisadineni@chromium.org \
--cc=ravisadineni@google.com \
--cc=rjw@rjwysocki.net \
--cc=tbroch@google.com \
--subject='Re: [PATCH] ACPI LID: increment wakeup count only when notified.' \
/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
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).