usb: ohci: Don't log an error on interrupt packet timeout
authorHans de Goede <hdegoede@redhat.com>
Tue, 5 May 2015 21:56:14 +0000 (23:56 +0200)
committerSimon Glass <sjg@chromium.org>
Wed, 6 May 2015 18:48:36 +0000 (12:48 -0600)
Interrupts transfers timing out is normal, so do not log an error for this.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Acked-by: Marek Vasut <marex@denx.de>
drivers/usb/host/ohci-hcd.c

index 3744658e40d3388113d4958b9f2cd2c58647dcdb..494b76076111897512822b23ee4e59f0e07eb4d5 100644 (file)
@@ -1572,7 +1572,8 @@ static int submit_common_msg(ohci_t *ohci, struct usb_device *dev,
                                dbg("*");
 
                } else {
-                       err("CTL:TIMEOUT ");
+                       if (!usb_pipeint(pipe))
+                               err("CTL:TIMEOUT ");
                        dbg("submit_common_msg: TO status %x\n", stat);
                        urb->finished = 1;
                        stat = USB_ST_CRC_ERR;