Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp3987389pxb; Tue, 10 Nov 2020 05:26:04 -0800 (PST) X-Google-Smtp-Source: ABdhPJwUHEGCEDFeWGW/8HOLfnyGSTtTt60gpjTqtE/dsdsgxRUCQwiNbbF2X1LrygllSwxdjknD X-Received: by 2002:aa7:d858:: with SMTP id f24mr20338424eds.12.1605014764348; Tue, 10 Nov 2020 05:26:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605014764; cv=none; d=google.com; s=arc-20160816; b=SJy1QEAhAB0AwTzxhw7uZP/SHvClN6cUHOIx/OS7vdxn6W7l5KOw84GQl7F7YX3Bev bDX6qbCkdZe/ms8LYN5Vp43kjks4aJirCLjRkpIoZKKr86En4/u57SrpDDDDWLVSubrg 8FmRCXf0HdOd/ny7apZdFD4ha2JjtWJ+WFANboeETBEQaKnPg1+a5vD9819jpe1rOWRS 0Qf3PS/M772zNqznveD5ffhR4A3UvyRF6MA1awvFMgX1RCLUe8LDYkEmMCXHtBPJlFV6 +UMKwj1o5LIY9K0Q/1T09/irqRsbUKN7u6BAghTmSYeITGcKHHgiBtWw1xvEb60dIReX GLeg== 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=anY0fDmqZf06M51XMjl+y1hfzhD8VdxufKL6ec1avkQ=; b=c+Pz5WPq6yRpfdF6UCE2Akffy7tzVCRlD6e9Fr+75mqikSp3mWC4ZROpyaU43+tqZW f/cTEvgBFRdkW5/eDOXZYP8T6z/QsHdxtrNUAK/D5wXX5gB6Mqou6YXI20x3g8goTRK4 B292jIiORBOamrD6dLVlwqiyNZOEMIgwK6KzWt3yJg/GUCK+8vxqlwJD//UzYBs3xn6K +8iL995SbQfoKXuvzcy1nD+sVO32qqYIB/8TSb374FNYAXOMP+tDDGf2tX4V0K+a3AqK KkXy6nmpoL28YPCJcPldo2Q7pRIujWvAwRM0EBS1XJeU/P0HXWwwYLGr+n44cLxr+vjN Xzdw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=uRDAAQZ2; 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 y3si9791561edm.138.2020.11.10.05.25.39; Tue, 10 Nov 2020 05:26:04 -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=uRDAAQZ2; 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 S1730124AbgKJNXs (ORCPT + 99 others); Tue, 10 Nov 2020 08:23:48 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50168 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726721AbgKJNXr (ORCPT ); Tue, 10 Nov 2020 08:23:47 -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 83602C0613CF for ; Tue, 10 Nov 2020 05:23:47 -0800 (PST) Received: by mail-lf1-x141.google.com with SMTP id w142so10517724lff.8 for ; Tue, 10 Nov 2020 05:23:47 -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=anY0fDmqZf06M51XMjl+y1hfzhD8VdxufKL6ec1avkQ=; b=uRDAAQZ2yXEIso6pDZnJjZa23Cttl92TlkscjI2ix8+hgHrYZat15DgQpmmpTVUsBr SFmLlTr/CtssX+80JnqUfLqR+sdk+wENKWUyexD+s0Nz56QFXg7JejhEMZGpQo+a68iw RdQy/4lENdser8H3Hq/aJobT2wZ1Z9e8RrvQ9+uOhUPDsDQ0v0GqzzzNBiFYmS7mOX0J RGKYsw0+lnwai0vohBsBDy1h9mpYcXfYwYtAzkyYxXwvZle4GadAE6T/A9YDbjRmWE8e 3KwX91ri0vN0bALT+3+jkG2vlVk4g2Yg2YYcoVK9o+cpS5VjDhagbzIMc1DqojWm/DHn HI4A== 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=anY0fDmqZf06M51XMjl+y1hfzhD8VdxufKL6ec1avkQ=; b=RIiAgcczKMob3T81GuEi360hbxB7+Uy0j2nOaNsHrHK7AvPErvF7+O624eoYx+8XpI rKBvc1P1Pu5sJLE/C69wOtF2ub0kTJhCWhpj8h1yBp/U9pi6cKIqCN9GrwN9FWaiMC+q nyQvw+e6Ah+2PqfDucFrMZIX3QtFcRo9kU/lkDZTOO5cOLQF0CQFgZgQjSEabMedYj1+ VMmtU3y/fNdL9PNuTZJQbAOcwcVeIN0a70NsxF4hhLGStHgzFlzx4jBsqORasmH+vH3o ss7JoHannY8GiGx9N1AFLe2+QgpzK8ciSPBHxTlrb9vQ5rrQIB9L5OwthDUk6JpfgNoX KcZA== X-Gm-Message-State: AOAM531jm7zurp2j1fAW8QQGT/wbaPqHbEcZ0qw6iKG/Bu8TQ9dhjlll Xz37heQ9nKbEEC0PIYFCucc2NkkG2MxdAVsXntVlwQ== X-Received: by 2002:a19:7b06:: with SMTP id w6mr8180050lfc.260.1605014625078; Tue, 10 Nov 2020 05:23:45 -0800 (PST) MIME-Version: 1.0 References: <20201105231912.69527-1-coiby.xu@gmail.com> <20201105231912.69527-5-coiby.xu@gmail.com> In-Reply-To: <20201105231912.69527-5-coiby.xu@gmail.com> From: Linus Walleij Date: Tue, 10 Nov 2020 14:23:34 +0100 Message-ID: Subject: Re: [PATCH v3 4/4] pinctrl: amd: remove debounce filter setting in IRQ type setting To: Coiby Xu Cc: Andy Shevchenko , "open list:GPIO SUBSYSTEM" , 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 Fri, Nov 6, 2020 at 12:19 AM 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(). > > This will fix broken touchpads for laptops whose BIOS set the debounce > timeout to a relatively large value. For example, the BIOS of Lenovo > Legion-5 AMD gaming laptops including 15ARH05 (R7000) and R7000P 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 [1][2] 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://github.com/Syniurge/i2c-amd-mp2/issues/11#issuecomment-721331582 > [2] 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 As I have applied patches 1-3 we only have this one to land. If Andy or someone else needs to take it through the ACPI tree you can add my: Acked-by: Linus Walleij If I should apply it or if Andy sends me a pull request, just ping me and tell me what to do :) Yours, Linus Walleij