summaryrefslogtreecommitdiffstats
path: root/drivers/usb/renesas_usbhs/mod_gadget.c
diff options
context:
space:
mode:
authorKuninori Morimoto2011-10-11 07:05:30 +0200
committerFelipe Balbi2011-10-13 19:41:46 +0200
commit6e6db82ba9bf2d5912897f77ccf6902cb8543372 (patch)
treee59b3c6280bba0a33a3115bf71bd02f50166f61a /drivers/usb/renesas_usbhs/mod_gadget.c
parentusb: gadget: renesas_usbhs: disable auto paket start on usbhs_pkt_push() (diff)
downloadkernel-qcow2-linux-6e6db82ba9bf2d5912897f77ccf6902cb8543372.tar.gz
kernel-qcow2-linux-6e6db82ba9bf2d5912897f77ccf6902cb8543372.tar.xz
kernel-qcow2-linux-6e6db82ba9bf2d5912897f77ccf6902cb8543372.zip
usb: gadget: renesas_usbhs: modify pipe sequence settings
renesas_usbhs can manually set DATA0/DATA1. This patch is prepare for mod_host support Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/renesas_usbhs/mod_gadget.c')
-rw-r--r--drivers/usb/renesas_usbhs/mod_gadget.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/usb/renesas_usbhs/mod_gadget.c b/drivers/usb/renesas_usbhs/mod_gadget.c
index d3d833bce5f4..4cc7ee0babc6 100644
--- a/drivers/usb/renesas_usbhs/mod_gadget.c
+++ b/drivers/usb/renesas_usbhs/mod_gadget.c
@@ -265,7 +265,7 @@ static int usbhsg_recip_handler_std_clear_endpoint(struct usbhs_priv *priv,
if (!usbhsg_status_has(gpriv, USBHSG_STATUS_WEDGE)) {
usbhs_pipe_disable(pipe);
- usbhs_pipe_clear_sequence(pipe);
+ usbhs_pipe_sequence_data0(pipe);
usbhs_pipe_enable(pipe);
}
@@ -479,7 +479,7 @@ static int usbhsg_ep_enable(struct usb_ep *ep,
*/
if (uep->pipe) {
usbhs_pipe_clear(uep->pipe);
- usbhs_pipe_clear_sequence(uep->pipe);
+ usbhs_pipe_sequence_data0(uep->pipe);
return 0;
}