From 15218ae4e6b2c2da37c059f59d1f1d8026944d63 Mon Sep 17 00:00:00 2001 From: Damon Ding Date: Mon, 9 Dec 2024 19:43:29 +0800 Subject: [PATCH] drm/rockchip: tve: set the &rockchip_tve.tv_format in &drm_encoder_helper_funcs.mode_set() Although the previous patch helps to avoid display flashing during the uboot/kernel logo switching, it forgot to set the &rockchip_tve.tv_format in &drm_encoder_helper_funcs.mode_set() which is needed in later &drm_encoder_helper_funcs.enable() process. Fixes: e3b31a037dcd ("drm/rockchip: tve: add .loader_protect() support for tve") Change-Id: Ib4e81f0c9ab64c1c2db9bd19209a6f108cae70e9 Signed-off-by: Damon Ding --- drivers/gpu/drm/rockchip/rockchip_drm_tve.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/gpu/drm/rockchip/rockchip_drm_tve.c b/drivers/gpu/drm/rockchip/rockchip_drm_tve.c index 9184509fc2ba..8621f8d47baf 100644 --- a/drivers/gpu/drm/rockchip/rockchip_drm_tve.c +++ b/drivers/gpu/drm/rockchip/rockchip_drm_tve.c @@ -503,6 +503,8 @@ static void rockchip_tve_encoder_mode_set(struct drm_encoder *encoder, tve_set_mode(tve); dac_enable(tve, true); } + + tve->tv_format = tv_format; } static bool