Commit d0cddae7 authored by Felipe Balbi's avatar Felipe Balbi

usb: musb: dsps: return error code if reset fails

if reset fails, we should return a *negative*
error code, not a positive value.
Tested-by: default avatarBin Liu <b-liu@ti.com>
Signed-off-by: default avatarFelipe Balbi <balbi@ti.com>
parent 28378d5e
......@@ -652,7 +652,7 @@ static int dsps_musb_reset(struct musb *musb)
session_restart = 1;
}
return !session_restart;
return session_restart ? 0 : -EPIPE;
}
static struct musb_platform_ops dsps_ops = {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment