提交 d0cddae7 编写于 作者: F 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: NBin Liu <b-liu@ti.com>
Signed-off-by: NFelipe Balbi <balbi@ti.com>
上级 28378d5e
...@@ -652,7 +652,7 @@ static int dsps_musb_reset(struct musb *musb) ...@@ -652,7 +652,7 @@ static int dsps_musb_reset(struct musb *musb)
session_restart = 1; session_restart = 1;
} }
return !session_restart; return session_restart ? 0 : -EPIPE;
} }
static struct musb_platform_ops dsps_ops = { static struct musb_platform_ops dsps_ops = {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册