diff options
author | Ramneek Mehresh <ramneek.mehresh@freescale.com> | 2013-04-11 11:30:28 (GMT) |
---|---|---|
committer | Fleming Andrew-AFLEMING <AFLEMING@freescale.com> | 2013-04-29 15:31:50 (GMT) |
commit | 38e367f9bf6b2ea4536c65b2309e593aa9d08b55 (patch) | |
tree | e0d9ac83b9c051026818086f75165bfdb46feac2 /drivers/usb | |
parent | 3b60d871cca0abe1c72b81b43c84bd8fa0610497 (diff) | |
download | linux-fsl-qoriq-38e367f9bf6b2ea4536c65b2309e593aa9d08b55.tar.xz |
fsl/otg: Modify otg_event to start host drv
Add mechanism to start host driver from inside fsl_otg_event
upon each id change interrupt
Change-Id: I9cb80f9cf6a1fac66d7ea7d5af518f7b36447652
Signed-off-by: Ramneek Mehresh <ramneek.mehresh@freescale.com>
Reviewed-on: http://git.am.freescale.net:8181/1368
Reviewed-by: Fleming Andrew-AFLEMING <AFLEMING@freescale.com>
Tested-by: Fleming Andrew-AFLEMING <AFLEMING@freescale.com>
Diffstat (limited to 'drivers/usb')
-rw-r--r-- | drivers/usb/otg/fsl_otg.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/usb/otg/fsl_otg.c b/drivers/usb/otg/fsl_otg.c index 4d534eb..678e841 100644 --- a/drivers/usb/otg/fsl_otg.c +++ b/drivers/usb/otg/fsl_otg.c @@ -666,6 +666,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); } } |