From 3a07e4c46f3a016e980e682fc29655f54669dfdf Mon Sep 17 00:00:00 2001 From: Dave Stevenson Date: Thu, 25 Jan 2024 16:18:14 +0000 Subject: [PATCH] drm/vc4: Do not reset tv mode as this is already handled by framework In vc4_vec_connector_reset, the tv mode is already reset to the property default by drm_atomic_helper_connector_tv_reset, so there is no need for a local fixup to potentially some other default. Fixes: 96922af14473 ("drm/vc4: Allow setting the TV norm via module parameter") Signed-off-by: Dave Stevenson --- drivers/gpu/drm/vc4/vc4_vec.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/drivers/gpu/drm/vc4/vc4_vec.c b/drivers/gpu/drm/vc4/vc4_vec.c index a958f04..140c8cd 100644 --- a/drivers/gpu/drm/vc4/vc4_vec.c +++ b/drivers/gpu/drm/vc4/vc4_vec.c @@ -404,10 +404,6 @@ static void vc4_vec_connector_reset(struct drm_connector *connector) { drm_atomic_helper_connector_reset(connector); drm_atomic_helper_connector_tv_reset(connector); - - /* preserve TV standard */ - if (connector->state) - connector->state->tv.mode = vc4_vec_get_default_mode(connector); } static int -- 2.7.4