Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3464437pxk; Mon, 5 Oct 2020 10:16:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwlPM5D2Ze9Kbd/2byuSq9JYayGA6T9fRru5oG/v4KPzi+8uRekPSLAvZEXNg6iayrEgo+2 X-Received: by 2002:aa7:cc02:: with SMTP id q2mr693704edt.196.1601918209202; Mon, 05 Oct 2020 10:16:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601918209; cv=none; d=google.com; s=arc-20160816; b=D6D4wRlIlVTWwpG48jTSZiveeJDc9p2Ev6EKhsq29To3jvOIoRNdnJCKPozU2iqO5d tZ2X0wwTLQWVnELEqEQR9k5gcSbhx5bOn4k90zk+X3s3X4oK/1Vd6v2t5A6++iIieBZP G9CqMHN58csNSkxaTQI2bqyjzgTXptK9y6NUtQLjqHLrBzFCkBwsto0v0H+2w6V4jv5L aj0GpHR7//EHQZFWSs63Ho9ymKR9AcXmzSqY2NhITb6ClOa+YqpiduJl0TBI4aEBIRX5 z7zPhDSxP4XAujThmwrz350fGiBq/pjR+GXbwkfeorreF45zIhv3CvQOg7ps25/xp2kH rOaw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=xaoC65iHlhicYlu2dj4kixmP+WMvjq6MBF3YeSUNRvQ=; b=z5CHloN8HoVO/GflPCsxbZutITqtb54NTftllnCwDNWAawnKUyRNijB4Wl5my10dBZ z+3eKaxvnVjywgkBI87TXMg6K9uGdXa+HCsYr6giMY3Vfc5i0JroOArFYHF8QYCzXMCH r5o+/UE8f7Vw8XJXIOfA32hICGe73LPSSHzQKEEd5BFqHGPhOKgmGpMu8U8+HSpN+dQP 9nsAcZuRpWE50Rshb62IElndZdp+GTNPc2HK/2EXrq0HOBCpDBeYIW4AXXibx+qxzl2j WUPIqul02FJ2ronCo1S1LIikKWx82B7s+TAi3mdM6+mXXC03KCfNuVPudNLmDB08WOpB /VbA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id qx14si184321ejb.31.2020.10.05.10.16.26; Mon, 05 Oct 2020 10:16:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728022AbgJERNx (ORCPT + 99 others); Mon, 5 Oct 2020 13:13:53 -0400 Received: from cloudserver094114.home.pl ([79.96.170.134]:45260 "EHLO cloudserver094114.home.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725815AbgJERNx (ORCPT ); Mon, 5 Oct 2020 13:13:53 -0400 Received: from 89-64-89-50.dynamic.chello.pl (89.64.89.50) (HELO kreacher.localnet) by serwer1319399.home.pl (79.96.170.134) with SMTP (IdeaSmtpServer 0.83.489) id b1023543e698b084; Mon, 5 Oct 2020 19:13:50 +0200 From: "Rafael J. Wysocki" To: Linux ACPI Cc: Linux PM , LKML , Todd Brandt Subject: [PATCH 2/2] ACPI: EC: PM: Drop ec_no_wakeup check from acpi_ec_dispatch_gpe() Date: Mon, 05 Oct 2020 19:13:46 +0200 Message-ID: <4751045.iUa6gZp90W@kreacher> In-Reply-To: <1969699.iD4Ik4PeQO@kreacher> References: <1969699.iD4Ik4PeQO@kreacher> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Rafael J. Wysocki It turns out that in some cases there are EC events to flush in acpi_ec_dispatch_gpe() even though the ec_no_wakeup kernel parameter is set and the EC GPE is disabled while sleeping, so drop the ec_no_wakeup check that prevents those events from being processed from acpi_ec_dispatch_gpe(). Reported-by: Todd Brandt Signed-off-by: Rafael J. Wysocki --- drivers/acpi/ec.c | 3 --- 1 file changed, 3 deletions(-) Index: linux-pm/drivers/acpi/ec.c =================================================================== --- linux-pm.orig/drivers/acpi/ec.c +++ linux-pm/drivers/acpi/ec.c @@ -2011,9 +2011,6 @@ bool acpi_ec_dispatch_gpe(void) if (acpi_any_gpe_status_set(first_ec->gpe)) return true; - if (ec_no_wakeup) - return false; - /* * Dispatch the EC GPE in-band, but do not report wakeup in any case * to allow the caller to process events properly after that.