git.openpandora.org
/
pandora-kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
usb: gadget: renesas_usbhs: add usbhs_dcp_dir_for_host()
[pandora-kernel.git]
/
drivers
/
usb
/
renesas_usbhs
/
fifo.c
diff --git
a/drivers/usb/renesas_usbhs/fifo.c
b/drivers/usb/renesas_usbhs/fifo.c
index
328238c
..
b9ab8ae
100644
(file)
--- a/
drivers/usb/renesas_usbhs/fifo.c
+++ b/
drivers/usb/renesas_usbhs/fifo.c
@@
-291,9
+291,13
@@
static int usbhsf_fifo_select(struct usbhs_pipe *pipe,
usbhsf_fifo_is_busy(fifo))
return -EBUSY;
usbhsf_fifo_is_busy(fifo))
return -EBUSY;
- if (usbhs_pipe_is_dcp(pipe))
+ if (usbhs_pipe_is_dcp(pipe))
{
base |= (1 == write) << 5; /* ISEL */
base |= (1 == write) << 5; /* ISEL */
+ if (usbhs_mod_is_host(priv))
+ usbhs_dcp_dir_for_host(pipe, write);
+ }
+
/* "base" will be used below */
usbhs_write(priv, fifo->sel, base | MBW_32);
/* "base" will be used below */
usbhs_write(priv, fifo->sel, base | MBW_32);