mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] drm/panel: panasonic-vvx10f034n00: transition to mipi_dsi wrapped functions
@ 2025-11-27 16:08 Avinal Kumar
  2026-01-06  8:21 ` neil.armstrong
  0 siblings, 1 reply; 3+ messages in thread
From: Avinal Kumar @ 2025-11-27 16:08 UTC (permalink / raw)
  To: neil.armstrong, jessica.zhang, maarten.lankhorst, mripard,
	tzimmermann, airlied, simona, dri-devel, linux-kernel
  Cc: Avinal Kumar

Changes the panasonic-vvx10f034n00 panel to multi
style functions for improved error handling.

Signed-off-by: Avinal Kumar <avinal.xlvii@gmail.com>
---
Here is the todo list for reference: https://www.kernel.org/doc/html/latest/gpu/todo.html#transition-away-from-using-deprecated-mipi-dsi-functions

This is my first patch in Linux Kernel :)

 drivers/gpu/drm/panel/panel-panasonic-vvx10f034n00.c | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/panel/panel-panasonic-vvx10f034n00.c b/drivers/gpu/drm/panel/panel-panasonic-vvx10f034n00.c
index 3c3308fc55df..03c87c02fb57 100644
--- a/drivers/gpu/drm/panel/panel-panasonic-vvx10f034n00.c
+++ b/drivers/gpu/drm/panel/panel-panasonic-vvx10f034n00.c
@@ -44,7 +44,12 @@ static inline struct wuxga_nt_panel *to_wuxga_nt_panel(struct drm_panel *panel)
 
 static int wuxga_nt_panel_on(struct wuxga_nt_panel *wuxga_nt)
 {
-	return mipi_dsi_turn_on_peripheral(wuxga_nt->dsi);
+	struct mipi_dsi_multi_context dsi_ctx = {
+		.dsi = wuxga_nt->dsi
+	};
+
+	mipi_dsi_turn_on_peripheral_multi(&dsi_ctx);
+	return dsi_ctx.accum_err;
 }
 
 static int wuxga_nt_panel_disable(struct drm_panel *panel)
-- 
2.52.0


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

* Re: [PATCH] drm/panel: panasonic-vvx10f034n00: transition to mipi_dsi wrapped functions
  2025-11-27 16:08 [PATCH] drm/panel: panasonic-vvx10f034n00: transition to mipi_dsi wrapped functions Avinal Kumar
@ 2026-01-06  8:21 ` neil.armstrong
       [not found]   ` <CAJ9xu4wb1W08ds7f4y+5tzcpAxsNLvKDMAxpjjigsG9ipWREGQ@mail.gmail.com>
  0 siblings, 1 reply; 3+ messages in thread
From: neil.armstrong @ 2026-01-06  8:21 UTC (permalink / raw)
  To: Avinal Kumar, jessica.zhang, maarten.lankhorst, mripard,
	tzimmermann, airlied, simona, dri-devel, linux-kernel

Hi,

On 11/27/25 17:08, Avinal Kumar wrote:
> Changes the panasonic-vvx10f034n00 panel to multi
> style functions for improved error handling.
> 
> Signed-off-by: Avinal Kumar <avinal.xlvii@gmail.com>
> ---
> Here is the todo list for reference: https://www.kernel.org/doc/html/latest/gpu/todo.html#transition-away-from-using-deprecated-mipi-dsi-functions
> 
> This is my first patch in Linux Kernel :)
> 
>   drivers/gpu/drm/panel/panel-panasonic-vvx10f034n00.c | 7 ++++++-
>   1 file changed, 6 insertions(+), 1 deletion(-)
> 
> diff --git a/drivers/gpu/drm/panel/panel-panasonic-vvx10f034n00.c b/drivers/gpu/drm/panel/panel-panasonic-vvx10f034n00.c
> index 3c3308fc55df..03c87c02fb57 100644
> --- a/drivers/gpu/drm/panel/panel-panasonic-vvx10f034n00.c
> +++ b/drivers/gpu/drm/panel/panel-panasonic-vvx10f034n00.c
> @@ -44,7 +44,12 @@ static inline struct wuxga_nt_panel *to_wuxga_nt_panel(struct drm_panel *panel)
>   
>   static int wuxga_nt_panel_on(struct wuxga_nt_panel *wuxga_nt)
>   {
> -	return mipi_dsi_turn_on_peripheral(wuxga_nt->dsi);
> +	struct mipi_dsi_multi_context dsi_ctx = {
> +		.dsi = wuxga_nt->dsi
> +	};
> +
> +	mipi_dsi_turn_on_peripheral_multi(&dsi_ctx);
> +	return dsi_ctx.accum_err;
>   }
>   
>   static int wuxga_nt_panel_disable(struct drm_panel *panel)

Why didn't you also update wuxga_nt_panel_disable() ?

Thanks,
Neil

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

* Re: [PATCH] drm/panel: panasonic-vvx10f034n00: transition to mipi_dsi wrapped functions
       [not found]   ` <CAJ9xu4wb1W08ds7f4y+5tzcpAxsNLvKDMAxpjjigsG9ipWREGQ@mail.gmail.com>
@ 2026-01-06  8:56     ` Neil Armstrong
  0 siblings, 0 replies; 3+ messages in thread
From: Neil Armstrong @ 2026-01-06  8:56 UTC (permalink / raw)
  To: Avinal Kumar
  Cc: jessica.zhang, maarten.lankhorst, mripard, tzimmermann, airlied,
	simona, dri-devel, linux-kernel

On 1/6/26 09:53, Avinal Kumar wrote:
> Hello Neil,
> 
> Unlike mipi_dsi_turn_on_peripheral, mipi_dsi_shutdown_peripheral isn't marked deprecated, and no multi function available yet. And I wanted to keep it simple for the first patch.
> 
> If it is okay, I can:
> - Create another patch or update this patch, to add a mipi_dsi_shutdown_peripheral_multi() function and deprecate the normal function.
> - Update the remaining function in this patch.
> 
> Please let me know. Thank you

Yes please do that, first patch introduce mipi_dsi_shutdown_peripheral_multi(), then second patch switch to multi
for wuxga_nt_panel_on() and wuxga_nt_panel_disable().

Thanks,
Neil

> 
> 
> On Tue, Jan 6, 2026 at 1:51 PM <neil.armstrong@linaro.org <mailto:neil.armstrong@linaro.org>> wrote:
> 
>     Hi,
> 
>     On 11/27/25 17:08, Avinal Kumar wrote:
>      > Changes the panasonic-vvx10f034n00 panel to multi
>      > style functions for improved error handling.
>      >
>      > Signed-off-by: Avinal Kumar <avinal.xlvii@gmail.com <mailto:avinal.xlvii@gmail.com>>
>      > ---
>      > Here is the todo list for reference: https://www.kernel.org/doc/html/latest/gpu/todo.html#transition-away-from-using-deprecated-mipi-dsi-functions <https://www.kernel.org/doc/html/latest/gpu/todo.html#transition-away-from-using-deprecated-mipi-dsi-functions>
>      >
>      > This is my first patch in Linux Kernel :)
>      >
>      >   drivers/gpu/drm/panel/panel-panasonic-vvx10f034n00.c | 7 ++++++-
>      >   1 file changed, 6 insertions(+), 1 deletion(-)
>      >
>      > diff --git a/drivers/gpu/drm/panel/panel-panasonic-vvx10f034n00.c b/drivers/gpu/drm/panel/panel-panasonic-vvx10f034n00.c
>      > index 3c3308fc55df..03c87c02fb57 100644
>      > --- a/drivers/gpu/drm/panel/panel-panasonic-vvx10f034n00.c
>      > +++ b/drivers/gpu/drm/panel/panel-panasonic-vvx10f034n00.c
>      > @@ -44,7 +44,12 @@ static inline struct wuxga_nt_panel *to_wuxga_nt_panel(struct drm_panel *panel)
>      >
>      >   static int wuxga_nt_panel_on(struct wuxga_nt_panel *wuxga_nt)
>      >   {
>      > -     return mipi_dsi_turn_on_peripheral(wuxga_nt->dsi);
>      > +     struct mipi_dsi_multi_context dsi_ctx = {
>      > +             .dsi = wuxga_nt->dsi
>      > +     };
>      > +
>      > +     mipi_dsi_turn_on_peripheral_multi(&dsi_ctx);
>      > +     return dsi_ctx.accum_err;
>      >   }
>      >
>      >   static int wuxga_nt_panel_disable(struct drm_panel *panel)
> 
>     Why didn't you also update wuxga_nt_panel_disable() ?
> 
>     Thanks,
>     Neil
> 


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

end of thread, other threads:[~2026-01-06  8:56 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-11-27 16:08 [PATCH] drm/panel: panasonic-vvx10f034n00: transition to mipi_dsi wrapped functions Avinal Kumar
2026-01-06  8:21 ` neil.armstrong
     [not found]   ` <CAJ9xu4wb1W08ds7f4y+5tzcpAxsNLvKDMAxpjjigsG9ipWREGQ@mail.gmail.com>
2026-01-06  8:56     ` 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®