Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752951AbdFNWWb (ORCPT ); Wed, 14 Jun 2017 18:22:31 -0400 Received: from mail-io0-f173.google.com ([209.85.223.173]:34943 "EHLO mail-io0-f173.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752923AbdFNWW1 (ORCPT ); Wed, 14 Jun 2017 18:22:27 -0400 MIME-Version: 1.0 In-Reply-To: <20170614180943.GA20778@bhelgaas-glaptop.roam.corp.google.com> References: <8918199.uo13RZ8hZk@aspire.rjw.lan> <1615075.mBkoKApGGc@aspire.rjw.lan> <5652844.yCt16F1gBo@aspire.rjw.lan> <20170614180943.GA20778@bhelgaas-glaptop.roam.corp.google.com> From: "Rafael J. Wysocki" Date: Thu, 15 Jun 2017 00:22:25 +0200 X-Google-Sender-Auth: m8TzRMsPcdkQLxfzJyVukkJLuE8 Message-ID: Subject: Re: [PATCH v2 1/8] ACPI / PM: Run wakeup notify handlers synchronously To: Bjorn Helgaas Cc: "Rafael J. Wysocki" , Linux ACPI , Linux PCI , Linux PM , Bjorn Helgaas , LKML , Mika Westerberg , Srinivas Pandruvada , Linux USB , Mathias Nyman , Felipe Balbi , Mario Limonciello , Andy Shevchenko , Dominik Brodowski , Hans De Goede , Alan Stern Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 943 Lines: 21 On Wed, Jun 14, 2017 at 8:09 PM, Bjorn Helgaas wrote: > On Mon, Jun 12, 2017 at 10:48:41PM +0200, Rafael J. Wysocki wrote: >> From: Rafael J. Wysocki >> >> The work functions provided by the users of acpi_add_pm_notifier() >> should be run synchronously before re-enabling the wakeup GPE in >> case they are used to clear the status and/or disable the wakeup >> signaling at the source. Otherwise, which is the case currently in >> the PCI bus type code, the same wakeup event may be signaled for >> multiple times while the execution of the work function in response >> to it has already been queued up. >> >> Fortunately, acpi_add_pm_notifier() is only used by PCI and by >> ACPI device PM code internally, so the change is relatively >> straightforward to make. >> >> Signed-off-by: Rafael J. Wysocki > > Acked-by: Bjorn Helgaas Thanks!