Re: [PATCH v3 2/5] drm/verisilicon: fix DC8200 primary plane disable clearing FB_EN

From: Javier Martinez Canillas

Date: Tue Dec 01 2026 - 08:56:25 EST


Icenowy Zheng <zhengxingda@xxxxxxxxxxx> writes:

> From: Joey Lu <a0987203069@xxxxxxxxx>
>
> vs_primary_plane_atomic_disable() calls regmap_set_bits() on
> VSDC_FB_CONFIG_EX_FB_EN instead of regmap_clear_bits(), so disabling
> the primary plane on DC8200-family hardware actually leaves the
> framebuffer enable bit instead of clearing it.
>
> Fixes: dbf21777caa8 ("drm: verisilicon: add a driver for Verisilicon display controllers")
> Signed-off-by: Joey Lu <a0987203069@xxxxxxxxx>
> [Icenowy: rebased and reworked the commit message]
> Signed-off-by: Icenowy Zheng <zhengxingda@xxxxxxxxxxx>
> ---
> drivers/gpu/drm/verisilicon/vs_primary_plane.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/gpu/drm/verisilicon/vs_primary_plane.c b/drivers/gpu/drm/verisilicon/vs_primary_plane.c
> index 95f4a06039e76..c12fe54096c33 100644
> --- a/drivers/gpu/drm/verisilicon/vs_primary_plane.c
> +++ b/drivers/gpu/drm/verisilicon/vs_primary_plane.c
> @@ -89,8 +89,8 @@ static void vs_primary_plane_atomic_disable(struct drm_plane *plane,
> unsigned int output = vcrtc->id;
> struct vs_dc *dc = vcrtc->dc;
>
> - regmap_set_bits(dc->regs, VSDC_FB_CONFIG_EX(output),
> - VSDC_FB_CONFIG_EX_FB_EN);
> + regmap_clear_bits(dc->regs, VSDC_FB_CONFIG_EX(output),
> + VSDC_FB_CONFIG_EX_FB_EN);

Acked-by: Javier Martinez Canillas <javierm@xxxxxxxxxx>

--
Best regards,

Javier Martinez Canillas
Core Platforms
Red Hat