From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tony Lindgren Subject: Re: [PATCH 4/4] omap4-droid4: Use software debounce for gpio-keys Date: Fri, 18 May 2018 07:32:59 -0700 Message-ID: <20180518143259.GW98604@atomide.com> References: <20180517233542.30629-1-tony@atomide.com> <20180517233542.30629-5-tony@atomide.com> <20180518072109.GA31304@amd> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <20180518072109.GA31304@amd> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=m.gmane.org@lists.infradead.org To: Pavel Machek Cc: Nishanth Menon , Tero Kristo , Grygorii Strashko , Marcel Partap , Dave Gerlach , Keerthy , Merlijn Wajer , Sebastian Reichel , Kalle Valo , NeKit , Eyal Reizer , Ash Charles , Michael Scott , linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org List-Id: linux-omap@vger.kernel.org * Pavel Machek [180518 07:23]: > BTW, did you notice that debouncing is wrong on most of the keyboard? > If you double click a key (most will do, for example "J") it will fail > to recognize second release and instead of expected "jj", you get > autorepeat ("jjjjjjjjjjjjjjjjjjjjjj..."). Hmm OK I have not seen that one. > Ok, I guess main keyboard is not on GPIO... No it's using omap4-keypad.c. > > @@ -128,6 +128,7 @@ > > gpios = <&gpio5 26 GPIO_ACTIVE_LOW>; /* gpio154 */ > > linux,code = ; > > linux,can-disable; > > + debounce-interval = <10>; > > I'd say this subtlety is worth a comment. Good idea, I'll add a comment "Value above 7.95ms for no GPIO hardware debounce". I'll do it also for duovero. Regards, Tony