Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp6239954rwl; Wed, 22 Mar 2023 08:09:54 -0700 (PDT) X-Google-Smtp-Source: AK7set9CUAkYuQFkbEIcyyHglo0wmCOduZES6BCZ+sce5zSs1KRUKfoLpUzCLlp79bTzdnbbBpaA X-Received: by 2002:a05:6a20:8b85:b0:cb:6869:ca66 with SMTP id m5-20020a056a208b8500b000cb6869ca66mr5700296pzh.19.1679497794686; Wed, 22 Mar 2023 08:09:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679497794; cv=none; d=google.com; s=arc-20160816; b=XwLDcpZrZSzuGF1r4kQgKKuS2aKvEWNj2zCWi2NtGRO9YCVxCKJGKJxipEzkh773bQ ZpIiPoj5l3hylOxIBOlTLvVWfhqBKG1BLYoPhhrpfzPSw9D4MLPL8kGLm2qYk+0g3doa 9iHzUSXkDQRWPbIaY6uPxDCMtGEvcNwqclORWjCJsq8YqEwQyy1GJO2p1ip0FdCGGzkT 579B0XZMz8TUCEklUb0x2dfCjw8V0enzVJldciGbKWD5qzbs/kR2iu40OZvk2OoAdbjh f/JHge5KtYG6wbqz1cf1APMQ4O6B5dubJGNerd+/ZRdTRKbLRLJBGvWSmyXXxPw7diqq ekpw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:organization:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=bLbTklWFP1K9o7KPoZ+GNkmFU35sEI8AnY5+CuJl5oA=; b=V/8R3IjkKsj5m99CuCnRrhI3x18q19jS/PGQeeBtVLWNZAx6S3WOhENJztC4QpqQYF XrZWRz9anr9zmnYGy+YIPiAJ/bRITpFtxsDSkeg0auQf0nnOg+RkrU+Lcm0snChxxOzU FY1PrQEeRRLVlzFa+gAydGB0YpaLh8JafGGNCihjuRsfo7ZlhDTqN7exMD7MxjlV4s86 S0qWBiWYOfe8nrDdHLFWMWiSZNXIJmlt9jpsoMac2uJuxYLUdEnJeNxqlQTZsG6ZXC6R fFekS3xlfP9dKaGiF//dgLb/8R7KJy45QYP2AeCnMCO8opvkovGQBZk1D1TGYx1aTorw SOmA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Rxxgqsu8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v25-20020a634659000000b0050bcf249337si14753276pgk.502.2023.03.22.08.09.42; Wed, 22 Mar 2023 08:09:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Rxxgqsu8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230457AbjCVO4Y (ORCPT + 99 others); Wed, 22 Mar 2023 10:56:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60222 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230144AbjCVOzz (ORCPT ); Wed, 22 Mar 2023 10:55:55 -0400 Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7189B7D98; Wed, 22 Mar 2023 07:55:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1679496934; x=1711032934; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=h6hskFbHw7KYbk2YVxQW62X04Lp2hb/hxK+OlVrcXP4=; b=Rxxgqsu8UAdQnb1h6K303HVluCyVmnz5D30/nhwmcJpyS2ZenbrSU+gm xor7pUpiJDVctjX0QEwTy3seq0xPXoPnUc9sMuncpewpEuXtcL3mniXxA msnsVqGNYn7nCZ7Sb7m0sbzmR7G+1u+K8Ye68+b+MN+95fXd1m8ubkisk u6eIYjWQwJILL7weXKA2jg/GiseLs3iwxvzB/QC89bJUxcQarhb9UI8mQ WSqCikoydSgBJNovxKH/rIJ6w9qeLtAJLQCgQ5NFTPq52bsQ0vtRPuAyj 0MwEwHlTehZrvJvtw4bvhQe8b/XPKlVafmzQygqFre+2ip37Y4pdHvYKi Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10657"; a="327613246" X-IronPort-AV: E=Sophos;i="5.98,282,1673942400"; d="scan'208";a="327613246" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Mar 2023 07:55:34 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10657"; a="792583313" X-IronPort-AV: E=Sophos;i="5.98,282,1673942400"; d="scan'208";a="792583313" Received: from smile.fi.intel.com ([10.237.72.54]) by fmsmga002.fm.intel.com with ESMTP; 22 Mar 2023 07:55:32 -0700 Received: from andy by smile.fi.intel.com with local (Exim 4.96) (envelope-from ) id 1pezsA-007Agk-0e; Wed, 22 Mar 2023 16:55:30 +0200 Date: Wed, 22 Mar 2023 16:55:29 +0200 From: Andy Shevchenko To: Werner Sembach Cc: Mika Westerberg , Linus Walleij , Bartosz Golaszewski , linux-gpio@vger.kernel.org, linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] gpiolib: acpi: Add a ignore wakeup quirk for Clevo NL5xNU Message-ID: References: <20230322121547.14997-1-wse@tuxedocomputers.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230322121547.14997-1-wse@tuxedocomputers.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo X-Spam-Status: No, score=-2.4 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Mar 22, 2023 at 01:15:47PM +0100, Werner Sembach wrote: > commit 1796f808e4bb ("HID: i2c-hid: acpi: Stop setting wakeup_capable") > changed the policy such that I2C touchpads may be able to wake up the > system by default if the system is configured as such. > > However on Clevo NL5xNU there is a mistake in the ACPI tables that the > TP_ATTN# signal connected to GPIO 9 is configured as ActiveLow and level > triggered but connected to a pull up. As soon as the system suspends the > touchpad loses power and then the system wakes up. > > To avoid this problem, introduce a quirk for this model that will prevent > the wakeup capability for being set for GPIO 9. > > This patch is analoge to a very similar patch for NL5xRU, just the DMI > string changed. Fine, Acked-by: Andy Shevchenko > Signed-off-by: Werner Sembach > Cc: stable@vger.kernel.org > --- > drivers/gpio/gpiolib-acpi.c | 13 +++++++++++++ > 1 file changed, 13 insertions(+) > > diff --git a/drivers/gpio/gpiolib-acpi.c b/drivers/gpio/gpiolib-acpi.c > index 34ff048e70d0e..055013f959b25 100644 > --- a/drivers/gpio/gpiolib-acpi.c > +++ b/drivers/gpio/gpiolib-acpi.c > @@ -1624,6 +1624,19 @@ static const struct dmi_system_id gpiolib_acpi_quirks[] __initconst = { > .ignore_interrupt = "AMDI0030:00@18", > }, > }, > + { > + /* > + * Spurious wakeups from TP_ATTN# pin > + * Found in BIOS 1.7.8 > + * https://gitlab.freedesktop.org/drm/amd/-/issues/1722#note_1720627 > + */ > + .matches = { > + DMI_MATCH(DMI_BOARD_NAME, "NL5xNU"), > + }, > + .driver_data = &(struct acpi_gpiolib_dmi_quirk) { > + .ignore_wake = "ELAN0415:00@9", > + }, > + }, > { > /* > * Spurious wakeups from TP_ATTN# pin > -- > 2.34.1 > -- With Best Regards, Andy Shevchenko