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>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
dcc8545790
commit
08e6c61112
@@ -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) {
|
||||
|
Reference in New Issue
Block a user