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)
commit2c5575401e34de3d2fc90af1c95bc73435784093
tree0354939074ae45d09c7c73a156bb1fb58cfc9356
parent3fa2a81e6e77f4308b4a3860aab2a1885a127f47
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