The Linux Kernel Mailing List
 help / color / mirror / Atom feed
From: Simon Arlott <simon@fire.lp0.eu>
To: Alan Stern <stern@rowland.harvard.edu>
Cc: Arjan van de Ven <arjan@infradead.org>,
	Kernel development list <linux-kernel@vger.kernel.org>,
	USB list <linux-usb@vger.kernel.org>
Subject: Re: Re  [patch 2/3] fastboot: turn the USB hostcontroller initcalls into async initcalls
Date: Sat, 19 Jul 2008 16:32:20 +0100	[thread overview]
Message-ID: <48820904.2090707@simon.arlott.org.uk> (raw)
In-Reply-To: <Pine.LNX.4.44L0.0807191116370.3491-100000@netrider.rowland.org>

On 19/07/08 16:25, Alan Stern wrote:
> On 18 July, 2008, Arjan van de Ven wrote:
> 
>> From: Arjan van de Ven <arjan@linux.intel.com>
>> Subject: [PATCH] fastboot: turn the USB hostcontroller initcalls into 
>> async initcalls
>> 
>> the USB host controller init calls take a long time, mostly due to a
>> "minimally 100 msec" delay *per port* during initialization.
>> These are prime candidates for going in parallel to everything else.
>> 
>> The USB device ordering is not affected by this due to the
>> serialized-within-eachother property of async initcalls.
> 
> Is there some reason this patch wasn't posted to the linux-usb mailing
> list as well as to LKML?
> 
> Where is this "minimally 100 msec" per-port delay you refer to?  
> Offhand I can't recall any such delays in the init routines.
> 

usb/core/hub.c:

/* USB 2.0 spec, 7.1.7.3 / fig 7-29:
 *
 * Between connect detection and reset signaling there must be a delay
 * of 100ms at least for debounce and power-settling.  The corresponding
 * timer shall restart whenever the downstream port detects a disconnect.
 *
 * Apparently there are some bluetooth and irda-dongles and a number of
 * low-speed devices for which this debounce period may last over a second.
 * Not covered by the spec - but easy to deal with.
 *
 * This implementation uses a 1500ms total debounce timeout; if the
 * connection isn't stable by then it returns -ETIMEDOUT.  It checks
 * every 25ms for transient disconnects.  When the port status has been
 * unchanged for 100ms it returns the port status.
 */

Could it do that for all ports on the hub in parallel instead?

-- 
Simon Arlott

  reply	other threads:[~2008-07-19 15:32 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-07-19 15:25 Re [patch 2/3] fastboot: turn the USB hostcontroller initcalls into async initcalls Alan Stern
2008-07-19 15:32 ` Simon Arlott [this message]
2008-07-19 20:35   ` Alan Stern
2008-07-19 15:39 ` Arjan van de Ven
2008-07-19 20:27   ` Alan Stern

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=48820904.2090707@simon.arlott.org.uk \
    --to=simon@fire.lp0.eu \
    --cc=arjan@infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-usb@vger.kernel.org \
    --cc=stern@rowland.harvard.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox