Skip to content

Commit

Permalink
usb: renesas_usbhs: remove superfluous usbhs_lock from recip handler
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Kuninori Morimoto authored and Felipe Balbi committed Dec 12, 2011
1 parent 7177aed commit 4b81593
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions drivers/usb/renesas_usbhs/mod_gadget.c
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 4b81593

Please sign in to comment.