From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753410AbdJSWsb (ORCPT ); Thu, 19 Oct 2017 18:48:31 -0400 Received: from mail-pf0-f194.google.com ([209.85.192.194]:51305 "EHLO mail-pf0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751898AbdJSWs2 (ORCPT ); Thu, 19 Oct 2017 18:48:28 -0400 X-Google-Smtp-Source: ABhQp+TTAqEIzLK2MYyxa8HLD9aTyeL+8QvH5YMq7QPNgq5qzBWk5tIsrfNJV6ccPRZfFt0pGxUiQA== Date: Thu, 19 Oct 2017 15:48:25 -0700 From: Dmitry Torokhov To: Kees Cook Cc: Mauro Carvalho Chehab , Hans Verkuil , Sakari Ailus , Geliang Tang , linux-input , linux-media@vger.kernel.org, LKML Subject: Re: [PATCH] media: input: Convert timers to use timer_setup() Message-ID: <20171019224825.h54muomkruk4wtgn@dtor-ws> References: <20171016231443.GA100011@beast> <20171019223246.2wsgr6in7oigq6da@dtor-ws> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20170609 (1.8.3) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Oct 19, 2017 at 03:45:38PM -0700, Kees Cook wrote: > On Thu, Oct 19, 2017 at 3:32 PM, Dmitry Torokhov > wrote: > > On Mon, Oct 16, 2017 at 04:14:43PM -0700, Kees Cook wrote: > >> In preparation for unconditionally passing the struct timer_list pointer to > >> all timer callbacks, switch to using the new timer_setup() and from_timer() > >> to pass the timer pointer explicitly. > >> > >> One input_dev user hijacks the input_dev software autorepeat timer to > >> perform its own repeat management. However, there is no path back to the > >> existing status variable, so add a generic one to the input structure and > >> use that instead. > > > > That is too bad and it should not be doing this. I'd rather av7110 used > > its own private timer for that. > > Yeah, that was a pretty weird case. I couldn't see how to avoid it, > though. I didn't see a way to hook the autorepeat, but I'm not too > familiar with the code here. You just need to manage the private timer in the driver and not mess up with the input core if input core's autorepeat does not provide the desired behavior... Thanks. -- Dmitry