Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp61184ybp; Thu, 3 Oct 2019 10:10:49 -0700 (PDT) X-Google-Smtp-Source: APXvYqzi+z9okjKQuCZv6FKfJ56jxLPpWG1Yd2izdodiAJPfP260DX/1m3DVfMV0H/KyhkKw83co X-Received: by 2002:a50:d758:: with SMTP id i24mr10568189edj.246.1570122649867; Thu, 03 Oct 2019 10:10:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570122649; cv=none; d=google.com; s=arc-20160816; b=XcmUfNwv1UUmwOxhb6k5/T975M1gIPr5LYXoaG2GXDgXWYtJH2W/P9jWhiFajza9tv /Cp5gmOd2VSRVOVAvY7m8quEZ7XdGhtWBTdMn0ff9zyCWztNszHi+IFcVFAFBhEuiHLe vCbSyV49KBYQWk73X5hUF7k+k8huZi7r2cKBpqzWlzCjnrRC0FGBUkLwqIzyFVXr/Rtt fENp+LVLo5bP+3g5wchbvMomK8KEP8OJ+kcuHp9X0IIeoYRnLYFoPCou82yhdUNC4qdE KAMn5B/usVMg1g8VWpKi/Hb4Emu2iLMv+qc9kWA7YCTWWPhFl589w8QLmktkI2yiZwmI SYLQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=pYOsrEHukkljD7BmtjnQRHcUG7kVimQSl9WN5eYarlg=; b=IlBJAdjdU5CfPeBXUEhjRZmiLP54NPPD/tpLcm4jPVZUwAk7Rjub/44UQrOOx5EX1Y 3DycYEwP4m1S95mOttdJLSLIhyJQr2SN8EGxH/Z+7qGFRb5TrhOqhPPmOZJHZBXMlQi4 HkIIL/Xjxzch3tKKAyyXYgLg7MW5ih/1ruc7OE3NDbr7oQKLXYttEcfrXG06+ux1O2kt 3oqV4/+dojNbg+znGuzuuRsb0gi4m8GHoPac/QnDhcNmeM7Xu0lHF+PDaGw1Y9iLT/X6 Zx5vo0i+Q5EhN4VhDdVvgYrrIEkH6nk052RlzsBparPhBAeJzyzuTxFNH3xLddDMrnpN oCwg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=txh1pYvE; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id rk14si1566297ejb.24.2019.10.03.10.10.25; Thu, 03 Oct 2019 10:10:49 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=txh1pYvE; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2404209AbfJCQev (ORCPT + 99 others); Thu, 3 Oct 2019 12:34:51 -0400 Received: from mail.kernel.org ([198.145.29.99]:43480 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2392166AbfJCQer (ORCPT ); Thu, 3 Oct 2019 12:34:47 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (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 3481820830; Thu, 3 Oct 2019 16:34:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1570120486; bh=l+Sn/vT20V4n9NS+jpT09f33J7KQnZFya5wMuhRIGZ4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=txh1pYvEnZBjltGX4hGNNhVsC61L96gzv5pByxv+fgKWVRmV/8hs7ks2ygUNi7TL6 vudKGdgpUOjNuybIrFGBUNxzgl5AkKmN0usBR2WAuBxE988HCmDTdGMQLipy3J1pNx la6wj/BAFhDXUNxFDhPGlR7t0OWqyOk5i1dh/+sY= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Hans de Goede , Andy Shevchenko Subject: [PATCH 5.2 239/313] platform/x86: intel_int0002_vgpio: Fix wakeups not working on Cherry Trail Date: Thu, 3 Oct 2019 17:53:37 +0200 Message-Id: <20191003154556.585063804@linuxfoundation.org> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20191003154533.590915454@linuxfoundation.org> References: <20191003154533.590915454@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Hans de Goede commit 1bd43d0077b9a32a8b8059036471f3fc82dae342 upstream. Commit 871f1f2bcb01 ("platform/x86: intel_int0002_vgpio: Only implement irq_set_wake on Bay Trail") removed the irq_set_wake method from the struct irq_chip used on Cherry Trail, but it did not set IRQCHIP_SKIP_SET_WAKE causing kernel/irq/manage.c: set_irq_wake_real() to return -ENXIO. This causes the kernel to no longer see PME events reported through the INT0002 device as wakeup events. Which e.g. breaks wakeup by the (USB) keyboard on many Cherry Trail 2-in-1 devices. Cc: stable@vger.kernel.org Fixes: 871f1f2bcb01 ("platform/x86: intel_int0002_vgpio: Only implement irq_set_wake on Bay Trail") Signed-off-by: Hans de Goede Signed-off-by: Andy Shevchenko Signed-off-by: Greg Kroah-Hartman --- drivers/platform/x86/intel_int0002_vgpio.c | 1 + 1 file changed, 1 insertion(+) --- a/drivers/platform/x86/intel_int0002_vgpio.c +++ b/drivers/platform/x86/intel_int0002_vgpio.c @@ -155,6 +155,7 @@ static struct irq_chip int0002_cht_irqch * No set_wake, on CHT the IRQ is typically shared with the ACPI SCI * and we don't want to mess with the ACPI SCI irq settings. */ + .flags = IRQCHIP_SKIP_SET_WAKE, }; static int int0002_probe(struct platform_device *pdev)