diff options
author | Kuninori Morimoto <morimoto.kuninori@renesas.com> | 2011-06-09 16:48:25 +0900 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2011-06-14 14:23:23 -0700 |
commit | 08e6c611123ab499757e4133df7ddc0875c0dccf (patch) | |
tree | e763cc68029233eaabaca44c25106fd62997ae05 /drivers/usb/renesas_usbhs/mod_gadget.c | |
parent | dcc854579059ff9633db4dc41c681371d22f794e (diff) | |
download | op-kernel-dev-08e6c611123ab499757e4133df7ddc0875c0dccf.zip op-kernel-dev-08e6c611123ab499757e4133df7ddc0875c0dccf.tar.gz |
usb: renesas_usbhs: fixup connection fail
Sometimes the connection fail happen on renesas_usbhs.
This patch fix it up.
Signed-off-by: Kuninori Morimoto <morimoto.kuninori@renesas.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/renesas_usbhs/mod_gadget.c')
-rw-r--r-- | drivers/usb/renesas_usbhs/mod_gadget.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/usb/renesas_usbhs/mod_gadget.c b/drivers/usb/renesas_usbhs/mod_gadget.c index 46e247a..aa591b6 100644 --- a/drivers/usb/renesas_usbhs/mod_gadget.c +++ b/drivers/usb/renesas_usbhs/mod_gadget.c @@ -462,8 +462,11 @@ static int usbhsg_ep_enable(struct usb_ep *ep, * if it already have pipe, * nothing to do */ - if (uep->pipe) + if (uep->pipe) { + usbhs_pipe_clear(uep->pipe); + usbhs_pipe_clear_sequence(uep->pipe); return 0; + } pipe = usbhs_pipe_malloc(priv, desc); if (pipe) { |