usb: gadget: pch_udc: Fix disconnect issue
authorTomoya MORINAGA <tomoya.rohm@gmail.com>
Thu, 12 Jan 2012 02:27:05 +0000 (11:27 +0900)
committerLuis Henriques <luis.henriques@canonical.com>
Mon, 30 Apr 2012 18:15:11 +0000 (19:15 +0100)
commit63cb2f1f53f1d9f105d123e1a5198b3bce3d8355
tree905ec8d93a0cb757ab3b0f95518900a20eeb90d9
parentcb24b1802d6f6dda5742c761c72be76d9bc311f0
usb: gadget: pch_udc: Fix disconnect issue

BugLink: http://bugs.launchpad.net/bugs/987337

commit c50a3bff0edb0acd49d8033a12ea4668e09a31ad upstream.

ISSUE:
When the driver notifies a gadget of a disconnect event, a system
rarely freezes.

CAUSE:
When the driver calls dev->driver->disconnect(), it is not calling
spin_unlock().

Signed-off-by: Tomoya MORINAGA <tomoya.rohm@gmail.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
drivers/usb/gadget/pch_udc.c