usb: dwc2: fix call to vbus supply exit routine, call it unlocked
authorFabrice Gasnier <fabrice.gasnier@st.com>
Wed, 5 Sep 2018 11:40:04 +0000 (13:40 +0200)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Tue, 2 Oct 2018 07:37:26 +0000 (10:37 +0300)
commit5aa678c7fd5371769efde30763fb43a43a118cd0
tree58cf483ed19a57e7a5b7fcd42371a757a2fdf905
parent41ee1ea21052583eaf5487dfa0d0c907c9667548
usb: dwc2: fix call to vbus supply exit routine, call it unlocked

dwc2_vbus_supply_exit() may call regulator_disable(). It shouldn't be
called with interrupts disabled as it might sleep.
This is seen with DEBUG_ATOMIC_SLEEP=y.

Fixes: 531ef5ebea96 ("usb: dwc2: add support for host mode external
vbus supply")

Tested-by: Artur Petrosyan <arturp@synopsys.com>
Acked-by: Minas Harutyunyan <hminas@synopsys.com>
Signed-off-by: Fabrice Gasnier <fabrice.gasnier@st.com>
Signed-off-by: Amelie Delaunay <amelie.delaunay@st.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
drivers/usb/dwc2/hcd.c