summaryrefslogtreecommitdiff
path: root/scripts/objdiff
diff options
context:
space:
mode:
authorMayank Rana <mrana@codeaurora.org>2017-12-13 17:27:23 -0800
committerAjay Agarwal <ajaya@codeaurora.org>2018-11-29 10:15:14 +0530
commit21caf80630d43996c6191bcb52bc8de60a05229c (patch)
treea14253a2a3dc39b60da86800957ba51bbd82f12d /scripts/objdiff
parent58a9174f204e980b45317eec4e240f4afc3c24c0 (diff)
dwc3-msm: Allow USB LPM with data role swap from dfp to ufp
Current code checks IN_P3 status (i.e. USB is into U3 or not) with dwc3_prepare_suspend() API using in_host_mode or vbus_active flag. With data role swap transition (e.g. dfp -> ufp case), in_host_mode flag sets to false and vbus_active flag sets to true due to quick calling of stop host and start peripheral mode from policy engine. This results into USB doesn't go into LPM with stop host mode (i.e. USB LPM is aborted due to vbus_active flag seen as true) which results into no USB enumeration in start peripheral mode. Current code doesn't perform block reset while stopping USB host mode functionality. Hence to invoke USB core and PHYs related reset and init functionality allow USB LPM by replacing vbus_active check with in_device_mode flag which provides status of USB controller's data role while going into USB LPM. Start peripheral mode brings USB out of LPM which performs POR functionality. Change-Id: I2bbb804bce5f910826ba30a3dda4317bbdb2e1f1 Signed-off-by: Mayank Rana <mrana@codeaurora.org> Signed-off-by: Ajay Agarwal <ajaya@codeaurora.org>
Diffstat (limited to 'scripts/objdiff')
0 files changed, 0 insertions, 0 deletions