MLK-10394 usb: chipidea: otg_fsm: turn off vbus when remove driver
authorLi Jun <jun.li@freescale.com>
Tue, 10 Mar 2015 07:26:46 +0000 (15:26 +0800)
committerNitin Garg <nitin.garg@nxp.com>
Mon, 19 Mar 2018 19:47:05 +0000 (14:47 -0500)
commit9c63b52a6143ed3a88a6f87788038d77639cbd44
tree5ce9dff8dc47b1096938c7b29fc141e391b71ece
parent10fcea331ad24ad9be1ed14d57c3f27170376655
MLK-10394 usb: chipidea: otg_fsm: turn off vbus when remove driver

Currently if remove controller driver while vbus is on, vbus turn off
is missing, thus next time loading controller driver will turn on vbus
again but will not generate AVV irq, finally otg fsm state is mess and
cannot work as host correctly.

Signed-off-by: Li Jun <jun.li@freescale.com>
(cherry picked from commit c810ab9697dd912ba2a928659879ace188d31c10)
drivers/usb/chipidea/otg_fsm.c