]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/bridge: stm_lvds: Do not fail atomic_check on disabled connector
authorMarek Vasut <marex@nabladev.com>
Thu, 9 Apr 2026 02:48:41 +0000 (04:48 +0200)
committerRaphael Gallais-Pou <raphael.gallais-pou@foss.st.com>
Mon, 13 Apr 2026 10:52:33 +0000 (12:52 +0200)
commiteecdd4bd6e47bf0c8ff1e049771fa5bab7074c7c
tree92e0b222d22edda13894de3ca2f5a70f4b5726ad
parent79ae8510b5b81b9500370f89c619b50ca9c0990f
drm/bridge: stm_lvds: Do not fail atomic_check on disabled connector

If the connector is disabled, the new connector state has .crtc field
set to NULL and there is nothing more to validate after that point.
The .crtc field being NULL is not an error. Test for .crtc being NULL,
and if it is NULL, exit early with return 0.

This fixes a failure in suspend/resume path, where the connector is
already disabled, but .atomic_check is called, fails, returns -EINVAL
and blocks the suspend entry.

Fixes: aca1cbc1c986 ("drm/stm: lvds: add new STM32 LVDS Display Interface Transmitter driver")
Signed-off-by: Marek Vasut <marex@nabladev.com>
Acked-by: Raphaƫl Gallais-Pou <raphael.gallais-pou@foss.st.com>
Link: https://patch.msgid.link/20260409024928.344010-1-marex@nabladev.com
Signed-off-by: Raphael Gallais-Pou <raphael.gallais-pou@foss.st.com>
drivers/gpu/drm/stm/lvds.c