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>
这个提交包含在:
@@ -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/debugfs.h>
|
||||
@@ -994,7 +994,7 @@ static ssize_t dp_debug_read_edid_modes(struct file *file,
|
||||
list_for_each_entry(mode, &connector->modes, head) {
|
||||
ret = snprintf(buf + len, max_size,
|
||||
"%s %d %d %d %d %d 0x%x\n",
|
||||
mode->name, mode->vrefresh, mode->picture_aspect_ratio,
|
||||
mode->name, drm_mode_vrefresh(mode), mode->picture_aspect_ratio,
|
||||
mode->htotal, mode->vtotal, mode->clock, mode->flags);
|
||||
if (dp_debug_check_buffer_overflow(ret, &max_size, &len))
|
||||
break;
|
||||
@@ -1069,7 +1069,7 @@ static ssize_t dp_debug_read_edid_modes_mst(struct file *file,
|
||||
list_for_each_entry(mode, &connector->modes, head) {
|
||||
ret = snprintf(buf + len, max_size,
|
||||
"%s %d %d %d %d %d 0x%x\n",
|
||||
mode->name, mode->vrefresh,
|
||||
mode->name, drm_mode_vrefresh(mode),
|
||||
mode->picture_aspect_ratio, mode->htotal,
|
||||
mode->vtotal, mode->clock, mode->flags);
|
||||
if (dp_debug_check_buffer_overflow(ret, &max_size, &len))
|
||||
|
在新工单中引用
屏蔽一个用户