usb: renesas_usbhs: inaccessible pipe is not an error
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Mon, 4 Jul 2011 00:42:47 +0000 (17:42 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 8 Jul 2011 22:07:24 +0000 (15:07 -0700)
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/renesas_usbhs/fifo.c

index 912ce62..406893e 100644 (file)
@@ -316,8 +316,11 @@ static int usbhsf_pio_try_push(struct usbhs_pkt *pkt, int *is_done)
                return 0;
 
        ret = usbhs_pipe_is_accessible(pipe);
-       if (ret < 0)
+       if (ret < 0) {
+               /* inaccessible pipe is not an error */
+               ret = 0;
                goto usbhs_fifo_write_busy;
+       }
 
        ret = usbhsf_fifo_barrier(priv, fifo);
        if (ret < 0)