mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-10 06:09:23 -04:00
disp: msm: dp: skip powering down dp host in mst mode
If DP is running in mst mode, DP host should not power down during unprepare call as aux need keep alive to handle further hot-plug sideband message. Unless it is a PM suspend scenario where it is required to deinit the host. Change-Id: I208894e1cbc75e727044c196194b0a4e3936921e Signed-off-by: Xiaowen Wu <wxiaowen@codeaurora.org> Signed-off-by: Sankeerth Billakanti <sbillaka@codeaurora.org> Signed-off-by: Tatenda Chipeperekwa <tatendac@codeaurora.org>
This commit is contained in:
parent
0e1496c718
commit
2192810d8a
1 changed files with 6 additions and 2 deletions
|
|
@ -2324,9 +2324,13 @@ static int dp_display_unprepare(struct dp_display *dp_display, void *panel)
|
|||
* Check if the power off sequence was triggered
|
||||
* by a source initialated action like framework
|
||||
* reboot or suspend-resume but not from normal
|
||||
* hot plug.
|
||||
* hot plug. If connector is in MST mode, skip
|
||||
* powering down host as aux needs to be kept
|
||||
* alive to handle hot-plug sideband message.
|
||||
*/
|
||||
if (dp_display_is_ready(dp))
|
||||
if (dp_display_is_ready(dp) &&
|
||||
(dp_display_state_is(DP_STATE_SUSPENDED) ||
|
||||
!dp->mst.mst_active))
|
||||
flags |= DP_PANEL_SRC_INITIATED_POWER_DOWN;
|
||||
|
||||
if (dp->active_stream_cnt)
|
||||
|
|
|
|||
Loading…
Reference in a new issue