Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp4434803pxu; Wed, 9 Dec 2020 17:44:52 -0800 (PST) X-Google-Smtp-Source: ABdhPJz+UYXjoAHV2pA85l31QoaYczckH51wgG1lTYBRr689IAJG1gXOjVFosxGNMrcOWmwo3oYQ X-Received: by 2002:a05:6402:3049:: with SMTP id bu9mr4584486edb.127.1607564692570; Wed, 09 Dec 2020 17:44:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607564692; cv=none; d=google.com; s=arc-20160816; b=JBbQKh7x1Ik/n+vYtETjqBzOfBM3SFIYdhPTVDBpsvfF9dt71Hfq/mzqgclYPfsUcl GVHSw4R0+0YrakIe+UGRn+VbkqFRia3DiDZ9FEBX2vSLWafjNi/4GL/L0kdut1oBIOyQ P7SBgbtNMCspFT4hYzATutOZI7EQZRD2GEFUDlUKL0t8Zis0CoBVpfs9gW7TMz2ISQXe C5Leo9PN1R2QT5cga03j0W74gEiqfG5UKMiQ0KMz7gPN8ed+sX5wk/J2cJjMU74Xx0MR IJyaAsTru7zOOW9agLlrohnNNAZCh2g8WjIAGw/TGgVmEHs6N+KMnLfhegzbFi0NcdH3 nt+A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:reply-to:cc:from:to :dkim-signature:date; bh=wdJCyYk1f38GX5JvsezuTqDeFPgJXHx/BdZltjPklBA=; b=UOVE8DAlhvpkqrWTjqADKXb3bFZyAOAOSD3N2fNzBCCFUOgs2/yaBpIuAnUh3n0Smt 5gyVDEJaCqO6JLpcgczAqHu7SovrB+cwyHxhO/Fqc5p1ABphrHuQNkHYJF88LYOqorbh erLwx+YSjqm2/B/zFD2VA5npoCxgn2/QBwOwwer8gmfPfa2gUtn70RvsPmyg+NT9G+ld F7g4xC4xgXiC0+3pLphEtkkg+bz+sq+VPOwAt5Hd8ajg3n4IbkC/LMEd9EcR+pkxnVoE cGRMYdXLf4xR1gURolQdPln3GXSZzCZJ9NlmDUiGr5sIc3YI1BDKRB5h2P0VRCOrK5l1 xWFQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@protonmail.com header.s=protonmail header.b=ZzIQYxx7; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=protonmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id oh19si1606698ejb.553.2020.12.09.17.44.26; Wed, 09 Dec 2020 17:44: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=@protonmail.com header.s=protonmail header.b=ZzIQYxx7; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=protonmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728040AbgLIPjr (ORCPT + 99 others); Wed, 9 Dec 2020 10:39:47 -0500 Received: from mail-02.mail-europe.com ([51.89.119.103]:59732 "EHLO mail-02.mail-europe.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726431AbgLIPjr (ORCPT ); Wed, 9 Dec 2020 10:39:47 -0500 Date: Wed, 09 Dec 2020 15:38:11 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail; t=1607528297; bh=wdJCyYk1f38GX5JvsezuTqDeFPgJXHx/BdZltjPklBA=; h=Date:To:From:Cc:Reply-To:Subject:In-Reply-To:References:From; b=ZzIQYxx70gKFm2N/jzgQd3dZxYzeo+dyYLsbsRTILwu3UiKgA9juRLSpncZiWsDMB P2ul/Csk1luCpRbSfHaXglKka7qPcm5NY72u5vCNJFxw+g5PJxPCgwYGZ+72l41m00 4UNU+Brvu31D/+9aO4IyT/TlSjMDdmbHXTrCAenQ= To: Greg KH From: =?utf-8?Q?Barnab=C3=A1s_P=C5=91cze?= Cc: Coiby Xu , "linux-input@vger.kernel.org" , Helmut Stult , Baq Domalaq , Pedro Ribeiro , "stable@vger.kernel.org" , Jiri Kosina , Benjamin Tissoires , open list Reply-To: =?utf-8?Q?Barnab=C3=A1s_P=C5=91cze?= Subject: Re: [PATCH v4] HID: i2c-hid: add polling mode based on connected GPIO chip's pin status Message-ID: In-Reply-To: References: <20201125141022.321643-1-coiby.xu@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.2 required=10.0 tests=ALL_TRUSTED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM shortcircuit=no autolearn=disabled version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on mailout.protonmail.ch Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 2020. december 9., szerda 8:00 keltez=C3=A9ssel, Greg KH =C3=ADrta: > On Tue, Dec 08, 2020 at 09:59:20PM +0000, Barnab=C3=A1s P=C5=91cze wrote: > > > 2020. november 25., szerda 16:07 keltez=C3=A9ssel, Greg KH =C3=ADrta: > > > > > [...] > > > > > > > +static u8 polling_mode; > > > > +module_param(polling_mode, byte, 0444); > > > > +MODULE_PARM_DESC(polling_mode, "How to poll (default=3D0) - 0 disa= bled; 1 based on GPIO pin's status"); > > > > > > Module parameters are for the 1990's, they are global and horrible to > > > try to work with. You should provide something on a per-device basis, > > > as what happens if your system requires different things here for > > > different devices? You set this for all devices :( > > > [...] > > > > Hi > > do you think something like what the usbcore has would be better? > > A module parameter like "quirks=3D::[,::]*"? > > Not really, that's just for debugging, and asking users to test > something, not for a final solution to anything. My understanding is that this polling mode option is by no means intended as a final solution, it's purely for debugging/fallback: "Polling mode could be a fallback solution for enthusiastic Linux users when they have a new laptop. It also acts like a debugging feature. If polling mode works for a broken touchpad, we can almost be certain the root cause is related to the interrupt or power setting." What would you suggest instead of the module parameter? Regards, Barnab=C3=A1s P=C5=91cze