summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Chen <peter.chen@freescale.com>2015-06-23 16:04:57 +0800
committerPeter Chen <peter.chen@freescale.com>2015-06-24 16:36:49 +0800
commita4dec7730c98f2639fe250a1a67f782b6f73bdf5 (patch)
tree7dd5274ede5a46c81aa2bcbfcb6ebadceda0eb67
parent8d0ca70bdac986f5886ba8ccfff46a41e7a555ec (diff)
MLK-11151 usb: chipidea: otg: drive vbus off if fsm.drv_vbus is truerel_imx_3.14.38_6qp_beta
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>
-rw-r--r--drivers/usb/chipidea/otg_fsm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/chipidea/otg_fsm.c b/drivers/usb/chipidea/otg_fsm.c
index 13fc169ef76d..ceed9bbd898f 100644
--- a/drivers/usb/chipidea/otg_fsm.c
+++ b/drivers/usb/chipidea/otg_fsm.c
@@ -943,7 +943,7 @@ void ci_hdrc_otg_fsm_remove(struct ci_hdrc *ci)
ci->enabled_otg_timer_bits = 0;
/* Turn off vbus if vbus is on */
- if (ci->fsm.a_vbus_vld)
+ if (ci->fsm.drv_vbus)
otg_drv_vbus(&ci->fsm, 0);
sysfs_remove_group(&ci->dev->kobj, &inputs_attr_group);