[PATCH v2 25/30] drm/sun4i: ui_scaler: drop sanity checks

Jernej Skrabec
2025-11-04T18:10:34Z

They can't be triggered if mixer configuration is properly specified in
quirks. Additionally, number of VI channels won't be available in future
due to rework for DE33 support.

Reviewed-by: Chen-Yu Tsai <wens@kernel.org>
Tested-by: Ryan Walklin <ryan@testtoast.com>
Signed-off-by: Jernej Skrabec <jernej.skrabec@gmail.com>
---
drivers/gpu/drm/sun4i/sun8i_ui_scaler.c | 6 ------
1 file changed, 6 deletions(-)

diff --git a/drivers/gpu/drm/sun4i/sun8i_ui_scaler.c b/drivers/gpu/drm/sun4i/sun8i_ui_scaler.c
index 2fc54dc20307..c0947ccf675b 100644
--- a/drivers/gpu/drm/sun4i/sun8i_ui_scaler.c
+++ b/drivers/gpu/drm/sun4i/sun8i_ui_scaler.c
@@ -132,9 +132,6 @@ void sun8i_ui_scaler_enable(struct sun8i_layer *layer, bool enable)
struct sun8i_mixer *mixer = layer->mixer;
u32 val, base;

- if (WARN_ON(layer->channel < mixer->cfg->vi_num))
- return;
-
base = sun8i_ui_scaler_base(mixer, layer->channel);

if (enable)
@@ -155,9 +152,6 @@ void sun8i_ui_scaler_setup(struct sun8i_layer *layer,
int i, offset;
u32 base;

- if (WARN_ON(layer->channel < mixer->cfg->vi_num))
- return;
-
base = sun8i_ui_scaler_base(mixer, layer->channel);

hphase <<= SUN8I_UI_SCALER_PHASE_FRAC - 16;
--
2.51.2