Skip to content

Commit a23e340

Browse files
jernejskwens
authored andcommitted
drm/sun4i: ui_scaler: drop sanity checks
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> Link: https://patch.msgid.link/20251104180942.61538-26-jernej.skrabec@gmail.com Signed-off-by: Chen-Yu Tsai <wens@kernel.org>
1 parent 7907cf1 commit a23e340

1 file changed

Lines changed: 0 additions & 6 deletions

File tree

drivers/gpu/drm/sun4i/sun8i_ui_scaler.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -132,9 +132,6 @@ void sun8i_ui_scaler_enable(struct sun8i_layer *layer, bool enable)
132132
struct sun8i_mixer *mixer = layer->mixer;
133133
u32 val, base;
134134

135-
if (WARN_ON(layer->channel < mixer->cfg->vi_num))
136-
return;
137-
138135
base = sun8i_ui_scaler_base(mixer, layer->channel);
139136

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

158-
if (WARN_ON(layer->channel < mixer->cfg->vi_num))
159-
return;
160-
161155
base = sun8i_ui_scaler_base(mixer, layer->channel);
162156

163157
hphase <<= SUN8I_UI_SCALER_PHASE_FRAC - 16;

0 commit comments

Comments
 (0)