]> git.baikalelectronics.ru Git - kernel.git/commit
usb: musb: Fix locking errors for host only mode
authorTony Lindgren <tony@atomide.com>
Fri, 26 Aug 2016 21:28:39 +0000 (16:28 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 30 Aug 2016 12:11:38 +0000 (14:11 +0200)
commitf958e94ad8c33245969ba468257e9ffd64f0d2f8
tree0354939074ae45d09c7c73a156bb1fb58cfc9356
parentb348653b22b2066280642c3d5f60b6194dfddd86
usb: musb: Fix locking errors for host only mode

If we have USB gadgets disabled and USB_MUSB_HOST set, we get
errors "possible irq lock inverssion dependency detected"
errors during boot.

Let's fix the issue by adding start_musb flag and start
the controller after we're out of the spinlock protected
section.

Reported-by: Ladislav Michl <ladis@linux-mips.org>
Tested-by: Ladislav Michl <ladis@linux-mips.org>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Bin Liu <b-liu@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/musb/musb_virthub.c