Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp217932pxj; Thu, 20 May 2021 07:55:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx/uKOaAW0anfLIDg8tafzWOnHIxxYMxmAMO78tnTpDtqX5O/4qCEWOjT76RT40Inx+KUtZ X-Received: by 2002:aa7:cc97:: with SMTP id p23mr5413943edt.372.1621522528889; Thu, 20 May 2021 07:55:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621522528; cv=none; d=google.com; s=arc-20160816; b=KNBySGVQLXZ87gcdQlv6OzR4a5Wi1Sc5rrnmyBaBwK519bJXWgERoNkms4ybZZ5qn9 /OJ8i3cXov42EcYsP4VkXf8EVOQqbquHDKeb2U09KsYam1y+qT4zP2r4bM/r6HlOBpqz aIsvy+Jhsc/ZuYrENwZ6SY/SlleAc/P6RAHBpI7lnTv14BS99e+ocOxvomYXcizPzzaa Y7gwL5XyZzN+VK4VjVo4Ia9e40FEyTSa6j0Pk8sR1xBSdyz2QdxZ5Kd4B5WzinOdGSm7 Hl0axM0pJ/6GtJs6uAPU9UJhEbJEuQjVTDF22bgJzT1RttQjVoojpbPDEbZ365zQms1W +F+A== 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=b8klwXDQNNAmfHUsGpKm1tmqpD567f/9rkCmIX6yDY4=; b=Gw0AtrgjIF7aNtfOt0vFqSeHXnWt6HxLUr8oLJJnxyrS7OL5d6rplw4kmCxjj+1YfU 9fz0a37mmI4Z8GNGmPUySsC5e3KVM2wWqJR/VN/REcx7nO0b0dAVucH9fOrgu+E4Xl2Z A1twgnNmyi8blRl5FdrE4Zh6KW2qAFWn7vaUMlEcLcyvW3tJsu+ZH1FK6RKgNqv7orcD OAgXut1trajs1swupM0O9XolQwWByKlz9lIgqocUF4eA+30jEANTgzzXytsFHLVMkf46 vE3YUN+lJdGDsEulh0nmJPsA1RgeBSpHaRjYpChbQcxlfqNu0NbnBm/PxfYVyTOv2B7d sUBg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Wxn4OsYl; 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 h7si2581317edb.471.2021.05.20.07.55.05; Thu, 20 May 2021 07:55:28 -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=Wxn4OsYl; 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 S231918AbhETJ2R (ORCPT + 99 others); Thu, 20 May 2021 05:28:17 -0400 Received: from mail.kernel.org ([198.145.29.99]:54266 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231475AbhETJ1S (ORCPT ); Thu, 20 May 2021 05:27:18 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 4681B613AA; Thu, 20 May 2021 09:25:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1621502757; bh=UjQUOpWqT3OOhOM23CXJxNmF8TRm8vywivc9vcIMoks=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Wxn4OsYlktlkH1ksEPfT2a8oPPNxcGvu2cso/XDt83EA/jbnocNlo81AbfQWD+zn8 aP0/uKFJxAVUmBcJEV3L8sV2PWeIrLVs924wZkW3ta7IEwEC2bulN8wsj5Rn/RDzGW skYiNYPf0t6r7siZgdb9aBK+QWSQWdqJzFZJbD3M= 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.12 36/45] gpiolib: acpi: Add quirk to ignore EC wakeups on Dell Venue 10 Pro 5055 Date: Thu, 20 May 2021 11:22:24 +0200 Message-Id: <20210520092054.689593950@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210520092053.516042993@linuxfoundation.org> References: <20210520092053.516042993@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 1aacd2a5a1fd..174839f3772f 100644 --- a/drivers/gpio/gpiolib-acpi.c +++ b/drivers/gpio/gpiolib-acpi.c @@ -1438,6 +1438,20 @@ static const struct dmi_system_id gpiolib_acpi_quirks[] __initconst = { .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