ChangeSet 1.1743.3.2, 2004/05/24 17:02:10-07:00, [EMAIL PROTECTED]

[PATCH] USB: clean delays for ehci

Here's one you overlooked.

  - safe sleep helper


 drivers/usb/storage/transport.c |    3 +--
 1 files changed, 1 insertion(+), 2 deletions(-)


diff -Nru a/drivers/usb/storage/transport.c b/drivers/usb/storage/transport.c
--- a/drivers/usb/storage/transport.c   Fri May 28 14:41:46 2004
+++ b/drivers/usb/storage/transport.c   Fri May 28 14:41:46 2004
@@ -1112,8 +1112,7 @@
 
        /* long wait for reset, so unlock to allow disconnects */
        up(&us->dev_semaphore);
-       set_current_state(TASK_UNINTERRUPTIBLE);
-       schedule_timeout(HZ*6);
+       msleep(6000);
        down(&us->dev_semaphore);
        if (test_bit(US_FLIDX_DISCONNECTING, &us->flags)) {
                US_DEBUGP("Reset interrupted by disconnect\n");



-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g.
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id149&alloc_id�66&op=click
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to