提交 4b815932 编写于 作者: K Kuninori Morimoto 提交者: Felipe Balbi

usb: renesas_usbhs: remove superfluous usbhs_lock from recip handler

recip handler will call various functions which are holding
usbhs_lock.

This patch removes superfluous usbhs_lock from recip handler
to escape double lock.

[ balbi@ti.com : brushed up commit log a bit ]
Signed-off-by: NKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: NFelipe Balbi <balbi@ti.com>
上级 7177aed4
...@@ -327,15 +327,8 @@ static int usbhsg_recip_run_handle(struct usbhs_priv *priv, ...@@ -327,15 +327,8 @@ static int usbhsg_recip_run_handle(struct usbhs_priv *priv,
} }
if (func) { if (func) {
unsigned long flags;
dev_dbg(dev, "%s (pipe %d :%s)\n", handler->name, nth, msg); dev_dbg(dev, "%s (pipe %d :%s)\n", handler->name, nth, msg);
/******************** spin lock ********************/
usbhs_lock(priv, flags);
ret = func(priv, uep, ctrl); ret = func(priv, uep, ctrl);
usbhs_unlock(priv, flags);
/******************** spin unlock ******************/
} }
usbhsg_recip_run_handle_end: usbhsg_recip_run_handle_end:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册