mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 0/3] drm/panel: Convert nt37705 and rm69220 prepare() to _multi()
@ 2026-12-03  5:10 Hsieh Hung-En
  2026-12-03  5:10 ` [PATCH 1/3] drm/panel: novatek-nt37705: Fix prepare error cleanup Hsieh Hung-En
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Hsieh Hung-En @ 2026-12-03  5:10 UTC (permalink / raw)
  To: neil.armstrong, jesszhan0024, dianders, akoskovich, luca.weiss
  Cc: dmitry.baryshkov, maarten.lankhorst, mripard, tzimmermann,
	airlied, simona, dri-devel, linux-kernel, Hsieh Hung-En

Both the Novatek NT37705 and Raydium RM69220 panel drivers already use
the mipi_dsi_*_multi() helpers in their *_on() and *_off() routines,
but still use the non-_multi DSC helpers in prepare(). This series
fixes a prepare() error cleanup bug in NT37705 and finishes converting
the remaining prepare() DSC setup sequence in both drivers:

- Patch 1 fixes nt37705_prepare() so that failures in
  mipi_dsi_picture_parameter_set() or mipi_dsi_compression_mode()
  assert reset_gpio and disable the regulators instead of leaking
  their enable counts.
- Patch 2 converts the DSC setup sequence in nt37705_prepare() to
  mipi_dsi_picture_parameter_set_multi(),
  mipi_dsi_compression_mode_multi(), and mipi_dsi_msleep().
- Patch 3 applies the same conversion to raydium_rm69220_prepare().

The existing *_on() helpers already use their own
mipi_dsi_multi_context and are left untouched to keep the diffs
minimal.

Compile-tested on arm64 with W=1, building each patch individually;
not tested on hardware.

Hsieh Hung-En (3):
  drm/panel: novatek-nt37705: Fix prepare error cleanup
  drm/panel: novatek-nt37705: Use mipi_dsi_*_multi() in prepare()
  drm/panel: raydium-rm69220: Use mipi_dsi_*_multi() in prepare()

 drivers/gpu/drm/panel/panel-novatek-nt37705.c | 29 +++++++++----------
 drivers/gpu/drm/panel/panel-raydium-rm69220.c | 18 ++++--------
 2 files changed, 19 insertions(+), 28 deletions(-)


base-commit: d7248c50b2b09f2680071b0b6d02ce9c2a569f5f
-- 
2.43.0


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [PATCH 1/3] drm/panel: novatek-nt37705: Fix prepare error cleanup
  2026-12-03  5:10 [PATCH 0/3] drm/panel: Convert nt37705 and rm69220 prepare() to _multi() Hsieh Hung-En
@ 2026-12-03  5:10 ` Hsieh Hung-En
  2026-12-03  9:32   ` neil.armstrong
  2026-12-03  5:10 ` [PATCH 2/3] drm/panel: novatek-nt37705: Use mipi_dsi_*_multi() in prepare() Hsieh Hung-En
  2026-12-03  5:10 ` [PATCH 3/3] drm/panel: raydium-rm69220: " Hsieh Hung-En
  2 siblings, 1 reply; 7+ messages in thread
From: Hsieh Hung-En @ 2026-12-03  5:10 UTC (permalink / raw)
  To: neil.armstrong, jesszhan0024, dianders, akoskovich, luca.weiss
  Cc: dmitry.baryshkov, maarten.lankhorst, mripard, tzimmermann,
	airlied, simona, dri-devel, linux-kernel, Hsieh Hung-En, Sashiko

If mipi_dsi_picture_parameter_set() or mipi_dsi_compression_mode() fails
in nt37705_prepare(), the error is returned directly without asserting
reset_gpio or disabling the regulators. Because drm_panel_prepare() does
not mark the panel as prepared on failure, nt37705_unprepare() will not
be called, leaving reset deasserted and leaking the enable count on all
three supplies (vddio, dvdd, vci) so they can no longer be powered off.

Route all failure paths after nt37705_reset() through a shared error
cleanup path that asserts reset_gpio and disables the supplies.

Fixes: 9ffe0df0262b ("drm/panel: Add driver for Novatek NT37705 panel")
Reported-by: Sashiko <sashiko-bot@kernel.org>
Closes: https://lore.kernel.org/r/sashiko-outbox-165407@kernel.org
Signed-off-by: Hsieh Hung-En <hungen3108@gmail.com>
---
 drivers/gpu/drm/panel/panel-novatek-nt37705.c | 13 ++++++++-----
 1 file changed, 8 insertions(+), 5 deletions(-)

diff --git a/drivers/gpu/drm/panel/panel-novatek-nt37705.c b/drivers/gpu/drm/panel/panel-novatek-nt37705.c
index 342e58591bab..a37bbd569ee5 100644
--- a/drivers/gpu/drm/panel/panel-novatek-nt37705.c
+++ b/drivers/gpu/drm/panel/panel-novatek-nt37705.c
@@ -209,9 +209,7 @@ static int nt37705_prepare(struct drm_panel *panel)
 	ret = nt37705_on(ctx);
 	if (ret < 0) {
 		dev_err(dev, "Failed to initialize panel: %d\n", ret);
-		gpiod_set_value_cansleep(ctx->reset_gpio, 1);
-		regulator_bulk_disable(ARRAY_SIZE(nt37705_supplies), ctx->supplies);
-		return ret;
+		goto err;
 	}
 
 	drm_dsc_pps_payload_pack(&pps, &ctx->dsc);
@@ -219,18 +217,23 @@ static int nt37705_prepare(struct drm_panel *panel)
 	ret = mipi_dsi_picture_parameter_set(ctx->dsi, &pps);
 	if (ret < 0) {
 		dev_err(panel->dev, "failed to transmit PPS: %d\n", ret);
-		return ret;
+		goto err;
 	}
 
 	ret = mipi_dsi_compression_mode(ctx->dsi, true);
 	if (ret < 0) {
 		dev_err(dev, "failed to enable compression mode: %d\n", ret);
-		return ret;
+		goto err;
 	}
 
 	msleep(28); /* TODO: Is this panel-dependent? */
 
 	return 0;
+
+err:
+	gpiod_set_value_cansleep(ctx->reset_gpio, 1);
+	regulator_bulk_disable(ARRAY_SIZE(nt37705_supplies), ctx->supplies);
+	return ret;
 }
 
 static int nt37705_unprepare(struct drm_panel *panel)
-- 
2.43.0


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [PATCH 2/3] drm/panel: novatek-nt37705: Use mipi_dsi_*_multi() in prepare()
  2026-12-03  5:10 [PATCH 0/3] drm/panel: Convert nt37705 and rm69220 prepare() to _multi() Hsieh Hung-En
  2026-12-03  5:10 ` [PATCH 1/3] drm/panel: novatek-nt37705: Fix prepare error cleanup Hsieh Hung-En
@ 2026-12-03  5:10 ` Hsieh Hung-En
  2026-12-03  9:33   ` neil.armstrong
  2026-12-03  5:10 ` [PATCH 3/3] drm/panel: raydium-rm69220: " Hsieh Hung-En
  2 siblings, 1 reply; 7+ messages in thread
From: Hsieh Hung-En @ 2026-12-03  5:10 UTC (permalink / raw)
  To: neil.armstrong, jesszhan0024, dianders, akoskovich, luca.weiss
  Cc: dmitry.baryshkov, maarten.lankhorst, mripard, tzimmermann,
	airlied, simona, dri-devel, linux-kernel, Hsieh Hung-En

Replace the deprecated mipi_dsi_picture_parameter_set() call in
nt37705_prepare() with mipi_dsi_picture_parameter_set_multi(), as
suggested in Documentation/gpu/todo.rst. Also convert the subsequent
mipi_dsi_compression_mode() and msleep(28) calls to
mipi_dsi_compression_mode_multi() and mipi_dsi_msleep() so the whole
DSC setup sequence shares one mipi_dsi_multi_context and a single
error check.

The _multi() helpers log transfer errors automatically, removing the
need for the manual dev_err() calls. As before, the 28ms delay is
skipped on failure. The command sequence and error cleanup path are
unchanged.

Signed-off-by: Hsieh Hung-En <hungen3108@gmail.com>
---
 drivers/gpu/drm/panel/panel-novatek-nt37705.c | 18 ++++++------------
 1 file changed, 6 insertions(+), 12 deletions(-)

diff --git a/drivers/gpu/drm/panel/panel-novatek-nt37705.c b/drivers/gpu/drm/panel/panel-novatek-nt37705.c
index a37bbd569ee5..55abc4034823 100644
--- a/drivers/gpu/drm/panel/panel-novatek-nt37705.c
+++ b/drivers/gpu/drm/panel/panel-novatek-nt37705.c
@@ -194,6 +194,7 @@ static int nt37705_off(struct nt37705_panel *ctx)
 static int nt37705_prepare(struct drm_panel *panel)
 {
 	struct nt37705_panel *ctx = to_nt37705_panel(panel);
+	struct mipi_dsi_multi_context dsi_ctx = { .dsi = ctx->dsi };
 	struct device *dev = &ctx->dsi->dev;
 	struct drm_dsc_picture_parameter_set pps;
 	int ret;
@@ -213,20 +214,13 @@ static int nt37705_prepare(struct drm_panel *panel)
 	}
 
 	drm_dsc_pps_payload_pack(&pps, &ctx->dsc);
+	mipi_dsi_picture_parameter_set_multi(&dsi_ctx, &pps);
+	mipi_dsi_compression_mode_multi(&dsi_ctx, true);
+	mipi_dsi_msleep(&dsi_ctx, 28); /* TODO: Is this panel-dependent? */
 
-	ret = mipi_dsi_picture_parameter_set(ctx->dsi, &pps);
-	if (ret < 0) {
-		dev_err(panel->dev, "failed to transmit PPS: %d\n", ret);
-		goto err;
-	}
-
-	ret = mipi_dsi_compression_mode(ctx->dsi, true);
-	if (ret < 0) {
-		dev_err(dev, "failed to enable compression mode: %d\n", ret);
+	ret = dsi_ctx.accum_err;
+	if (ret)
 		goto err;
-	}
-
-	msleep(28); /* TODO: Is this panel-dependent? */
 
 	return 0;
 
-- 
2.43.0


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [PATCH 3/3] drm/panel: raydium-rm69220: Use mipi_dsi_*_multi() in prepare()
  2026-12-03  5:10 [PATCH 0/3] drm/panel: Convert nt37705 and rm69220 prepare() to _multi() Hsieh Hung-En
  2026-12-03  5:10 ` [PATCH 1/3] drm/panel: novatek-nt37705: Fix prepare error cleanup Hsieh Hung-En
  2026-12-03  5:10 ` [PATCH 2/3] drm/panel: novatek-nt37705: Use mipi_dsi_*_multi() in prepare() Hsieh Hung-En
@ 2026-12-03  5:10 ` Hsieh Hung-En
  2026-12-03  9:34   ` neil.armstrong
  2 siblings, 1 reply; 7+ messages in thread
From: Hsieh Hung-En @ 2026-12-03  5:10 UTC (permalink / raw)
  To: neil.armstrong, jesszhan0024, dianders, akoskovich, luca.weiss
  Cc: dmitry.baryshkov, maarten.lankhorst, mripard, tzimmermann,
	airlied, simona, dri-devel, linux-kernel, Hsieh Hung-En

Replace the deprecated mipi_dsi_picture_parameter_set() call in
raydium_rm69220_prepare() with mipi_dsi_picture_parameter_set_multi(),
as suggested in Documentation/gpu/todo.rst. Also convert the subsequent
mipi_dsi_compression_mode() and msleep(28) calls to
mipi_dsi_compression_mode_multi() and mipi_dsi_msleep() so the whole
DSC setup sequence shares one mipi_dsi_multi_context and a single
error check.

The _multi() helpers log transfer errors automatically, removing the
need for the manual dev_err() calls. As before, the 28ms delay is
skipped on failure. The command sequence and error cleanup path are
unchanged.

Signed-off-by: Hsieh Hung-En <hungen3108@gmail.com>
---
 drivers/gpu/drm/panel/panel-raydium-rm69220.c | 18 ++++++------------
 1 file changed, 6 insertions(+), 12 deletions(-)

diff --git a/drivers/gpu/drm/panel/panel-raydium-rm69220.c b/drivers/gpu/drm/panel/panel-raydium-rm69220.c
index 3030f8b89760..ce680fb38798 100644
--- a/drivers/gpu/drm/panel/panel-raydium-rm69220.c
+++ b/drivers/gpu/drm/panel/panel-raydium-rm69220.c
@@ -218,6 +218,7 @@ static int raydium_rm69220_off(struct raydium_rm69220 *ctx)
 static int raydium_rm69220_prepare(struct drm_panel *panel)
 {
 	struct raydium_rm69220 *ctx = to_raydium_rm69220(panel);
+	struct mipi_dsi_multi_context dsi_ctx = { .dsi = ctx->dsi };
 	struct device *dev = &ctx->dsi->dev;
 	struct drm_dsc_picture_parameter_set pps;
 	int ret;
@@ -237,20 +238,13 @@ static int raydium_rm69220_prepare(struct drm_panel *panel)
 	}
 
 	drm_dsc_pps_payload_pack(&pps, &ctx->dsc);
+	mipi_dsi_picture_parameter_set_multi(&dsi_ctx, &pps);
+	mipi_dsi_compression_mode_multi(&dsi_ctx, true);
+	mipi_dsi_msleep(&dsi_ctx, 28);
 
-	ret = mipi_dsi_picture_parameter_set(ctx->dsi, &pps);
-	if (ret < 0) {
-		dev_err(dev, "failed to transmit PPS: %d\n", ret);
-		goto err;
-	}
-
-	ret = mipi_dsi_compression_mode(ctx->dsi, true);
-	if (ret < 0) {
-		dev_err(dev, "failed to enable compression mode: %d\n", ret);
+	ret = dsi_ctx.accum_err;
+	if (ret)
 		goto err;
-	}
-
-	msleep(28);
 
 	return 0;
 
-- 
2.43.0


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH 1/3] drm/panel: novatek-nt37705: Fix prepare error cleanup
  2026-12-03  5:10 ` [PATCH 1/3] drm/panel: novatek-nt37705: Fix prepare error cleanup Hsieh Hung-En
@ 2026-12-03  9:32   ` neil.armstrong
  0 siblings, 0 replies; 7+ messages in thread
From: neil.armstrong @ 2026-12-03  9:32 UTC (permalink / raw)
  To: Hsieh Hung-En, jesszhan0024, dianders, akoskovich, luca.weiss
  Cc: dmitry.baryshkov, maarten.lankhorst, mripard, tzimmermann,
	airlied, simona, dri-devel, linux-kernel, Sashiko

On 12/3/26 06:10, Hsieh Hung-En wrote:
> If mipi_dsi_picture_parameter_set() or mipi_dsi_compression_mode() fails
> in nt37705_prepare(), the error is returned directly without asserting
> reset_gpio or disabling the regulators. Because drm_panel_prepare() does
> not mark the panel as prepared on failure, nt37705_unprepare() will not
> be called, leaving reset deasserted and leaking the enable count on all
> three supplies (vddio, dvdd, vci) so they can no longer be powered off.
> 
> Route all failure paths after nt37705_reset() through a shared error
> cleanup path that asserts reset_gpio and disables the supplies.
> 
> Fixes: 9ffe0df0262b ("drm/panel: Add driver for Novatek NT37705 panel")
> Reported-by: Sashiko <sashiko-bot@kernel.org>
> Closes: https://lore.kernel.org/r/sashiko-outbox-165407@kernel.org
> Signed-off-by: Hsieh Hung-En <hungen3108@gmail.com>
> ---
>   drivers/gpu/drm/panel/panel-novatek-nt37705.c | 13 ++++++++-----
>   1 file changed, 8 insertions(+), 5 deletions(-)
> 
> diff --git a/drivers/gpu/drm/panel/panel-novatek-nt37705.c b/drivers/gpu/drm/panel/panel-novatek-nt37705.c
> index 342e58591bab..a37bbd569ee5 100644
> --- a/drivers/gpu/drm/panel/panel-novatek-nt37705.c
> +++ b/drivers/gpu/drm/panel/panel-novatek-nt37705.c
> @@ -209,9 +209,7 @@ static int nt37705_prepare(struct drm_panel *panel)
>   	ret = nt37705_on(ctx);
>   	if (ret < 0) {
>   		dev_err(dev, "Failed to initialize panel: %d\n", ret);
> -		gpiod_set_value_cansleep(ctx->reset_gpio, 1);
> -		regulator_bulk_disable(ARRAY_SIZE(nt37705_supplies), ctx->supplies);
> -		return ret;
> +		goto err;
>   	}
>   
>   	drm_dsc_pps_payload_pack(&pps, &ctx->dsc);
> @@ -219,18 +217,23 @@ static int nt37705_prepare(struct drm_panel *panel)
>   	ret = mipi_dsi_picture_parameter_set(ctx->dsi, &pps);
>   	if (ret < 0) {
>   		dev_err(panel->dev, "failed to transmit PPS: %d\n", ret);
> -		return ret;
> +		goto err;
>   	}
>   
>   	ret = mipi_dsi_compression_mode(ctx->dsi, true);
>   	if (ret < 0) {
>   		dev_err(dev, "failed to enable compression mode: %d\n", ret);
> -		return ret;
> +		goto err;
>   	}
>   
>   	msleep(28); /* TODO: Is this panel-dependent? */
>   
>   	return 0;
> +
> +err:
> +	gpiod_set_value_cansleep(ctx->reset_gpio, 1);
> +	regulator_bulk_disable(ARRAY_SIZE(nt37705_supplies), ctx->supplies);
> +	return ret;
>   }
>   
>   static int nt37705_unprepare(struct drm_panel *panel)

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

Thanks,
Neil

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH 2/3] drm/panel: novatek-nt37705: Use mipi_dsi_*_multi() in prepare()
  2026-12-03  5:10 ` [PATCH 2/3] drm/panel: novatek-nt37705: Use mipi_dsi_*_multi() in prepare() Hsieh Hung-En
@ 2026-12-03  9:33   ` neil.armstrong
  0 siblings, 0 replies; 7+ messages in thread
From: neil.armstrong @ 2026-12-03  9:33 UTC (permalink / raw)
  To: Hsieh Hung-En, jesszhan0024, dianders, akoskovich, luca.weiss
  Cc: dmitry.baryshkov, maarten.lankhorst, mripard, tzimmermann,
	airlied, simona, dri-devel, linux-kernel

On 12/3/26 06:10, Hsieh Hung-En wrote:
> Replace the deprecated mipi_dsi_picture_parameter_set() call in
> nt37705_prepare() with mipi_dsi_picture_parameter_set_multi(), as
> suggested in Documentation/gpu/todo.rst. Also convert the subsequent
> mipi_dsi_compression_mode() and msleep(28) calls to
> mipi_dsi_compression_mode_multi() and mipi_dsi_msleep() so the whole
> DSC setup sequence shares one mipi_dsi_multi_context and a single
> error check.
> 
> The _multi() helpers log transfer errors automatically, removing the
> need for the manual dev_err() calls. As before, the 28ms delay is
> skipped on failure. The command sequence and error cleanup path are
> unchanged.
> 
> Signed-off-by: Hsieh Hung-En <hungen3108@gmail.com>
> ---
>   drivers/gpu/drm/panel/panel-novatek-nt37705.c | 18 ++++++------------
>   1 file changed, 6 insertions(+), 12 deletions(-)
> 
> diff --git a/drivers/gpu/drm/panel/panel-novatek-nt37705.c b/drivers/gpu/drm/panel/panel-novatek-nt37705.c
> index a37bbd569ee5..55abc4034823 100644
> --- a/drivers/gpu/drm/panel/panel-novatek-nt37705.c
> +++ b/drivers/gpu/drm/panel/panel-novatek-nt37705.c
> @@ -194,6 +194,7 @@ static int nt37705_off(struct nt37705_panel *ctx)
>   static int nt37705_prepare(struct drm_panel *panel)
>   {
>   	struct nt37705_panel *ctx = to_nt37705_panel(panel);
> +	struct mipi_dsi_multi_context dsi_ctx = { .dsi = ctx->dsi };
>   	struct device *dev = &ctx->dsi->dev;
>   	struct drm_dsc_picture_parameter_set pps;
>   	int ret;
> @@ -213,20 +214,13 @@ static int nt37705_prepare(struct drm_panel *panel)
>   	}
>   
>   	drm_dsc_pps_payload_pack(&pps, &ctx->dsc);
> +	mipi_dsi_picture_parameter_set_multi(&dsi_ctx, &pps);
> +	mipi_dsi_compression_mode_multi(&dsi_ctx, true);
> +	mipi_dsi_msleep(&dsi_ctx, 28); /* TODO: Is this panel-dependent? */
>   
> -	ret = mipi_dsi_picture_parameter_set(ctx->dsi, &pps);
> -	if (ret < 0) {
> -		dev_err(panel->dev, "failed to transmit PPS: %d\n", ret);
> -		goto err;
> -	}
> -
> -	ret = mipi_dsi_compression_mode(ctx->dsi, true);
> -	if (ret < 0) {
> -		dev_err(dev, "failed to enable compression mode: %d\n", ret);
> +	ret = dsi_ctx.accum_err;
> +	if (ret)
>   		goto err;
> -	}
> -
> -	msleep(28); /* TODO: Is this panel-dependent? */

I would rather do:

if (!dsi_ctx.accum_err)
	return 0;

>   
>   	return 0;
>   


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH 3/3] drm/panel: raydium-rm69220: Use mipi_dsi_*_multi() in prepare()
  2026-12-03  5:10 ` [PATCH 3/3] drm/panel: raydium-rm69220: " Hsieh Hung-En
@ 2026-12-03  9:34   ` neil.armstrong
  0 siblings, 0 replies; 7+ messages in thread
From: neil.armstrong @ 2026-12-03  9:34 UTC (permalink / raw)
  To: Hsieh Hung-En, jesszhan0024, dianders, akoskovich, luca.weiss
  Cc: dmitry.baryshkov, maarten.lankhorst, mripard, tzimmermann,
	airlied, simona, dri-devel, linux-kernel

On 12/3/26 06:10, Hsieh Hung-En wrote:
> Replace the deprecated mipi_dsi_picture_parameter_set() call in
> raydium_rm69220_prepare() with mipi_dsi_picture_parameter_set_multi(),
> as suggested in Documentation/gpu/todo.rst. Also convert the subsequent
> mipi_dsi_compression_mode() and msleep(28) calls to
> mipi_dsi_compression_mode_multi() and mipi_dsi_msleep() so the whole
> DSC setup sequence shares one mipi_dsi_multi_context and a single
> error check.
> 
> The _multi() helpers log transfer errors automatically, removing the
> need for the manual dev_err() calls. As before, the 28ms delay is
> skipped on failure. The command sequence and error cleanup path are
> unchanged.
> 
> Signed-off-by: Hsieh Hung-En <hungen3108@gmail.com>
> ---
>   drivers/gpu/drm/panel/panel-raydium-rm69220.c | 18 ++++++------------
>   1 file changed, 6 insertions(+), 12 deletions(-)
> 
> diff --git a/drivers/gpu/drm/panel/panel-raydium-rm69220.c b/drivers/gpu/drm/panel/panel-raydium-rm69220.c
> index 3030f8b89760..ce680fb38798 100644
> --- a/drivers/gpu/drm/panel/panel-raydium-rm69220.c
> +++ b/drivers/gpu/drm/panel/panel-raydium-rm69220.c
> @@ -218,6 +218,7 @@ static int raydium_rm69220_off(struct raydium_rm69220 *ctx)
>   static int raydium_rm69220_prepare(struct drm_panel *panel)
>   {
>   	struct raydium_rm69220 *ctx = to_raydium_rm69220(panel);
> +	struct mipi_dsi_multi_context dsi_ctx = { .dsi = ctx->dsi };
>   	struct device *dev = &ctx->dsi->dev;
>   	struct drm_dsc_picture_parameter_set pps;
>   	int ret;
> @@ -237,20 +238,13 @@ static int raydium_rm69220_prepare(struct drm_panel *panel)
>   	}
>   
>   	drm_dsc_pps_payload_pack(&pps, &ctx->dsc);
> +	mipi_dsi_picture_parameter_set_multi(&dsi_ctx, &pps);
> +	mipi_dsi_compression_mode_multi(&dsi_ctx, true);
> +	mipi_dsi_msleep(&dsi_ctx, 28);
>   
> -	ret = mipi_dsi_picture_parameter_set(ctx->dsi, &pps);
> -	if (ret < 0) {
> -		dev_err(dev, "failed to transmit PPS: %d\n", ret);
> -		goto err;
> -	}
> -
> -	ret = mipi_dsi_compression_mode(ctx->dsi, true);
> -	if (ret < 0) {
> -		dev_err(dev, "failed to enable compression mode: %d\n", ret);
> +	ret = dsi_ctx.accum_err;
> +	if (ret)
>   		goto err;
> -	}
> -
> -	msleep(28);

Same here:
if (!dsi_ctx.accum_err)
	return 0;

>   
>   	return 0;
>   


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2026-12-03  9:34 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-12-03  5:10 [PATCH 0/3] drm/panel: Convert nt37705 and rm69220 prepare() to _multi() Hsieh Hung-En
2026-12-03  5:10 ` [PATCH 1/3] drm/panel: novatek-nt37705: Fix prepare error cleanup Hsieh Hung-En
2026-12-03  9:32   ` neil.armstrong
2026-12-03  5:10 ` [PATCH 2/3] drm/panel: novatek-nt37705: Use mipi_dsi_*_multi() in prepare() Hsieh Hung-En
2026-12-03  9:33   ` neil.armstrong
2026-12-03  5:10 ` [PATCH 3/3] drm/panel: raydium-rm69220: " Hsieh Hung-En
2026-12-03  9:34   ` neil.armstrong

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®