summaryrefslogtreecommitdiffstats
path: root/drivers/usb
diff options
context:
space:
mode:
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>2011-07-04 02:42:47 +0200
committerGreg Kroah-Hartman <gregkh@suse.de>2011-07-09 00:07:24 +0200
commit4ef85e0f697051829179c4fdeda1bd3f4166dc17 (patch)
tree34ffc9c10e918a5023399a904c6d3215136e61b0 /drivers/usb
parentusb: renesas_usbhs: care buff alignment when dma handler (diff)
downloadlinux-4ef85e0f697051829179c4fdeda1bd3f4166dc17.tar.xz
linux-4ef85e0f697051829179c4fdeda1bd3f4166dc17.zip
usb: renesas_usbhs: inaccessible pipe is not an error
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb')
-rw-r--r--drivers/usb/renesas_usbhs/fifo.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/usb/renesas_usbhs/fifo.c b/drivers/usb/renesas_usbhs/fifo.c
index 912ce62279a6..406893e4422b 100644
--- a/drivers/usb/renesas_usbhs/fifo.c
+++ b/drivers/usb/renesas_usbhs/fifo.c
@@ -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)