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>
schedule_delayed_work(&udc->work,
USB_CHARGER_DETECTION_WAIT_TIME_MS);
}
- return 0;
}
spin_lock_irqsave(&udc->lock, flags);