diff options
author | Ramneek Mehresh <ramneek.mehresh@freescale.com> | 2013-04-11 11:30:28 (GMT) |
---|---|---|
committer | Xie Xiaobo <xiaobo.xie@nxp.com> | 2017-09-25 07:25:26 (GMT) |
commit | 3b197ebd0cee9a45dbb1f74b5b348d3c671c4bdf (patch) | |
tree | 83adbaaebc1d6be9b9e9c2b002f70df8364ac1ba /drivers | |
parent | 52369edd8d1899e2ff3f1c630fec53b957fc8e1c (diff) | |
download | linux-3b197ebd0cee9a45dbb1f74b5b348d3c671c4bdf.tar.xz |
usb: phy: Modify otg_event to start host drv
Add mechanism to start host driver from inside fsl_otg_event
upon each id change interrupt
Signed-off-by: Ramneek Mehresh <ramneek.mehresh@freescale.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/usb/phy/phy-fsl-usb.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/usb/phy/phy-fsl-usb.c b/drivers/usb/phy/phy-fsl-usb.c index 9b1f897..5207d68 100644 --- a/drivers/usb/phy/phy-fsl-usb.c +++ b/drivers/usb/phy/phy-fsl-usb.c @@ -672,6 +672,10 @@ static void fsl_otg_event(struct work_struct *work) fsl_otg_start_host(fsm, 0); otg_drv_vbus(fsm, 0); fsl_otg_start_gadget(fsm, 1); + } else { + fsl_otg_start_gadget(fsm, 0); + otg_drv_vbus(fsm, 1); + fsl_otg_start_host(fsm, 1); } } |