Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1034377AbcJ0Xao (ORCPT ); Thu, 27 Oct 2016 19:30:44 -0400 Received: from host18.canaca.com ([66.49.204.205]:45552 "EHLO host18.canaca.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1034324AbcJ0Xaj (ORCPT ); Thu, 27 Oct 2016 19:30:39 -0400 Message-ID: In-Reply-To: References: <1477445172-2682-1-git-send-email-simon@mungewell.org> <24625977.TfGNBbEdyA@thora> Date: Thu, 27 Oct 2016 17:30:38 -0600 Subject: Re: [RFC] HID:hid-lg4ff: Delay to allow wheels to center after plug-in From: "Simon Wood" To: "Dmitry Torokhov" Cc: =?utf-8?B?Ik1pY2hhbCBNYWzDvSI=?= , "Simon Wood" , "linux-input@vger.kernel.org" , "lkml" , "Jiri Kosina" , "Edwin Velds" , "Elias Vanderstuyft" , "Simon Wood" User-Agent: SquirrelMail/1.5.2 [SVN] MIME-Version: 1.0 Content-Type: text/plain;charset=utf-8 Content-Transfer-Encoding: 8bit X-OutGoing-Spam-Status: No, score=-1.0 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - host18.canaca.com X-AntiAbuse: Original Domain - vger.kernel.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - mungewell.org X-Get-Message-Sender-Via: host18.canaca.com: authenticated_id: simon@mungewell.org X-Authenticated-Sender: host18.canaca.com: simon@mungewell.org X-Source: X-Source-Args: X-Source-Dir: X-From-Rewrite: unmodified, already matched Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 516 Lines: 15 On Wed, October 26, 2016 11:00 am, Dmitry Torokhov wrote: > > Yeah, if device happens to be plugged at boot time it will wait that > long before even getting to mount rootfs if driver is built into the > kernel. Not a case I had considered... that would probably be bad. I'll look at coding up a work queue as Elias had suggested. > > This is also interesting way to say "msleep(8000)". I'm a copy/paste guy, this was from the delay we have in hid-lg.c probe, if one way or another is better I'll use that, Simon