From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.7 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id B9191C4361B for ; Tue, 8 Dec 2020 22:00:56 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 6E67B22225 for ; Tue, 8 Dec 2020 22:00:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730486AbgLHWA4 (ORCPT ); Tue, 8 Dec 2020 17:00:56 -0500 Received: from mail-02.mail-europe.com ([51.89.119.103]:41888 "EHLO mail-02.mail-europe.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730482AbgLHWAz (ORCPT ); Tue, 8 Dec 2020 17:00:55 -0500 Date: Tue, 08 Dec 2020 21:59:20 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail; t=1607464771; bh=1hYjg8WRlU6tVQsFOn5GFB0I2LWqf6gUYIXfyucinX4=; h=Date:To:From:Cc:Reply-To:Subject:In-Reply-To:References:From; b=nKjIEnl2xqbnAdHa3plEidQMmJHMMIei9SGArs5wH22tQYMzuEecV9oVT5x4ESqvp 9VbyUN5vu9jQCPcx7ljela/wjzt284ZVALWvOOvJSgW1by19+NniG3tmpfgjPy8kyE 2CXMAzxMbTcJlAV2Yl/30w+PugqCvtlHJJzMn080= 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 Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org 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 disabled= ; 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::[,::]*"? Regards, Barnab=C3=A1s P=C5=91cze