[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <2892243.DJpRz1t3Fg@aspire.rjw.lan>
Date: Fri, 23 Jun 2017 14:13:57 +0200
From: "Rafael J. Wysocki" <rjw@...ysocki.net>
To: "Zheng, Lv" <lv.zheng@...el.com>
Cc: Linux ACPI <linux-acpi@...r.kernel.org>,
Linux PM <linux-pm@...r.kernel.org>,
Andy Shevchenko <andriy.shevchenko@...ux.intel.com>,
Darren Hart <dvhart@...radead.org>,
LKML <linux-kernel@...r.kernel.org>,
Srinivas Pandruvada <srinivas.pandruvada@...ux.intel.com>,
Mika Westerberg <mika.westerberg@...ux.intel.com>,
Mario Limonciello <mario.limonciello@...l.com>,
Tom Lanyon <tom@...shoeco.com>,
Jér?me de Bretagne
<jerome.debretagne@...il.com>,
Linus Torvalds <torvalds@...ux-foundation.org>
Subject: Re: [PATCH] ACPI / sleep: EC-based wakeup from suspend-to-idle on recent systems
On Friday, June 23, 2017 06:30:35 AM Zheng, Lv wrote:
> Hi, Rafael
>
[cut]
> >
> > Index: linux-pm/drivers/acpi/ec.c
> > ===================================================================
> > --- linux-pm.orig/drivers/acpi/ec.c
> > +++ linux-pm/drivers/acpi/ec.c
> > @@ -1835,7 +1835,7 @@ static int acpi_ec_suspend(struct device
> > struct acpi_ec *ec =
> > acpi_driver_data(to_acpi_device(dev));
> >
> > - if (ec_freeze_events)
> > + if (acpi_sleep_no_ec_events() && ec_freeze_events)
> > acpi_ec_disable_event(ec);
> > return 0;
> > }
>
> I just notice a slight pontential issue.
> Should we add a similar change to acpi_ec_stop()?
Yes, it looks like that, thanks!
Rafael
Powered by blists - more mailing lists