Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp337532pxu; Fri, 4 Dec 2020 04:43:07 -0800 (PST) X-Google-Smtp-Source: ABdhPJyaLnqWaaMMsL9iS73MSwKbOiHhpVjHX/g68sO/O2ZqRbglUd7PSJDY3GLwBytaIWobwmU/ X-Received: by 2002:a17:906:2a19:: with SMTP id j25mr6609350eje.506.1607085787332; Fri, 04 Dec 2020 04:43:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607085787; cv=none; d=google.com; s=arc-20160816; b=KnVU/HXHvGH5IDKwL2wKPwajqJ+AvvfY1pwDo3dWi1Iw796Fj9UsRUmKMDk/Jyl+Wf ay5ov/25dUGbUaUZk0DRyXNNjAA/rMU3zD8sMzuopzkLMz848nVZkz8IuCMEHk6qYGOt HGfg3c5n+I9tTqMh3zzFRUHWD1Ky467DdiOrlwUb3k5vRf/Y6Xr6MsLwDoKs9khQgzVN P2r7ka1yDX0f8ibiL2gYGaW1zr5JYb8SL/YY1tPpHHMsMwtDvMW6Odktmth3KTl1334C zTBZxm5T9HaN2UlClIxXlb6WfW4TSESnZfTPbINylQkuu584ygl74ccpQMVcBAtED9HK 1HPQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:date:from:dkim-signature; bh=t1SOBg+AdBEzlFR/pdb3N773Ew8SMnLFrxYMoyMoI4Y=; b=wJUWCp3Hxz6dSu2kSlS/aGK2oSPMz6QHZesbSOO+mSBfrGI9HfFsTUAqSF+b4fqx3C c6Gd6c/5NcOzd3v//jWZuDcoZ/96Koyy1buzK+YCoKHsmCis8opJnqvq2eHKOMzqN7WD pva010ILdWnLtHfdVFM2OP9M0wSkeOvWJZs6meGQeUHEqR4HIxb1Ojv8pY9sv0Kt4zOX IyZBtVA7IT+IiqBWX4/nCM77N0in1ffSyqbaKLW5ABEQV9xaKIKMxRIvQgIpI72MUtkn Dy7QyFo3IAKSd1JF4EpG8x1kX4mxzj4pHnzaRAIGIWxCafenzeefPozkJi60gKwYED98 Ydtw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=XeNP4xOI; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dr10si1359569ejc.306.2020.12.04.04.42.44; Fri, 04 Dec 2020 04:43:07 -0800 (PST) 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=@gmail.com header.s=20161025 header.b=XeNP4xOI; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730165AbgLDMj3 (ORCPT + 99 others); Fri, 4 Dec 2020 07:39:29 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48498 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728515AbgLDMj2 (ORCPT ); Fri, 4 Dec 2020 07:39:28 -0500 Received: from mail-pf1-x443.google.com (mail-pf1-x443.google.com [IPv6:2607:f8b0:4864:20::443]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 630ECC061A4F; Fri, 4 Dec 2020 04:38:48 -0800 (PST) Received: by mail-pf1-x443.google.com with SMTP id q10so3622993pfn.0; Fri, 04 Dec 2020 04:38:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:date:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=t1SOBg+AdBEzlFR/pdb3N773Ew8SMnLFrxYMoyMoI4Y=; b=XeNP4xOIUF6OvsLEuwn9HOxWtypBAiujLK0J50Z58FBbfTN5ZzajZUQX3P1g7m1rQN K9IUliOCzkFi1kY+L6FKnJi2rR7ikxoVZlyBTmvU9AH793uVoo24S3gilKSYSi2+XC2H hmkbLJLafGbc8+/mMsk6adiqS/T3msFPFNbb8uqBgthfFpxMXB95CGiMLAWY1b7NK/Ji Ui+D3+qPAMeSzcnCDpUKFd2Zg6wOezjN1QkvnWEZcadV6+mYFl9zDhPX9CAdCZfKFJrT OYkyOFBxQBoDGqs9JNzxDz2NDaCrSJi1qYgaofECm7PboU04qf1+WLfbjS6+lTMJxwRV ngJA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:date:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=t1SOBg+AdBEzlFR/pdb3N773Ew8SMnLFrxYMoyMoI4Y=; b=oFroeAKAVmBwM6B88L9mvUjJv9iNSOoUGask6AL/2fTOZfYLaMTNM0e7QpGvA92bwx ZVpCfEvyMbeqTKfL9NrgeATl4Y+6zxm2s2HBGkTza63A4ajj/nCJ99Uv1WkNXgt7tSdx GYR8GnBV+D8SB7Vai7MuOvIHDAAkvBLFTeuuy0Ud7YH6hmOHFLYkSc6sigi+ssg/Nien VCNdU43JiFfmd07+gC4L3Lo2PeCfYhP5SR2iDAhl0bhfjtu4wO+wDlLdwXA2HX57XRu7 eIaUNYFnkbRzs1W4WbNkmGRBsD+D5eXJCZFe72jQjTi4ylF+7Q3QK3qv29K7RJTg6IWW T1IA== X-Gm-Message-State: AOAM531/NmFYpqyhihe+Th8V23COJzu/2sjQ0vpUR0UOMxfhLZKvSrV7 Nt0WCr3EwUXfdvOLbz1icRA= X-Received: by 2002:a63:4083:: with SMTP id n125mr7427742pga.356.1607085527850; Fri, 04 Dec 2020 04:38:47 -0800 (PST) Received: from localhost ([2001:e42:102:1532:160:16:113:140]) by smtp.gmail.com with ESMTPSA id e18sm3799556pgr.71.2020.12.04.04.38.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 04 Dec 2020 04:38:47 -0800 (PST) From: Coiby Xu X-Google-Original-From: Coiby Xu Date: Fri, 4 Dec 2020 20:35:43 +0800 To: Andy Shevchenko Cc: Linus Walleij , "open list:GPIO SUBSYSTEM" , Baq Domalaq , Pedro Ribeiro , Hans de Goede , Benjamin Tissoires , Stable , open list Subject: Re: [PATCH v4] pinctrl: amd: remove debounce filter setting in IRQ type setting Message-ID: <20201204123543.3wjng2hn35yhezob@Rk> References: <20201125130320.311059-1-coiby.xu@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Nov 25, 2020 at 03:24:20PM +0200, Andy Shevchenko wrote: >On Wed, Nov 25, 2020 at 3:03 PM Coiby Xu wrote: >> >> Debounce filter setting should be independent from IRQ type setting >> because according to the ACPI specs, there are separate arguments for >> specifying debounce timeout and IRQ type in GpioIo() and GpioInt(). >> >> Together with commit 06abe8291bc31839950f7d0362d9979edc88a666 >> ("pinctrl: amd: fix incorrect way to disable debounce filter") and >> Andy's patch "gpiolib: acpi: Take into account debounce settings" [1], >> this will fix broken touchpads for laptops whose BIOS set the >> debounce timeout to a relatively large value. For example, the BIOS >> of Lenovo AMD gaming laptops including Legion-5 15ARH05 (R7000), >> Legion-5P (R7000P) and IdeaPad Gaming 3 15ARH05, set the debounce >> timeout to 124.8ms. This led to the kernel receiving only ~7 HID >> reports per second from the Synaptics touchpad >> (MSFT0001:00 06CB:7F28). >> >> Existing touchpads like [2][3] are not troubled by this bug because >> the debounce timeout has been set to 0 by the BIOS before enabling >> the debounce filter in setting IRQ type. >> >> [1] https://lore.kernel.org/linux-gpio/20201111222008.39993-11-andriy.shevchenko@linux.intel.com/ > >JFYI: this is nowadays >8dcb7a15a585 ("gpiolib: acpi: Take into account debounce settings") > Thank you for the info! Next time I will also check the linux-next tree:) >(No need to recend, just an information that can be applied maybe by Linus) > >> [2] https://github.com/Syniurge/i2c-amd-mp2/issues/11#issuecomment-721331582 >> [3] https://forum.manjaro.org/t/random-short-touchpad-freezes/30832/28 > >-- >With Best Regards, >Andy Shevchenko -- Best regards, Coiby