usb: chipidea: Drop lock across event_notify during gadget stop
authorStephen Boyd <stephen.boyd@linaro.org>
Wed, 28 Dec 2016 22:57:08 +0000 (14:57 -0800)
committerPeter Chen <peter.chen@nxp.com>
Fri, 20 Jan 2017 07:27:43 +0000 (15:27 +0800)
commitafff6067b305697dd4b3b2f2d8b2dd5da78539c8
tree76f7fe7b63b8fa4fb292e25d35c8208cb20889a9
parented04f19f28ff4900fe9d26b03e5c14600c072391
usb: chipidea: Drop lock across event_notify during gadget stop

The CI_HDRC_CONTROLLER_STOPPED_EVENT may want to call sleeping
APIs similar to how _gadget_stop_activity() may. Let's drop the
lock across the event so that glue drivers can make sleeping
calls.

Cc: Peter Chen <peter.chen@nxp.com>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Stephen Boyd <stephen.boyd@linaro.org>
Signed-off-by: Peter Chen <peter.chen@nxp.com>
drivers/usb/chipidea/udc.c