fbdev: msm: Avoid runtime sus/res for DP/HDMI

A race condition is seen between DP pan_display commit
path and pm runtime suspend when DP cable is inserted
when device is in suspend. This causes commit failure
and subseqently display won't wake up from suspend.
Avoid runtime suspend/resume of DP lower interface to
resolve this.

Change-Id: Ia1aea19799df718e0713d0cf0ccc3237bb7a31f3
Signed-off-by: Nirmal Abraham <nabrah@codeaurora.org>
This commit is contained in:
Nirmal Abraham 2021-07-16 13:55:32 +05:30
parent dd304ccc10
commit 05742e7009

View file

@ -5232,8 +5232,13 @@ int mdss_fb_suspres_panel(struct device *dev, void *data)
event = *((bool *) data) ? MDSS_EVENT_RESUME : MDSS_EVENT_SUSPEND;
/* Do not send runtime suspend/resume for HDMI primary */
if (!mdss_fb_is_hdmi_primary(mfd)) {
/* Do not send runtime suspend/resume for HDMI/DP */
if ((mfd->panel.type == DTV_PANEL) ||
(mfd->panel.type == DP_PANEL) ||
(mfd->panel.type == HDMI_PANEL)) {
pr_debug("%s: Avoid sus/res for panel = %d, ndx = %d\n",
__func__, mfd->panel.type, mfd->index);
} else {
rc = mdss_fb_send_panel_event(mfd, event, NULL);
if (rc)
pr_warn("unable to %s fb%d (%d)\n",