usb: renesas_usbhs: remove superfluous usbhs_lock from recip handler
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Fri, 25 Nov 2011 01:27:19 +0000 (17:27 -0800)
committerFelipe Balbi <balbi@ti.com>
Mon, 12 Dec 2011 09:45:14 +0000 (11:45 +0200)
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: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/renesas_usbhs/mod_gadget.c

index c307c8f5bd3a058a2bbdc614761c6758925674e6..9a9e36378e87adc822fd465a6cc9125df8656ade 100644 (file)
@@ -327,15 +327,8 @@ static int usbhsg_recip_run_handle(struct usbhs_priv *priv,
        }
 
        if (func) {
-               unsigned long flags;
-
                dev_dbg(dev, "%s (pipe %d :%s)\n", handler->name, nth, msg);
-
-               /********************  spin lock ********************/
-               usbhs_lock(priv, flags);
                ret = func(priv, uep, ctrl);
-               usbhs_unlock(priv, flags);
-               /********************  spin unlock ******************/
        }
 
 usbhsg_recip_run_handle_end: