]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
usb: chipidea: Remove locking in ci_udc_start()
authorStephen Boyd <stephen.boyd@linaro.org>
Wed, 28 Dec 2016 22:56:54 +0000 (14:56 -0800)
committerPeter Chen <peter.chen@nxp.com>
Fri, 20 Jan 2017 03:25:10 +0000 (11:25 +0800)
commit732a4af85e87091dee130669de8ce50727fd28b4
treec19e3187b75820589b2bb9eead740832f977c594
parentb90a17c5ba81bc34cf2becab49a1a2eeff45c70b
usb: chipidea: Remove locking in ci_udc_start()

We don't call hw_device_reset() with the ci->lock held, so it
doesn't seem like this lock here is protecting anything. Let's
just remove it. This allows us to call sleeping functions like
phy_init() from within the CI_HDRC_CONTROLLER_RESET_EVENT hook.

Acked-by: 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