disp: msm: dsi: add qsync min fps val in dsi display mode priv info

In the current code for finding the qsync min fps for a
mode, entire mode list is iterated which involves acquiring
dsi display_lock. During conn tx debugfs commands, if
qsync min fps is required, we try to acquire dsi
display_lock twice which results in hang state. This change
adds qsync min fps value in dsi_display_mode_priv_info
struct in order to get the qsync fps from the
msm_display_mode present in connector state instead of
looping through all the modes to find the mode qsync fps.

Change-Id: Ifded40d1f12462bb50fc7bdafb746ae5b8d9512a
Signed-off-by: Yashwanth <yvulapu@codeaurora.org>
Этот коммит содержится в:
Yashwanth
2021-09-13 09:42:13 +05:30
родитель 0f0c5990ca
Коммит 6619470eb6
6 изменённых файлов: 23 добавлений и 25 удалений

Просмотреть файл

@@ -399,11 +399,10 @@ struct sde_connector_ops {
/**
* get_qsync_min_fps - Get qsync min fps from qsync-min-fps-list
* @display: Pointer to private display structure
* @conn_state: Pointer to drm_connector_state structure
* Returns: Qsync min fps value on success
*/
int (*get_qsync_min_fps)(void *display, struct drm_connector_state *conn_state);
int (*get_qsync_min_fps)(struct drm_connector_state *conn_state);
/**
* get_avr_step_req - Get the required avr_step for given fps rate