Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp212614pxu; Fri, 4 Dec 2020 01:06:53 -0800 (PST) X-Google-Smtp-Source: ABdhPJyy2KDm3lJIG0H0t2O8SK2opFahuj/ojjkw8Ev9QTCFalTKc/gwDMrnSfq0i75d+whgxRj3 X-Received: by 2002:a50:d553:: with SMTP id f19mr6347964edj.323.1607072812908; Fri, 04 Dec 2020 01:06:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607072812; cv=none; d=google.com; s=arc-20160816; b=PntLGntpFRR2PK+/G8Fs9i/Ry/m1KM+52Ir69hh87OhZx/EoProLe/CCF7CChCo1qV n3Gul/YJMNqBtsVaq+Jd5PAWhIMLo3cvGJgIfaQJDfudmep03nxUonSyrfVEDNXzCZzP xSubXDT25cXP+4C9PVqd6eGWEfQ3rOd4zvVHNyROrcEeL9mABC7P3Io/8oFu6rXOsn1W r2rLI8JnXyCht0g9uw1LXpGZPLGGuBZDE9u7gS6K7ZNrhLXg8s7CoF2t8Hrcyw3infxe 31VeB9GMTg1/Ei3MB84yQAZnC3KHvhQZo4P24xHBDE+PgHmjsSGs5xy2uf/9lG7xbOeP VOMw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=9eIl/TfXf3DAnCHJTvjBTc2NPdhLLKlNS7U/UUzxHKU=; b=Lm4I/txCANNhV105BWBJvDploKRv9oO1oGH4jhBR4YlAx7UmEITOG/ksJEdTQrKFMs 5VP+IT7IpaDSybck+UHSUGynlG3SUv/YaSkzrrHnFSeu1AVIt7zHyNqc+Vy3dQIybpUB t0uAzvqz6d1aXoPkxektesi6TtoX9jl2GKENE6eLI9D0KmYGqcpX7CXhpjLTfBTv9wG0 H6nz+ymlfDv+74pbDntRM44O5QeQ5d6XOilgU1kYxYBMfA3Pc21OOVm/RYBEmu5j95jy W/XCvbkF6HGUGnshabBQDowriBeozy4W9Lf5w8quDPyI9qkxASiGD7t+ri64gl82vRzj pYnw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=va2ghVLb; 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=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d17si916082ejh.451.2020.12.04.01.06.29; Fri, 04 Dec 2020 01:06:52 -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=@linaro.org header.s=google header.b=va2ghVLb; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729028AbgLDJEh (ORCPT + 99 others); Fri, 4 Dec 2020 04:04:37 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43684 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728211AbgLDJEg (ORCPT ); Fri, 4 Dec 2020 04:04:36 -0500 Received: from mail-lf1-x141.google.com (mail-lf1-x141.google.com [IPv6:2a00:1450:4864:20::141]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 17FEBC061A52 for ; Fri, 4 Dec 2020 01:03:56 -0800 (PST) Received: by mail-lf1-x141.google.com with SMTP id v14so6681292lfo.3 for ; Fri, 04 Dec 2020 01:03:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=9eIl/TfXf3DAnCHJTvjBTc2NPdhLLKlNS7U/UUzxHKU=; b=va2ghVLb3DmX1s39aM+Iex7op7cd9cU0tApBoKhZsQNzHsUugDe6hXp8iUdQLKFCJF 4kVBSccSEqu4KZ/F6TwouW7QKCNnqIE/D8aRTwq5lmVh06c+WJ0ewJfxNQaqtgPrcX4/ 1wxB/CD360gFYd0AAfLnWYiTqmdPrLGF+pgEG2V2zxasXn++UvbL6Hd452/7y5DjT6Io CEnUiwTNsGBG2n5l3sgRZwaCzVnrZ6I2yYS4tBgNI41+vxEIHfK6yZmA+TwiESDiQVZd BsTOULm+bREEs5t9ExGw8yNWKYLrt4k6jNVKisPFaKU+A9TesItNET9OpWfyN6xYUl62 M2nA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=9eIl/TfXf3DAnCHJTvjBTc2NPdhLLKlNS7U/UUzxHKU=; b=Bjs+B5fs9DYK+kCUCQ3MwEhDB1b/X7w6NV6iL22cG2/0mQ2ZSS6xAvVHjDERAsJlYe icCHVgzMW2loiVgIm0MaPVf0ZG50dECM9/PsySx6k1r2nVooeVvnrVL6HJnF3FbkC37D SE2fyx4HnaVoXF4l4MzENqGPAV8iec6XUjfOW6OlNKCAR3Dxvq5imrXQ9+IMefS1AzWL l87tJ7/1MQHIfDDXY1oHPNOwXumi6GeYuTZaK/uYxBQ6fcmbqE/CRLV3YFfgXpFYNwMR blaSe1+9tRU+0+5sOnC2EkR1fi6j1bBpPfbt0+qOvSG67/xon8nCm0yTpJFUwDQlCuqT KuKQ== X-Gm-Message-State: AOAM533XC/1FVppH/l6KWek/b2utWmB1sykpBBmQ+23ZH4SXa627Fc9k HUmZRigObNQnxg9CsAmmMGwusd0RBa9JFIl6izV18Q== X-Received: by 2002:a05:6512:3e7:: with SMTP id n7mr2784417lfq.585.1607072634424; Fri, 04 Dec 2020 01:03:54 -0800 (PST) MIME-Version: 1.0 References: <20201125130320.311059-1-coiby.xu@gmail.com> In-Reply-To: <20201125130320.311059-1-coiby.xu@gmail.com> From: Linus Walleij Date: Fri, 4 Dec 2020 10:03:43 +0100 Message-ID: Subject: Re: [PATCH v4] pinctrl: amd: remove debounce filter setting in IRQ type setting To: Coiby Xu Cc: Andy Shevchenko , "open list:GPIO SUBSYSTEM" , Baq Domalaq , Pedro Ribeiro , Hans de Goede , Benjamin Tissoires , stable , open list Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Nov 25, 2020 at 2: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/ > [2] https://github.com/Syniurge/i2c-amd-mp2/issues/11#issuecomment-721331582 > [3] https://forum.manjaro.org/t/random-short-touchpad-freezes/30832/28 > > Cc: Hans de Goede > Cc: Andy Shevchenko > Cc: Benjamin Tissoires > Cc: stable@vger.kernel.org > Reviewed-by: Andy Shevchenko > BugLink: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1887190 > Link: https://lore.kernel.org/linux-gpio/CAHp75VcwiGREBUJ0A06EEw-SyabqYsp%2Bdqs2DpSrhaY-2GVdAA%40mail.gmail.com/ > Signed-off-by: Coiby Xu > --- > Changelog v4: > - Note in the commit message that this patch depends on other two > patches to fix the broken touchpad [Hans de Goede] > - Add in the commit message that one more touchpad could be fixed. Patch applied for fixes adding a reference to Andy's commit. Thanks for sorting this out! Yours, Linus Walleij