Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp490902pxj; Thu, 20 May 2021 14:18:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxLg7etAeI5oyD5QGXmckpKrCsuJOQW3v2WR+NSVKmZAV7NZat2vTUPt/kcPZ2vd/EzCXUU X-Received: by 2002:a17:906:a51:: with SMTP id x17mr6681369ejf.25.1621545490398; Thu, 20 May 2021 14:18:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621545490; cv=none; d=google.com; s=arc-20160816; b=RO8QP2Cr0oWqEAaMjC/ByzT+ttdqxK4NvK3zaCl2K2Sfe+bh/yGOLjVl2pQOQmGtRm bGtQjHLtcaOoVveVPRz7j0VWGx3nnz/vwRu9ddVdoBAfCFURWdyZ2Y+hiJjp5DXTMYyg EKrRkySOmDsca1lPGdILPxBp6l9izYYKPQpZThDggZSl6dpk4mCI6DwOTzti5o/Zw7Rj 6GtPKQf4Zi6jfZd/ecnkZGH6HOUd8ALaw0eFuTY7XRZ5hoDleRkQHTiPWuzGCU9FW50k qmW32JOUhGj1bEodZoS7TXEY2iyVSJmzccQTZvcedGV5zMXs8Bc53Z27fN0KyRJJ9qvJ DA/w== 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=2JJwQaX9qWHsXA2Dnm3hUKXNm4Qsh51oiSh7JJ3xaG8=; b=TKFdv4iudZ//NFTGNaswCTU/MY7EihVagtzN3VrXUHmOxrtL9MN0zQYlAKlwdfEVZL i0zK5GNawfOWfngVtgePSpH2uPqkQsPNQrrg8kh6kOEi8wsSqdUQtCJbmWOTDkuDtObV 6RircuGcDex/7U0U0KS5Ga8jAvpGc9b4ZSZf/1KsDTTC5n0/jI8xhIzk/pVmIl7aqTZw isocdidyOZtiMDnVvXKVGjSpQeVrURnqe4MJ8ArZ2MhJ2QJsTsj3eE4KbJazpTsjV3Bt YA/OqBJLpcCLFDB4G4uatZ/XbILukbzEM6qVHyN7LbfB0pYtwXMROXtPFIw55/ZfuObt 5UvQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=nHFG7VdO; 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 mu6si3396048ejc.155.2021.05.20.14.17.45; Thu, 20 May 2021 14:18:10 -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=nHFG7VdO; 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 S239122AbhETLBu (ORCPT + 99 others); Thu, 20 May 2021 07:01:50 -0400 Received: from mail.kernel.org ([198.145.29.99]:44690 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237540AbhETKno (ORCPT ); Thu, 20 May 2021 06:43:44 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 0105161453; Thu, 20 May 2021 09:56:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1621504611; bh=pQZEfyZEKinmQBCrr9LaO4EAPD5z60u7vxCjGfHI8cg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=nHFG7VdOIMC+0CmSKPr6eR5Rb74KGox/bbShvDWg5I/rVeqea+tJNyv0IrQZNpwmM uIJFsFuMwPo31VS5SYMgO1ALLk3kik8swHWQyk+wbz+EeD0V/ZP0h11s2ghd0xBoO4 1VDq03la21aZcMFwD9PpuXGrzJnNZzAQcc7Q17Zs= 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 4.14 315/323] gpiolib: acpi: Add quirk to ignore EC wakeups on Dell Venue 10 Pro 5055 Date: Thu, 20 May 2021 11:23:27 +0200 Message-Id: <20210520092131.044905543@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210520092120.115153432@linuxfoundation.org> References: <20210520092120.115153432@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 ab5de5196080..c380ce957d8d 100644 --- a/drivers/gpio/gpiolib-acpi.c +++ b/drivers/gpio/gpiolib-acpi.c @@ -1404,6 +1404,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