The armada KMS driver will call drm_plane_create_color_properties() with
a default encoding and range values of BT601 and Limited Range,
respectively.

Since the initial value wasn't carried over in the state, the driver had
to set it again in armada_overlay_reset(). However, the helpers have been
adjusted to set it properly at reset, so this is not needed anymore.

Cc: Russell King <li...@armlinux.org.uk>
Signed-off-by: Maxime Ripard <max...@cerno.tech>
---
 drivers/gpu/drm/armada/armada_overlay.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/drivers/gpu/drm/armada/armada_overlay.c 
b/drivers/gpu/drm/armada/armada_overlay.c
index 424250535fed..a25539039efd 100644
--- a/drivers/gpu/drm/armada/armada_overlay.c
+++ b/drivers/gpu/drm/armada/armada_overlay.c
@@ -325,8 +325,6 @@ static void armada_overlay_reset(struct drm_plane *plane)
                state->contrast = DEFAULT_CONTRAST;
                state->saturation = DEFAULT_SATURATION;
                __drm_atomic_helper_plane_reset(plane, &state->base.base);
-               state->base.base.color_encoding = DEFAULT_ENCODING;
-               state->base.base.color_range = DRM_COLOR_YCBCR_LIMITED_RANGE;
        }
 }
 
-- 
2.35.1

Reply via email to