disp: msm: dp: ensure failsafe mode in connector mode list
The dp driver inserts a failsafe mode to be in alginment with DP specification. This change ensures that the added failsafe mode does not get filtered out when a specific mode is selected via the debugfs functions. Change-Id: I56039527eaf77111c6a51a40d1ea143fa0693a70 Signed-off-by: Nisarg Bhavsar <quic_bhavsar@quicinc.com>
This commit is contained in:
@@ -726,12 +726,17 @@ enum drm_mode_status dp_connector_mode_valid(struct drm_connector *connector,
|
||||
return MODE_ERROR;
|
||||
}
|
||||
|
||||
/* As per spec, failsafe mode should always be present */
|
||||
if ((mode->hdisplay == 640) && (mode->vdisplay == 480) && (mode->clock == 25175))
|
||||
goto validate_mode;
|
||||
|
||||
if (dp_panel->mode_override && (mode->hdisplay != dp_panel->hdisplay ||
|
||||
mode->vdisplay != dp_panel->vdisplay ||
|
||||
vrefresh != dp_panel->vrefresh ||
|
||||
mode->picture_aspect_ratio != dp_panel->aspect_ratio))
|
||||
return MODE_BAD;
|
||||
|
||||
validate_mode:
|
||||
return dp_disp->validate_mode(dp_disp, sde_conn->drv_panel,
|
||||
mode, &avail_dp_res);
|
||||
}
|
||||
|
مرجع در شماره جدید
Block a user