]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
drm/panel: synaptics-r63353: Fix regulator unbalance
authorMichael Trimarchi <michael@amarulasolutions.com>
Thu, 5 Dec 2024 16:29:58 +0000 (17:29 +0100)
committerNeil Armstrong <neil.armstrong@linaro.org>
Fri, 13 Dec 2024 09:52:07 +0000 (10:52 +0100)
The shutdown function can be called when the display is already
unprepared. For example during reboot this trigger a kernel
backlog. Calling the drm_panel_unprepare, allow us to avoid
to trigger the kernel warning.

Fixes: 2e87bad7cd33 ("drm/panel: Add Synaptics R63353 panel driver")
Tested-by: Dario Binacchi <dario.binacchi@amarulasolutions.com>
Signed-off-by: Michael Trimarchi <michael@amarulasolutions.com>
Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com>
Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>
Reviewed-by: Jessica Zhang <quic_jesszhan@quicinc.com>
Link: https://lore.kernel.org/r/20241205163002.1804784-1-dario.binacchi@amarulasolutions.com
Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20241205163002.1804784-1-dario.binacchi@amarulasolutions.com
drivers/gpu/drm/panel/panel-synaptics-r63353.c

index 169c629746c714ab5fd3dea29b24545747d01f59..17349825543fe6a117bbfd9cb92a564ce433d13a 100644 (file)
@@ -325,7 +325,7 @@ static void r63353_panel_shutdown(struct mipi_dsi_device *dsi)
 {
        struct r63353_panel *rpanel = mipi_dsi_get_drvdata(dsi);
 
-       r63353_panel_unprepare(&rpanel->base);
+       drm_panel_unprepare(&rpanel->base);
 }
 
 static const struct r63353_desc sharp_ls068b3sx02_data = {