Re: [PATCH RFC] USB: Add HCD fastboot

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Simon Arlott
Date: Wednesday, August 6, 2008 - 3:53 pm

On 06/08/08 23:34, Alan Stern wrote:

Well, putting usb/ before net/ etc. requires that usb/host/ is the usb/stuff/ or 
they'll all wait until they can probe for devices.


Host init is before device init, as that's the Makefile link order. Any device 
init causes it to wait for *all* devices, so swapping them around means devices 
are going to appear at any time after that - there's no device initcall to make 
it block. Presumably it would be possible to have a late_initcall (which would 
be early in that list if usb was earlier) that could ensure khubd had finished 
[its current queue] before continuing - as if there was a device driver initcall?

If someone currently has HCD init compiled in but nothing else, then the boot 
process would block unnecessarily... the initcall would need to be disabled 
in that case to maintain existing behaviour - which is why it probably needs 
to be a config option, which requires some mess in the Makefile or a new 
initcall type.


It seems like there's always going to be a stage where there's no keyboard...


I don't know where you got that from - they're definitely all compiled in. 
Whichever is first to have its initcall run is blocked, and the logs may have 
been from a test of that.

-- 
Simon Arlott
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [patch 5/3] fastboot: sync the async execution before ..., Arjan van de Ven, (Sun Jul 20, 2:50 pm)
Re: [patch 5/3] fastboot: sync the async execution before ..., Arjan van de Ven, (Tue Jul 29, 2:04 pm)
Re: [patch 5/3] fastboot: sync the async execution before ..., Arjan van de Ven, (Tue Jul 29, 2:21 pm)
[PATCH RFC] USB: Add HCD fastboot, Simon Arlott, (Wed Aug 6, 11:40 am)
Re: [PATCH RFC] USB: Add HCD fastboot, Alan Stern, (Wed Aug 6, 12:11 pm)
Re: [PATCH RFC] USB: Add HCD fastboot, Simon Arlott, (Wed Aug 6, 12:20 pm)
Re: [PATCH RFC] USB: Add HCD fastboot, Greg KH, (Wed Aug 6, 12:29 pm)
Re: [PATCH RFC] USB: Add HCD fastboot, Alan Stern, (Wed Aug 6, 12:49 pm)
Re: [PATCH RFC] USB: Add HCD fastboot, Arjan van de Ven, (Wed Aug 6, 12:56 pm)
Re: [PATCH RFC] USB: Add HCD fastboot, Simon Arlott, (Wed Aug 6, 1:07 pm)
Re: [PATCH RFC] USB: Add HCD fastboot, Alan Stern, (Wed Aug 6, 1:09 pm)
Re: [PATCH RFC] USB: Add HCD fastboot, Arjan van de Ven, (Wed Aug 6, 1:17 pm)
Re: [PATCH RFC] USB: Add HCD fastboot, Alan Stern, (Wed Aug 6, 1:26 pm)
Re: [PATCH RFC] USB: Add HCD fastboot, Alan Stern, (Wed Aug 6, 1:27 pm)
Re: [PATCH RFC] USB: Add HCD fastboot, Simon Arlott, (Wed Aug 6, 2:49 pm)
Re: [PATCH RFC] USB: Add HCD fastboot, Alan Stern, (Wed Aug 6, 3:34 pm)
Re: [PATCH RFC] USB: Add HCD fastboot, Simon Arlott, (Wed Aug 6, 3:53 pm)
Re: [PATCH RFC] USB: Add HCD fastboot, David Brownell, (Wed Aug 6, 8:29 pm)
Re: [PATCH RFC] USB: Add HCD fastboot, David Brownell, (Wed Aug 6, 8:34 pm)
Re: [PATCH RFC] USB: Add HCD fastboot, Emanoil Kotsev, (Thu Aug 7, 2:28 am)
Re: [PATCH RFC] USB: Add HCD fastboot, Alan Stern, (Thu Aug 7, 7:14 am)
Re: [PATCH RFC] USB: Add HCD fastboot, Alan Stern, (Thu Aug 7, 9:47 am)
Re: [PATCH RFC] USB: Add HCD fastboot, Rene Herman, (Fri Aug 8, 2:24 am)
Re: [PATCH RFC] USB: Add HCD fastboot, Simon Arlott, (Fri Aug 8, 4:29 am)
Re: [PATCH RFC] USB: Add HCD fastboot, Rene Herman, (Fri Aug 8, 7:30 am)