OSDN Git Service

[PATCH] USB: usbcore sets up root hubs earlier
authorDavid Brownell <david-b@pacbell.net>
Mon, 23 Jan 2006 23:25:40 +0000 (15:25 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 20 Mar 2006 22:49:56 +0000 (14:49 -0800)
commitb1e8f0a6a8805c971857cd10a65cf8caa4c1a672
tree395b7a91cbd0d5eb10a4c7429d7db6255b097b48
parent1c05ad4447e4ecbd61647c102fb6f2f5a6634ff3
[PATCH] USB: usbcore sets up root hubs earlier

Make the HCD initialization sequence more sane ... notably, setting up
root hubs before HCDs are asked to do their one-time init.  Among other
things, that lets the HCDs do custom root hub init along with all the
other one-time initialization done in the (now misnamed) reset() method.

This also copies the controller wakeup flags into the root hub; it's
done a bit later than would be ideal, but that'll be necessary until
the PCI code initializes them correctly.  (The PCI patch breaks on PPC
due to how it sequences PCI initialization.)

Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/core/hcd.c