]> git.hungrycats.org Git - linux/commit
[PATCH] USB: re-factor enumeration/reset paths
authorDavid Brownell <david-b@pacbell.net>
Mon, 9 Feb 2004 04:16:07 +0000 (20:16 -0800)
committerGreg Kroah-Hartman <greg@kroah.com>
Mon, 9 Feb 2004 04:16:07 +0000 (20:16 -0800)
commitbc7e061c860f4bb766c3b013c4c554cb01d87290
tree0716c80ae2fedfaaff76c2785fcc574d37efde6b
parentfb0dfb43795b85662a0a342691539e7e4273dce6
[PATCH] USB: re-factor enumeration/reset paths

This patch starts dis-entangling some of the enumeration logic by
moving initialization code into the usb_alloc_dev() constructor.
Some call signatures changed; a usbcore-internal declaration was
moved in <linux/usb.h> to a more appropriate location.

With the driver model init now more centralized, it's safer to
use driver model calls (including dev_info) a lot earlier, so
the "new device at address N" message now does that.  It also
reports the device speed, which may not be evident otherwise.
drivers/usb/core/hcd.c
drivers/usb/core/hcd.h
drivers/usb/core/hub.c
drivers/usb/core/usb.c
drivers/usb/host/ehci-hcd.c
drivers/usb/host/hc_sl811_rh.c
drivers/usb/host/ohci-hcd.c
drivers/usb/host/uhci-hcd.c
include/linux/usb.h