summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAbhishek Aggarwal <aaggarwal@nvidia.com>2010-08-03 18:53:44 +0530
committerGary King <gking@nvidia.com>2010-08-03 10:08:58 -0700
commit50b4cb2f36c488ade2c1bbe8bab2f356479e64f9 (patch)
tree2b1dcfdcc7bb4a048bd5e24fa3512885dbe50744
parent6db49fce8ae4093b5b3ee3f652ca6630930b9df5 (diff)
usb gadget: restarting controller on cable connect in non-OTG mode
On cable disconnect, the controller was stopped but on cable connect it was restarted only if OTG is enabled. Due to this for non-OTG mode, the USB device was not working after disconnecting and re-connecting the cable. Fixed this by restarting the controller for both OTG and non-OTG modes. Bug: 717685 Change-Id: I4ba83e96cfe9a559b203615a2d78d0ed582a20a7 Reviewed-on: http://git-master/r/4708 Tested-by: Abhishek Aggarwal <aaggarwal@nvidia.com> Reviewed-by: Hanumanth Venkateswa Moganty <vmoganty@nvidia.com> Reviewed-by: Gary King <gking@nvidia.com>
-rw-r--r--[-rwxr-xr-x]drivers/usb/gadget/fsl_udc_core.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/usb/gadget/fsl_udc_core.c b/drivers/usb/gadget/fsl_udc_core.c
index 52b006e972f6..31d6f84a10d8 100755..100644
--- a/drivers/usb/gadget/fsl_udc_core.c
+++ b/drivers/usb/gadget/fsl_udc_core.c
@@ -2082,8 +2082,7 @@ static void fsl_udc_irq_work(struct work_struct* irq_work)
/* set vbus active and enable the usb clocks */
udc->vbus_active = 1;
platform_udc_clk_resume();
- if (udc->transceiver)
- fsl_udc_restart(udc);
+ fsl_udc_restart(udc);
/* Schedule work to wait for 1000 msec and check for
* charger if setup packet is not received */
schedule_delayed_work(&udc->work, USB_CHARGER_DETECTION_WAIT_TIME_MS);