Skip to content

Commit

Permalink
usb: renesas_usbhs: inaccessible pipe is not an error
Browse files Browse the repository at this point in the history
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Kuninori Morimoto authored and Greg Kroah-Hartman committed Jul 8, 2011
1 parent 9a12d09 commit 4ef85e0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion drivers/usb/renesas_usbhs/fifo.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 4ef85e0

Please sign in to comment.