From ae931375000153d8e2f1dd62743b7be17f790b95 Mon Sep 17 00:00:00 2001 From: Algea Cao Date: Mon, 26 Jul 2021 16:19:51 +0800 Subject: [PATCH] drm/rockchip: dw_hdmi: get rid of clock slop Clock slop is a solution for rk3288, not suitable for rk3399, after use crtc mode_valid, we can remove the clock slop. Change-Id: I68121505dfb7e65bf09c26d51c23edc909bdb517 Signed-off-by: Mark Yao Signed-off-by: Algea Cao --- drivers/gpu/drm/rockchip/dw_hdmi-rockchip.c | 9 --------- 1 file changed, 9 deletions(-) diff --git a/drivers/gpu/drm/rockchip/dw_hdmi-rockchip.c b/drivers/gpu/drm/rockchip/dw_hdmi-rockchip.c index 5b2658093042..2a2cd31a1cb4 100644 --- a/drivers/gpu/drm/rockchip/dw_hdmi-rockchip.c +++ b/drivers/gpu/drm/rockchip/dw_hdmi-rockchip.c @@ -332,14 +332,6 @@ static void dw_hdmi_rockchip_encoder_disable(struct drm_encoder *encoder) { } -static bool -dw_hdmi_rockchip_encoder_mode_fixup(struct drm_encoder *encoder, - const struct drm_display_mode *mode, - struct drm_display_mode *adj_mode) -{ - return true; -} - static void dw_hdmi_rockchip_encoder_enable(struct drm_encoder *encoder) { struct rockchip_hdmi *hdmi = to_rockchip_hdmi(encoder); @@ -401,7 +393,6 @@ static void dw_hdmi_rockchip_encoder_mode_set(struct drm_encoder *encoder, } static const struct drm_encoder_helper_funcs dw_hdmi_rockchip_encoder_helper_funcs = { - .mode_fixup = dw_hdmi_rockchip_encoder_mode_fixup, .enable = dw_hdmi_rockchip_encoder_enable, .disable = dw_hdmi_rockchip_encoder_disable, .atomic_check = dw_hdmi_rockchip_encoder_atomic_check,