Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Marek Vasut and committed by
Raphael Gallais-Pou
eecdd4bd 79ae8510

+3 -3
+3 -3
drivers/gpu/drm/stm/lvds.c
··· 897 897 if (!conn_state) 898 898 return -EINVAL; 899 899 900 + if (!conn_state->crtc) 901 + return 0; 902 + 900 903 if (list_empty(&connector->modes)) { 901 904 drm_dbg(connector->dev, "connector: empty modes list\n"); 902 905 return -EINVAL; 903 906 } 904 - 905 - if (!conn_state->crtc) 906 - return -EINVAL; 907 907 908 908 panel_mode = list_first_entry(&connector->modes, 909 909 struct drm_display_mode, head);