MLK-11151 usb: chipidea: otg: drive vbus off if fsm.drv_vbus is true
authorPeter Chen <peter.chen@freescale.com>
Tue, 23 Jun 2015 08:04:57 +0000 (16:04 +0800)
committerNitin Garg <nitin.garg@nxp.com>
Mon, 19 Mar 2018 19:47:17 +0000 (14:47 -0500)
commita4a6a63dab133da3f156cb773be98a603d6da558
treede7cf7a1eaa41d0471d8994103959896d4a109be
parenta7fe88dfdf2ddfa6b532c44baa31be2788891d39
MLK-11151 usb: chipidea: otg: drive vbus off if fsm.drv_vbus is true

The current condition may not true even we have driven vbus on already.
The vbus drive operation may be async, eg through i2c gpio expendor,
so the vbus may not be valid when we unload usb module.

We meet this issue when we do fast load/unload usb module test.

Signed-off-by: Peter Chen <peter.chen@freescale.com>
(cherry picked from commit c0cdff8472c38e0fc39c597148d5534a5e9cc9b1)
drivers/usb/chipidea/otg_fsm.c