Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp803587pxb; Tue, 3 Nov 2020 13:00:25 -0800 (PST) X-Google-Smtp-Source: ABdhPJySYvbsFglEFrZjAXqQ6tu36N+6pAjaXWQqVQVdeQAC5qVVDUe7Iyad7otxDKcHwRdpLW2g X-Received: by 2002:a17:906:1a0c:: with SMTP id i12mr20951049ejf.176.1604437225141; Tue, 03 Nov 2020 13:00:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604437225; cv=none; d=google.com; s=arc-20160816; b=Q7v6tun612GIVeYKBpvacGXKgWl0duVl/MHQ6l47A8Y1hzMT7NqiC65WO1T1YBqtKW 2gbPvKho8Ep6Gx6SHtFr7fzCZvIBjRM3q907yNxd+kNULRgV9TJA6yuF2lmsL36udf6k kH121Y6jH9mgr9aDklhrpLSiLKugiZlVZuZyrrsurPlmP8GintfvFNmWzER6GYdhWDvG QV4cm7Xl8cDJbCn3+iBJxXTqtYQFEsmedylizjuAmHAwSXgJChnC1+90HqQgAAsz4xSG PCmtNhgosgX8cStx4rWzyPjdRyhr25LV0Q5q5ZdtUZR9frw77fwJ1iAfgndyV7BwVYX0 jkwQ== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=7r1NgeKPCpTpGQlIEkB8LeAMfq5/+YkFaO8vUtytz54=; b=EPUBWX3Gy27v6ug1UVYu9J4jSwF0SzQnY+PMW3kcTlk792rUsPtoWRkW2G6OjuerQn NMyU6LWNaYgfra/vc44NbYYGvG9YtHONtiG01g1jWWHPxNrDE4fpgA5IHjTPtv1LgJxc ljVaNsypYuDhuYeVfTBPHsaMWOUI+S3HTBjM1JTbpyHjrk+z8jhv5c0b883O2tfJtMwY ZbZXddKai60oVqABYd6wSunFuKVQ1BM3QHiAwcaPBkk4FkefQBUTURFqqRhWrahv9jYJ 5+rbGb5s+zhomvE4U3aZJNmt5zlSCdnQTs+3Q00/a+1M1Z8tcK4C3ltWDWR5pByZKJfm zCjQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Zt+ujbMg; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y17si10283504edl.557.2020.11.03.13.00.01; Tue, 03 Nov 2020 13:00:25 -0800 (PST) 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; dkim=pass header.i=@kernel.org header.s=default header.b=Zt+ujbMg; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732967AbgKCU6l (ORCPT + 99 others); Tue, 3 Nov 2020 15:58:41 -0500 Received: from mail.kernel.org ([198.145.29.99]:33196 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731757AbgKCU6i (ORCPT ); Tue, 3 Nov 2020 15:58:38 -0500 Received: from localhost (83-86-74-64.cable.dynamic.v4.ziggo.nl [83.86.74.64]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 1CC53223AC; Tue, 3 Nov 2020 20:58:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1604437116; bh=Or27/3b6cRIcdARZiqOBJNlM//9C/2yDExnkL/5Hcgw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Zt+ujbMgUramFXieDjZGvHxcITYWX/iEEXtlzA2JXTjLKOBWSKaoxsFA2M/MIWiLP gPCGdj/IUdbtMd2wAvC7kAZ0eRgQYrbqo2WBCdPpmJ+795uHng9HWPF2fCCARAz4c2 +slj5uJm20j0gDoHf3k3bljssZl4UNAb4CBPH6fI= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Todd Brandt , "Rafael J. Wysocki" Subject: [PATCH 5.4 116/214] ACPI: EC: PM: Drop ec_no_wakeup check from acpi_ec_dispatch_gpe() Date: Tue, 3 Nov 2020 21:36:04 +0100 Message-Id: <20201103203301.754728418@linuxfoundation.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201103203249.448706377@linuxfoundation.org> References: <20201103203249.448706377@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Rafael J. Wysocki commit e0e9ce390d7bc6a705653d4a8aa4ea92c9a65e53 upstream. 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 Cc: 5.4+ # 5.4+ Signed-off-by: Rafael J. Wysocki Signed-off-by: Greg Kroah-Hartman --- drivers/acpi/ec.c | 3 --- 1 file changed, 3 deletions(-) --- a/drivers/acpi/ec.c +++ b/drivers/acpi/ec.c @@ -1968,9 +1968,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.