Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp241663pxj; Thu, 20 May 2021 08:24:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyRbpWgxVsrSP6B5Jl71jBqucjI1gVy2ASpmq03lFfw3wTPG1vBM98ow2yYsOLYYQc08aZW X-Received: by 2002:a02:aa97:: with SMTP id u23mr6673915jai.13.1621524274224; Thu, 20 May 2021 08:24:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621524274; cv=none; d=google.com; s=arc-20160816; b=VASjpizKuJUoSji4a3yF+BTRI+MLaBnoaCPTSEzM+6laBXIua0OHEeoDoZi5ykho+C JDYKgrhdAQcRg3vCb87QcnYAG5gKcMMI81stcHcZtVU7p7C8iVw6Ody3WA+/zsB97vJz dGcwv4+LU9kenrTnif/ndAS6j3LRgx6lsEw02SJJvA8c/OHOjwMe2QkmwBUHSZFAXX66 pgLUz6ClVXpQUsZ8cMkAaEd88TJRszsYIKVGmjwDHksDZAPSKxHiclGMQQ0xYFQ8aW5R yKsdag4dzgzueYUYiO3H7wfJ0CKgBNk6VVszO+hVECcj1m8sS3dFYnCGttV+zAIEv0W7 0z9Q== 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=zFAgXIZGvTU/Wi8sJ69Q6bYdJ7h+9MCN/tcTuTvtIE4=; b=k+1dspSF/QXPUrRBnPktTdMpM+d0InCQJtme0SJMTbjke1O9qD5VXdv7D7XHCRC2t7 hMvwjb/9htqcDIJTs/03M/RyyAgiHnoVZYcXpxOY5WdZTFlzQUeeG3OqhA/UTW2e0D6c dcfyBgH8v0/+yzZPACxrLyOfstKBWZTPyr3FBK3O3O+S191vpWDLqbKN93PNWvtVAC+M WVT0KHg5pCvGkANnicoym0NgKKgNkrbYSAuiz0EQ8kU2//rgIqVD1tuOKcjFJ7MDXKky QnmLS0JeAG9oUB5ZV2W0Zsw05RqrNHJ0KqCiqs9UyDi53LMdWGp25OY+mkpCifrma59B 9rdg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=MpwHGWdC; 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=pass (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 w17si2296725iot.47.2021.05.20.08.24.21; Thu, 20 May 2021 08:24:34 -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; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=MpwHGWdC; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232663AbhETJfj (ORCPT + 99 others); Thu, 20 May 2021 05:35:39 -0400 Received: from mail.kernel.org ([198.145.29.99]:34944 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232073AbhETJdH (ORCPT ); Thu, 20 May 2021 05:33:07 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 0EE8F613F3; Thu, 20 May 2021 09:28:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1621502920; bh=s92oYAD0pIycQPClhSAIO5z4FY7NVlq/UdH3F5J7FV4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=MpwHGWdCBKNS0snFYD+0fkbTLqDYaqfnhXOh2Yz0vG3WZfq4pPyGiCPNeGDtzxacQ j3Lop6Lo4TnWTjjLZOnX2NfkzR9DCOnkKSnoVxchJhBJPsDlKUdJt81aP4/TJJiTzd xXWblym/ksV+n8MX9atEDuO16NXcGPdYx2g5peLc= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Hans de Goede , Andy Shevchenko , Sasha Levin Subject: [PATCH 5.4 26/37] gpiolib: acpi: Add quirk to ignore EC wakeups on Dell Venue 10 Pro 5055 Date: Thu, 20 May 2021 11:22:47 +0200 Message-Id: <20210520092053.133147581@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210520092052.265851579@linuxfoundation.org> References: <20210520092052.265851579@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: Hans de Goede [ Upstream commit da91ece226729c76f60708efc275ebd4716ad089 ] Like some other Bay and Cherry Trail SoC based devices the Dell Venue 10 Pro 5055 has an embedded-controller which uses ACPI GPIO events to report events instead of using the standard ACPI EC interface for this. The EC interrupt is only used to report battery-level changes and it keeps doing this while the system is suspended, causing the system to not stay suspended. Add an ignore-wake quirk for the GPIO pin used by the EC to fix the spurious wakeups from suspend. Signed-off-by: Hans de Goede Acked-by: Andy Shevchenko Signed-off-by: Andy Shevchenko Signed-off-by: Sasha Levin --- drivers/gpio/gpiolib-acpi.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/drivers/gpio/gpiolib-acpi.c b/drivers/gpio/gpiolib-acpi.c index 66dcab6ab26d..e3ddc99c105d 100644 --- a/drivers/gpio/gpiolib-acpi.c +++ b/drivers/gpio/gpiolib-acpi.c @@ -1394,6 +1394,20 @@ static const struct dmi_system_id gpiolib_acpi_quirks[] = { .no_edge_events_on_boot = true, }, }, + { + /* + * The Dell Venue 10 Pro 5055, with Bay Trail SoC + TI PMIC uses an + * external embedded-controller connected via I2C + an ACPI GPIO + * event handler on INT33FFC:02 pin 12, causing spurious wakeups. + */ + .matches = { + DMI_MATCH(DMI_SYS_VENDOR, "Dell Inc."), + DMI_MATCH(DMI_PRODUCT_NAME, "Venue 10 Pro 5055"), + }, + .driver_data = &(struct acpi_gpiolib_dmi_quirk) { + .ignore_wake = "INT33FC:02@12", + }, + }, { /* * HP X2 10 models with Cherry Trail SoC + TI PMIC use an -- 2.30.2