Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp3288399ybb; Tue, 31 Mar 2020 02:10:09 -0700 (PDT) X-Google-Smtp-Source: ADFU+vvshu0AtDDHU01ee+PBljJ+fmU88oJ32yNFvN2WMcxvXBz8F+3kDZn3oXD2TgBVkyHjv006 X-Received: by 2002:a4a:4f0e:: with SMTP id c14mr4512868oob.3.1585645809331; Tue, 31 Mar 2020 02:10:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585645809; cv=none; d=google.com; s=arc-20160816; b=d5mHgPXtG6Wx1X1+YSoR4Wiy6pd0eViU853a2nZTczIukJebs/ezSYSaWp8pfW1cT6 tqp63yjSgOFXJjqPCc6KgIVs5Wn/IhlCgC7omUWbR1MqSJWlwF2ZcjWu8CNh7s/y2XVe M2gcIeu/tKBMiNwUnZzMhgqL9FtU613b6eNF7MFL1vMHmfAA+4bI1CYoiGc7qWjt8tiG 4Iik6MFTFQXEIQuDVpHY9z+OvF+HBy2hovZK92oIEq6Y+pL1k4MfV2DdQx/gXAIx4MZk qkbOuF50SaCiek6sA6vHlNq/nY91cXEOCjdaSlDvlFowlFrRAvbHTNIf4jvhWkz73Dir T0RQ== 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=XLWXGCkqKr6XfoI8vS/oc48wQaCA2yeC3YTgYl0a+ME=; b=BKNRFW9Da+wdorhLTstaiEUZ+M7zQR4wPHrogScT894/zTDB4C2yNDaFAN/EEJoDpD YC83Rcle3vZqt+ot3+/y0/M57Fab9tvfcDB2hAeJgHOnrqvMw18dOdyd0BzMJ+hAd7QV vne+GJcj1PNyDdJEVAro7h6HKG9ss3ULFQ4NMg5tBOQ0MZTf5WPjG4mSxCWIhhN6WDrn o2pD8TheexvpK0i+oEgu5DdBxsIxUauBW58qtZaoIzJkM6FZ1Ek/Dpz+aJDYChWu4/4q fR1ANUNBFTj+Qt/+37GADXkKYGSQAnLozbNbGMbRBPAt0mEvNBtp7S8RjolKKh0z6vvC ALLQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=gSbzZptP; 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 q16si7249169otn.111.2020.03.31.02.09.57; Tue, 31 Mar 2020 02:10:09 -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=gSbzZptP; 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 S1731034AbgCaJJa (ORCPT + 99 others); Tue, 31 Mar 2020 05:09:30 -0400 Received: from mail.kernel.org ([198.145.29.99]:52572 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731240AbgCaJJ0 (ORCPT ); Tue, 31 Mar 2020 05:09:26 -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 90CFA20675; Tue, 31 Mar 2020 09:09:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1585645766; bh=NIEIKCy9cL7aoKh2+5n6+O8oP4NPlsO/4nHYs2/xhoM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=gSbzZptPJGfv4ffhRQ4VBSLGVVXzI5oCMcQaNDSYrme0AJNvotgU0XnEOhFBSTKdS kqgdbhRbygJmDqO/597G2k15xNrfJ5ZctRkgD4oDGe34zf62m72GdFyMsbZxzTlNVm 3sbqsPEz0NiMQBH3NRdeaVxTfn3uSwYULn0QI4Iw= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Hans de Goede , Mika Westerberg , Linus Walleij Subject: [PATCH 5.5 117/170] gpiolib: acpi: Add quirk to ignore EC wakeups on HP x2 10 BYT + AXP288 model Date: Tue, 31 Mar 2020 10:58:51 +0200 Message-Id: <20200331085436.577200294@linuxfoundation.org> X-Mailer: git-send-email 2.26.0 In-Reply-To: <20200331085423.990189598@linuxfoundation.org> References: <20200331085423.990189598@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 0e91506ba00730f088961a8d39f8693b0f8e3fea upstream. Commit aa23ca3d98f7 ("gpiolib: acpi: Add honor_wakeup module-option + quirk mechanism") was added to deal with spurious wakeups on one specific model of the HP x2 10 series. In the mean time I have learned that there are at least 3 different HP x2 10 models: Bay Trail SoC + AXP288 PMIC Cherry Trail SoC + AXP288 PMIC Cherry Trail SoC + TI PMIC And the original quirk is only correct for (and only matches the) Cherry Trail SoC + TI PMIC model. The Bay Trail SoC + AXP288 PMIC model has different DMI strings, has the external EC interrupt on a different GPIO pin and only needs to ignore wakeups on the EC interrupt, the INT0002 device works fine on this model. This commit adds an extra DMI based quirk for the HP x2 10 BYT + AXP288 model, ignoring wakeups for ACPI GPIO events on the EC interrupt pin on this model. This fixes spurious wakeups from suspend on this model. Fixes: aa23ca3d98f7 ("gpiolib: acpi: Add honor_wakeup module-option + quirk mechanism") Signed-off-by: Hans de Goede Link: https://lore.kernel.org/r/20200302111225.6641-3-hdegoede@redhat.com Acked-by: Mika Westerberg Signed-off-by: Linus Walleij Signed-off-by: Greg Kroah-Hartman --- drivers/gpio/gpiolib-acpi.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) --- a/drivers/gpio/gpiolib-acpi.c +++ b/drivers/gpio/gpiolib-acpi.c @@ -1422,6 +1422,21 @@ static const struct dmi_system_id gpioli .ignore_wake = "INT33FF:01@0,INT0002:00@2", }, }, + { + /* + * HP X2 10 models with Bay Trail SoC + AXP288 PMIC use an + * external embedded-controller connected via I2C + an ACPI GPIO + * event handler on INT33FC:02 pin 28, causing spurious wakeups. + */ + .matches = { + DMI_MATCH(DMI_SYS_VENDOR, "Hewlett-Packard"), + DMI_MATCH(DMI_PRODUCT_NAME, "HP Pavilion x2 Detachable"), + DMI_MATCH(DMI_BOARD_NAME, "815D"), + }, + .driver_data = &(struct acpi_gpiolib_dmi_quirk) { + .ignore_wake = "INT33FC:02@28", + }, + }, {} /* Terminating entry */ };