Re: [PATCH] drm: imx-dcss: Check return value of drm_mode_config_helper_suspend()

From: Laurentiu Palcu

Date: Wed Nov 25 2026 - 03:28:38 EST


Hi Denis,

On Thu, Nov 19, 2026 at 02:30:29PM +0300, Denis Arefev wrote:
> dcss_dev_suspend() ignores the return value of
> drm_mode_config_helper_suspend(). On failure that helper rolls back its
> partial work (re-enables fbdev and polling) and leaves
> mode_config.suspend_state unset, i.e. the DRM side is not suspended.
> Continuing to suspend the context loader and disable the clocks then
> leaves the device in an inconsistent state.
>
> Check the return value and propagate the error to the PM core, as the
> other DRM drivers calling this helper do.
>
> Found by Linux Verification Center (linuxtesting.org) with SVACE.
>
> Fixes: 9021c317b770 ("drm/imx: Add initial support for DCSS on iMX8MQ")
> Cc: stable@xxxxxxxxxxxxxxx
> Signed-off-by: Denis Arefev <arefev@xxxxxxxxx>

Reviewed-by: Laurentiu Palcu <laurentiu.palcu@xxxxxxxxxxx>

--
Thanks,
Laurentiu