From: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
To: "Thomas Weißschuh" <linux@weissschuh.net>,
"Jiri Kosina" <jikos@kernel.org>,
"Benjamin Tissoires" <benjamin.tissoires@redhat.com>,
linux-input@vger.kernel.org
Cc: linux-kernel@vger.kernel.org,
Mark Pearson <markpearson@lenovo.com>,
Daniel Drubin <daniel.drubin@intel.com>
Subject: Re: [PATCH] HID: intel-ish-hid: ipc: only enable IRQ wakeup when requested
Date: Wed, 01 Dec 2021 05:34:56 -0800 [thread overview]
Message-ID: <2a336482fb73d8093ed284942c6b63c53b9a8727.camel@linux.intel.com> (raw)
In-Reply-To: <20211130060117.3026-1-linux@weissschuh.net>
On Tue, 2021-11-30 at 07:01 +0100, Thomas Weißschuh wrote:
> Fixes spurious wakeups from s0ix on Lenovo ThinkPad X1 Cargon Gen 9
> on
> lid close.
>
> These wakeups are generated by interrupts from the ISH on changes to
> the
> lid status.
>
> By disabling the wake IRQ from the ISH we inhibit these spurious
> wakeups while keeping the resume from LID open through the ACPI
> interrupt.
>
> Reports on the Lenovo forums indicate that Lenovo ThinkPad X1 Yoga
> Gen6
> is also affected.
>
> Fixes: ae02e5d40d5f ("HID: intel-ish-hid: ipc layer")
> BugLink: https://bugzilla.kernel.org/show_bug.cgi?id=214855
> Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
Acked-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
> ---
> drivers/hid/intel-ish-hid/ipc/pci-ish.c | 6 ++++--
> 1 file changed, 4 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/hid/intel-ish-hid/ipc/pci-ish.c
> b/drivers/hid/intel-ish-hid/ipc/pci-ish.c
> index 1c5039081db2..8e9d9450cb83 100644
> --- a/drivers/hid/intel-ish-hid/ipc/pci-ish.c
> +++ b/drivers/hid/intel-ish-hid/ipc/pci-ish.c
> @@ -266,7 +266,8 @@ static void __maybe_unused
> ish_resume_handler(struct work_struct *work)
>
> if (ish_should_leave_d0i3(pdev) && !dev->suspend_flag
> && IPC_IS_ISH_ILUP(fwsts)) {
> - disable_irq_wake(pdev->irq);
> + if (device_may_wakeup(&pdev->dev))
> + disable_irq_wake(pdev->irq);
>
> ish_set_host_ready(dev);
>
> @@ -337,7 +338,8 @@ static int __maybe_unused ish_suspend(struct device
> *device)
> */
> pci_save_state(pdev);
>
> - enable_irq_wake(pdev->irq);
> + if (device_may_wakeup(&pdev->dev))
> + enable_irq_wake(pdev->irq);
> }
> } else {
> /*
>
> base-commit: d58071a8a76d779eedab38033ae4c821c30295a5
next prev parent reply other threads:[~2021-12-01 13:35 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-11-30 6:01 Thomas Weißschuh
2021-12-01 13:34 ` Srinivas Pandruvada [this message]
2021-12-03 8:45 ` Benjamin Tissoires
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=2a336482fb73d8093ed284942c6b63c53b9a8727.camel@linux.intel.com \
--to=srinivas.pandruvada@linux.intel.com \
--cc=benjamin.tissoires@redhat.com \
--cc=daniel.drubin@intel.com \
--cc=jikos@kernel.org \
--cc=linux-input@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@weissschuh.net \
--cc=markpearson@lenovo.com \
/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
all inboxes | Powered by JetHome®