]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
USB: Avoid 20ms delay in EHCI resume
authorVikram Pandita <vikram.pandita@ti.com>
Fri, 24 Oct 2008 18:11:30 +0000 (23:41 +0530)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 7 Jan 2009 17:59:50 +0000 (09:59 -0800)
commit3a4e72cbf2ac4435630a2b03bd25e60ef5967e99
tree9e52159e2e759cd0b31ad1c67c6c85da1a08075c
parent8e8ce4b642ce4beb865fb1d67cd8ea883d9ae7d7
USB: Avoid 20ms delay in EHCI resume

For function ehci_bus_resume()
- Added flag resume_needed
  No need to wait for 20ms if no port was suspended

- Change mdelay to msleep

- release and reacquire the spinlock around mdelay

Signed-off-by: vikram pandita <vikram.pandita@ti.com>
Acked-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/host/ehci-hub.c