Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp3762716pxu; Tue, 8 Dec 2020 23:02:44 -0800 (PST) X-Google-Smtp-Source: ABdhPJzLKmrZ0Pl07lUNDHvU7945Flc8uSjA59eHdQJXU76UR54ivq1MCJ7SyPZRR8jo1PLcH0PU X-Received: by 2002:a05:6402:1c96:: with SMTP id cy22mr678759edb.339.1607497364107; Tue, 08 Dec 2020 23:02:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607497364; cv=none; d=google.com; s=arc-20160816; b=YG4FwSwQxWdo2lpvSR9nxH12qh1xL2vYQUE/uSSRnU/jK9EIFmRhHUfqA7MmNsfJfF u95W1bnuJM/+eKmzJuqtjw2GghQDVIuYt6Yay4YpK+fWu0e8M8rVJsx8bjXDSF/jh8KH mG30Zeo6WklMuP5IEpphNRKdCyPSlZjd7cnzeDe2BC2YWiQyPAGiC6LPcMHeyCFwrP/o EgfzfnHFZknwBv++F/+c27UP8pFxpPYdSKJUvSvr3oMTKuPF7BUIMrwuD7efXDdMFOXT ugJW5TWuMNJQ4fFDquG1wQO6DVmZelNImjeD+LO7HoBJ4UJRUEbn3SuD69Q/59NO5loI AGWw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:dkim-signature:date; bh=9a8sygCoHbRlzhCXPKZmDKRz9b8lE0a9kaGGPJAAKDE=; b=B+8PrwIOb/FAuU3K2maAFRBvZfPTRj8ysbFbQDzfq+syO1wcRMgCvPJMrVwkTU4Vi5 YmJFS2dkLHcpYgJHzOfmdQM5Hc2ixYMX8V3VtlRv50Wz5zkQ52xz8rthBz9egvp1fyQl /uthvXuAhINO9vIVeTAJ2HEPC0mnbmKx14BjDPhYMWfxIQbrdkboVQv2NmDeuG8zhVaO ufCR7t9DaO0CyNj93Zy8ru/sQvs+31AIcb/heQIdGPGJ4GLBcppA8/hBJf7wiR0r5yTQ tV7VukeqvfUe5k/fLT9t5EeHDFsLK2FZjYXhtDDKVoI1RKmq96KKqqQf2+XAkFgBhFBY kGBQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=tX5SqM7j; 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=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i8si384066edv.161.2020.12.08.23.02.19; Tue, 08 Dec 2020 23:02:44 -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=@linuxfoundation.org header.s=korg header.b=tX5SqM7j; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728356AbgLIG7v (ORCPT + 99 others); Wed, 9 Dec 2020 01:59:51 -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-kernel@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