|
From: Daniel D. <da...@re...> - 2010-07-06 03:43:42
|
El 25/06/10 17:04, Peter Stuge escribió: > The former patch changed the reap code path when URB submission had > failed. This patch instead changes the code path directly after > submission, and if errno == EREMOTEIO then the reap code is > instructed that all is well via reap_action = COMPLETED_EARLY. > > (libusb already handles this situation correctly when all URBs get > submitted and one completes early.) > > While my guess is that the former patch would work for Ludovic this > one is much more correct. Please test it! This patch would probably work OK but it isn't quite correct. If the 3rd URB fails with EREMOTEIO, the code immediately below your patch will try and cancel URBs 1 and 2. That's probably harmless, but it would be logical and simple to avoid that. Daniel |