usb: gadget: renesas_usbhs: add usbhs_dcp_dir_for_host()
[pandora-kernel.git] / drivers / usb / renesas_usbhs / fifo.c
index 328238c..b9ab8ae 100644 (file)
@@ -291,9 +291,13 @@ static int usbhsf_fifo_select(struct usbhs_pipe *pipe,
            usbhsf_fifo_is_busy(fifo))
                return -EBUSY;
 
-       if (usbhs_pipe_is_dcp(pipe))
+       if (usbhs_pipe_is_dcp(pipe)) {
                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);