drm/vc4: Do not reset tv mode as this is already handled by framework
authorDave Stevenson <dave.stevenson@raspberrypi.com>
Thu, 25 Jan 2024 16:18:14 +0000 (16:18 +0000)
committerDom Cobley <popcornmix@gmail.com>
Mon, 19 Feb 2024 11:35:32 +0000 (11:35 +0000)
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 <dave.stevenson@raspberrypi.com>
drivers/gpu/drm/vc4/vc4_vec.c

index a958f04..140c8cd 100644 (file)
@@ -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