From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Simon Wood" Subject: Re: [RFC] HID:hid-lg4ff: Delay to allow wheels to center after plug-in Date: Thu, 27 Oct 2016 17:30:38 -0600 Message-ID: References: <1477445172-2682-1-git-send-email-simon@mungewell.org> <24625977.TfGNBbEdyA@thora> Mime-Version: 1.0 Content-Type: text/plain;charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org To: Dmitry Torokhov Cc: =?utf-8?B?Ik1pY2hhbCBNYWzDvSI=?= , Simon Wood , "linux-input@vger.kernel.org" , lkml , Jiri Kosina , Edwin Velds , Elias Vanderstuyft , Simon Wood List-Id: linux-input@vger.kernel.org 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