]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
drm/panel: r61307/r69328: return accumulated errors
authorSvyatoslav Ryhel <clamor95@gmail.com>
Sun, 15 Feb 2026 08:51:38 +0000 (10:51 +0200)
committerNeil Armstrong <neil.armstrong@linaro.org>
Tue, 10 Mar 2026 13:26:00 +0000 (14:26 +0100)
Return accumulated errors from dsi function calls.

Signed-off-by: Svyatoslav Ryhel <clamor95@gmail.com>
Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>
Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
Link: https://patch.msgid.link/20260215085140.20499-5-clamor95@gmail.com
drivers/gpu/drm/panel/panel-renesas-r61307.c
drivers/gpu/drm/panel/panel-renesas-r69328.c

index 2cc3bd66d6d4f5286ef3f246014eff5645291353..70bda074dd0d84fd9e85d1bf0da0d348f341de02 100644 (file)
@@ -150,7 +150,7 @@ static int renesas_r61307_enable(struct drm_panel *panel)
        mipi_dsi_dcs_set_display_on_multi(&ctx);
        mipi_dsi_msleep(&ctx, 50);
 
-       return 0;
+       return ctx.accum_err;
 }
 
 static int renesas_r61307_disable(struct drm_panel *panel)
@@ -162,7 +162,7 @@ static int renesas_r61307_disable(struct drm_panel *panel)
        mipi_dsi_msleep(&ctx, 100);
        mipi_dsi_dcs_enter_sleep_mode_multi(&ctx);
 
-       return 0;
+       return ctx.accum_err;
 }
 
 static int renesas_r61307_unprepare(struct drm_panel *panel)
index b5fe127634ae417a3eb4de1a9bc8ead7b6166034..0ed143f77e50a76ae465cdb882ec8bdfd65fef31 100644 (file)
@@ -117,7 +117,7 @@ static int renesas_r69328_enable(struct drm_panel *panel)
        mipi_dsi_dcs_set_display_on_multi(&ctx);
        mipi_dsi_msleep(&ctx, 50);
 
-       return 0;
+       return ctx.accum_err;
 }
 
 static int renesas_r69328_disable(struct drm_panel *panel)
@@ -129,7 +129,7 @@ static int renesas_r69328_disable(struct drm_panel *panel)
        mipi_dsi_msleep(&ctx, 60);
        mipi_dsi_dcs_enter_sleep_mode_multi(&ctx);
 
-       return 0;
+       return ctx.accum_err;
 }
 
 static int renesas_r69328_unprepare(struct drm_panel *panel)