|
|
@@ -357,9 +357,9 @@ int usb_control_msg(struct usb_device *dev, unsigned int pipe,
|
|
|
* been completed.
|
|
|
*/
|
|
|
while (timeout--) {
|
|
|
+ TIMER_Mdelay(1);
|
|
|
if (!(dev->status & USB_ST_NOT_PROC))
|
|
|
break;
|
|
|
- TIMER_Mdelay(1);
|
|
|
}
|
|
|
if (dev->status)
|
|
|
return -1;
|
|
|
@@ -382,9 +382,9 @@ int usb_bulk_msg(struct usb_device *dev, unsigned int pipe,
|
|
|
if (submit_bulk_msg(dev, pipe, data, len) < 0)
|
|
|
return -EIO;
|
|
|
while (timeout--) {
|
|
|
+ TIMER_Mdelay(1);
|
|
|
if (!(dev->status & USB_ST_NOT_PROC))
|
|
|
break;
|
|
|
- TIMER_Mdelay(1);
|
|
|
}
|
|
|
*actual_length = dev->act_len;
|
|
|
if (dev->status == 0)
|