From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754130Ab3KQS3G (ORCPT ); Sun, 17 Nov 2013 13:29:06 -0500 Received: from atrey.karlin.mff.cuni.cz ([195.113.26.193]:50288 "EHLO atrey.karlin.mff.cuni.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752006Ab3KQS24 (ORCPT ); Sun, 17 Nov 2013 13:28:56 -0500 Date: Sun, 17 Nov 2013 19:28:40 +0100 From: Pavel Machek To: Dmitry Torokhov , Dmitry Torokhov , linux-input@vger.kernel.org, Rob Herring , Pawel Moll , Mark Rutland , Stephen Warren , Ian Campbell , Rob Landley , Grant Likely , devicetree@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCHv3 1/2] Input: twl4030-keypad - add device tree support Message-ID: <20131117182840.GA30012@xo-6d-61-c0.localdomain> References: <1383948866-32672-1-git-send-email-sre@debian.org> <1383948866-32672-2-git-send-email-sre@debian.org> <20131111221941.GB23331@amd.pavel.ucw.cz> <20131112032506.GA30028@earth.universe> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20131112032506.GA30028@earth.universe> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi! > On Mon, Nov 11, 2013 at 11:19:41PM +0100, Pavel Machek wrote: > > > + if (of_get_property(np, "linux,input-no-autorepeat", NULL)) > > > + keypad_data->no_autorepeat = true; > > > > From 2/2: > > > > +Optional Properties specific to linux: > > +- linux,keypad-no-autorepeat: do not enable autorepeat feature. > > > > I'm confused now. > > good catch! That happens when one tries to mimic other drivers :/ > > I just checked all DT input drivers for autorepeat keyword: > > DRIVER CODE DOCUMENTATION > twl4030-keypad linux,input-no-autorepeat linux,keypad-no-autorepeat > omap4-keypad linux,input-no-autorepeat linux,keypad-no-autorepeat > samsung-keypad linux,input-no-autorepeat linux,keypad-no-autorepeat > stmpe-keypad st,no-autorepeat st,no-autorepeat > spear-keyboard autorepeat autorepeat > tca8418-keypad keypad,autorepeat --- not documented --- > gpio-matrix-keypad linux,no-autorepeat linux,no-autorepeat > gpio-keys-polled autorepeat autorepeat > gpio-keys autorepeat --- no documentation --- > > Any suggestions how to continue fixing this mess? I guess first of > all the documentation of omap4-keypad, samsung-keypad and of course > the new twl4030-keypad driver should be fixed. > > Next it would be nice to choose one standard property name for this > and use it for twl4030-keypad. I suggest to use "linux,input-no-autorepeat". I'd suggest just simple "autorepeat", so that we get rid of ugly double-negation. But I guess this is not too important as long as it is consistent... And I'm not even sure consistency is huge issue. Pavel -- (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html