[PATCH] USB OTG: ohci reset updates (2/5)
commit6c932443172df7788662bd2ebe158a866a97f701
authorDavid Brownell <david-b@pacbell.net>
Tue, 24 Aug 2004 04:55:24 +0000 (23 21:55 -0700)
committerGreg Kroah-Hartman <greg@kroah.com>
Tue, 24 Aug 2004 04:55:24 +0000 (23 21:55 -0700)
tree56d746b7449e0148a0360ed00f2dfe9bc2b94308
parent2b33fdb4e2ba5f723e8d304f97c1a6afcaff2561
[PATCH] USB OTG: ohci reset updates (2/5)

Generic OTG and reset support for OTG.

 - Declare and use a start_hnp() board-specific procedure.  The OMAP
   implementation will come separately, it can't yet be configured.

 - When OTG is configured, implement the usb_bus_start_enum() hook;
   that just starts a root port reset.

 - When some task (usually khubd) resets a root port, make sure it takes
   the full 50 msec.  The OHCI reset timer is in hardware, and the host
   may need to issue multiple resets to guard against concurrent resume.

 - For backward compatibility, don't kick in the new 50 msec logic unless
   it could be needed:  without CONFIG_USB_SUSPEND, nothing will suspend
   so nothing could resume.  Which is good, at least until we start to
   measure how long a reset takes ... it seems chip-specific.

Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
drivers/usb/host/ohci-hub.c
drivers/usb/host/ohci-omap.c
drivers/usb/host/ohci-pci.c
drivers/usb/host/ohci-q.c