[haiku-commits] r38982 - haiku/trunk/src/add-ons/kernel/bus_managers/usb

  • From: philippe.houdoin@xxxxxxxxx
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Sat, 16 Oct 2010 12:50:57 +0200 (CEST)

Author: phoudoin
Date: 2010-10-16 12:50:57 +0200 (Sat, 16 Oct 2010)
New Revision: 38982
Changeset: http://dev.haiku-os.org/changeset/38982
Ticket: http://dev.haiku-os.org/ticket/6173

Modified:
   haiku/trunk/src/add-ons/kernel/bus_managers/usb/Pipe.cpp
Log:
Increase request timeout so that slow (read old USB 1.0?\195?\131) devices got 
enough time to 
startup before being able to reply initial configuration request.
This fix #6173.


Modified: haiku/trunk/src/add-ons/kernel/bus_managers/usb/Pipe.cpp
===================================================================
--- haiku/trunk/src/add-ons/kernel/bus_managers/usb/Pipe.cpp    2010-10-16 
08:34:29 UTC (rev 38981)
+++ haiku/trunk/src/add-ons/kernel/bus_managers/usb/Pipe.cpp    2010-10-16 
10:50:57 UTC (rev 38982)
@@ -339,7 +339,7 @@
 
        // The sem will be released unconditionally in the callback after the
        // result data was filled in. Use a 1 second timeout for control 
transfers.
-       if (acquire_sem_etc(fNotifySem, 1, B_RELATIVE_TIMEOUT, 1000000) < B_OK) 
{
+       if (acquire_sem_etc(fNotifySem, 1, B_RELATIVE_TIMEOUT, 2000000) < B_OK) 
{
                TRACE_ERROR("timeout waiting for queued request to complete\n");
 
                CancelQueuedTransfers(false);


Other related posts: