diff options
author | Jubeom Kim <jubeomk@nvidia.com> | 2012-01-18 22:52:43 +0900 |
---|---|---|
committer | Rohan Somvanshi <rsomvanshi@nvidia.com> | 2012-01-20 01:39:10 -0800 |
commit | e9db109396e3f59fecfff476f53aad33650bff55 (patch) | |
tree | 156d0977d3d996bf5bacb1d680fae0ba6d598261 /drivers/usb | |
parent | 587ff93da210733f451581af406bd6215ba40726 (diff) |
usb: gadget: fsl_udc: use can_pullup function in vbus_session.
Even if the value of is_active is true, vbus_session is needed to check
whether udc can do pullup or not.
If the return value of can_pullup function is false
because of udc->softconnect value, udc has to make the STOP status by pullup.
Bug 925453
Change-Id: Iaefbc44cc3b3aefa2bb8e2a42d7c042ad535b308
Signed-off-by: Jubeom Kim <jubeomk@nvidia.com>
Reviewed-on: http://git-master/r/75954
Reviewed-by: Rakesh Bodla <rbodla@nvidia.com>
Tested-by: Rakesh Bodla <rbodla@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Kurt Yi <kyi@nvidia.com>
Tested-by: Kurt Yi <kyi@nvidia.com>
Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>
Diffstat (limited to 'drivers/usb')
-rw-r--r-- | drivers/usb/gadget/fsl_udc_core.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/usb/gadget/fsl_udc_core.c b/drivers/usb/gadget/fsl_udc_core.c index eeec98f36901..28bb1883b81a 100644 --- a/drivers/usb/gadget/fsl_udc_core.c +++ b/drivers/usb/gadget/fsl_udc_core.c @@ -1402,7 +1402,6 @@ static int fsl_vbus_session(struct usb_gadget *gadget, int is_active) schedule_delayed_work(&udc->work, USB_CHARGER_DETECTION_WAIT_TIME_MS); } - return 0; } spin_lock_irqsave(&udc->lock, flags); |