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=-5.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,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 958F4C4361B for ; Wed, 9 Dec 2020 07:00:07 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 5DD9F23A5A for ; Wed, 9 Dec 2020 07:00:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728287AbgLIG7t (ORCPT ); Wed, 9 Dec 2020 01:59:49 -0500 Received: from mail.kernel.org ([198.145.29.99]:50768 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728341AbgLIG7r (ORCPT ); Wed, 9 Dec 2020 01:59:47 -0500 Date: Wed, 9 Dec 2020 08:00:23 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1607497146; bh=7nHAfEfm1CHzNsPGKp3jAJdYE9lEuX3kGqfC8DN3i6Y=; h=From:To:Cc:Subject:References:In-Reply-To:From; b=tX5SqM7jTd3o0VwpPnIVa4ks4vrh+DmP+v93i7jDs7l23Skviu3SYkXdUt0r3PbtY jtytAbivnLDoPINhdIJp0t1DZ3Iz2y1LpKXo4vMKXL7BploHALocbcEg2DOG7zXdfQ XuXqwLHt7V2zQ/EScEVReNez9riBz13/mHQfyS9Y= From: Greg KH To: =?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 Subject: Re: [PATCH v4] HID: i2c-hid: add polling mode based on connected GPIO chip's pin status Message-ID: References: <20201125141022.321643-1-coiby.xu@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org On Tue, Dec 08, 2020 at 09:59:20PM +0000, Barnabás Pőcze wrote: > 2020. november 25., szerda 16:07 keltezéssel, Greg KH írta: > > > [...] > > > +static u8 polling_mode; > > > +module_param(polling_mode, byte, 0444); > > > +MODULE_PARM_DESC(polling_mode, "How to poll (default=0) - 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=::[,::]*"? Not really, that's just for debugging, and asking users to test something, not for a final solution to anything. thanks, greg k-h