disp: msm: remove use of drm_display_mode vrefresh
Use of drm_display_mode vrefresh is being deprecated in upstream DRM framework. Downstream driver need to use drm_mode_vrefresh API from now on. This change removes dependency on drm_display_mode vrefresh and replaces it with drm_mode_vrefresh API in SDE, DSI and DP driver. In addition, it also modifies drm_display_mode clock to align with upstream approach where an uncompressed mode clock is required to match drm_mode_vrefresh API. Change-Id: Ie972a2e140adfd81c4e68df8e7bc69feaaca22e1 Signed-off-by: Nilaan Gunabalachandran <ngunabal@codeaurora.org> Signed-off-by: Amine Najahi <anajahi@codeaurora.org>
Dieser Commit ist enthalten in:
@@ -1,6 +1,6 @@
|
||||
// SPDX-License-Identifier: GPL-2.0-only
|
||||
/*
|
||||
* Copyright (c) 2017-2020, The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2017-2021, The Linux Foundation. All rights reserved.
|
||||
*/
|
||||
|
||||
#include <linux/module.h>
|
||||
@@ -2824,7 +2824,7 @@ static void dp_display_validate_mst_connectors(struct dp_debug *debug,
|
||||
|
||||
_hdis = mode->hdisplay;
|
||||
_vdis = mode->vdisplay;
|
||||
_vref = mode->vrefresh;
|
||||
_vref = drm_mode_vrefresh(mode);
|
||||
_ar = mode->picture_aspect_ratio;
|
||||
|
||||
if (hdis == _hdis && vdis == _vdis && vref == _vref &&
|
||||
@@ -2912,7 +2912,7 @@ static enum drm_mode_status dp_display_validate_mode(
|
||||
|
||||
if (debug->debug_en && (mode->hdisplay != debug->hdisplay ||
|
||||
mode->vdisplay != debug->vdisplay ||
|
||||
mode->vrefresh != debug->vrefresh ||
|
||||
drm_mode_vrefresh(mode) != debug->vrefresh ||
|
||||
mode->picture_aspect_ratio != debug->aspect_ratio))
|
||||
goto end;
|
||||
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren