[PATCH v1 4/5] drm/panel: r61307/r69328: return accumulated errors

Svyatoslav Ryhel posted 5 patches 1 month, 2 weeks ago
[PATCH v1 4/5] drm/panel: r61307/r69328: return accumulated errors
Posted by Svyatoslav Ryhel 1 month, 2 weeks ago
Return accumulated errors from dsi function calls.

Signed-off-by: Svyatoslav Ryhel <clamor95@gmail.com>
---
 drivers/gpu/drm/panel/panel-renesas-r61307.c | 4 ++--
 drivers/gpu/drm/panel/panel-renesas-r69328.c | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/drivers/gpu/drm/panel/panel-renesas-r61307.c b/drivers/gpu/drm/panel/panel-renesas-r61307.c
index 2cc3bd66d6d4..70bda074dd0d 100644
--- a/drivers/gpu/drm/panel/panel-renesas-r61307.c
+++ b/drivers/gpu/drm/panel/panel-renesas-r61307.c
@@ -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)
diff --git a/drivers/gpu/drm/panel/panel-renesas-r69328.c b/drivers/gpu/drm/panel/panel-renesas-r69328.c
index b5fe127634ae..0ed143f77e50 100644
--- a/drivers/gpu/drm/panel/panel-renesas-r69328.c
+++ b/drivers/gpu/drm/panel/panel-renesas-r69328.c
@@ -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)
-- 
2.51.0
Re: [PATCH v1 4/5] drm/panel: r61307/r69328: return accumulated errors
Posted by Neil Armstrong 1 month, 2 weeks ago
On 2/15/26 09:51, Svyatoslav Ryhel wrote:
> Return accumulated errors from dsi function calls.
> 
> Signed-off-by: Svyatoslav Ryhel <clamor95@gmail.com>
> ---
>   drivers/gpu/drm/panel/panel-renesas-r61307.c | 4 ++--
>   drivers/gpu/drm/panel/panel-renesas-r69328.c | 4 ++--
>   2 files changed, 4 insertions(+), 4 deletions(-)
> 
> diff --git a/drivers/gpu/drm/panel/panel-renesas-r61307.c b/drivers/gpu/drm/panel/panel-renesas-r61307.c
> index 2cc3bd66d6d4..70bda074dd0d 100644
> --- a/drivers/gpu/drm/panel/panel-renesas-r61307.c
> +++ b/drivers/gpu/drm/panel/panel-renesas-r61307.c
> @@ -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)
> diff --git a/drivers/gpu/drm/panel/panel-renesas-r69328.c b/drivers/gpu/drm/panel/panel-renesas-r69328.c
> index b5fe127634ae..0ed143f77e50 100644
> --- a/drivers/gpu/drm/panel/panel-renesas-r69328.c
> +++ b/drivers/gpu/drm/panel/panel-renesas-r69328.c
> @@ -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)

Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>

Thanks,
Neil