drm/panel: panasonic-vvx10f034n00: transition to mipi_dsi wrapped functions
Subsystems (3)
PATCH 1/1 drm/panel: panasonic-vvx10f034n00: transition to mipi_dsi wrapped functions
Changes the panasonic-vvx10f034n00 panel to multi
style functions for improved error handling.
---
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(-)
drivers/gpu/drm/panel/panel-panasonic-vvx10f034n00.c +6 -1
@@ -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)
Signature · 1 line
2.52.0
[email protected]
maintainerHi,
Quoted 20 lines · Avinal Kumar
Changes the panasonic-vvx10f034n00 panel to multi
style functions for improved error handling.Signed-off-by Avinal Kumar <[email protected]>---
Here is the todo list for reference: https://www.kernel.org/doc/html/latest/gpu/todo.html#transition-away-from-using-deprecated-mipi-dsi-functionsThis is my first patch in Linux Kernel :)
drivers/gpu/drm/panel/panel-panasonic-vvx10f034n00.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-)drivers/gpu/drm/panel/panel-panasonic-vvx10f034n00.c +0
-0@@ -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) {
drivers/gpu/drm/panel/panel-panasonic-vvx10f034n00.c static inline struct wuxga_nt_panel *to_wuxga_nt_panel(struct drm_panel *panel) · line 55
Quoted 10 lines
drivers/gpu/drm/panel/panel-panasonic-vvx10f034n00.c +6
-1-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
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
Quoted 42 lines · On Tue, Jan 6, 2026 at 1:51 PM <[email protected]> wrote:
Hi,
Quoted 6 lines · Avinal Kumar
Changes the panasonic-vvx10f034n00 panel to multi
style functions for improved error handling.Signed-off-by Avinal Kumar <[email protected]>---
Here is the todo list for reference:Review
Quoted 7 lines
This is my first patch in Linux Kernel :)
drivers/gpu/drm/panel/panel-panasonic-vvx10f034n00.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-)(quoted diff) +0
-0
b/drivers/gpu/drm/panel/panel-panasonic-vvx10f034n00.cdrivers/gpu/drm/panel/panel-panasonic-vvx10f034n00.c static inline struct wuxga_nt_panel
Quoted 4 lines
index
3c3308fc55df..03c87c02fb57100644drivers/gpu/drm/panel/panel-panasonic-vvx10f034n00.c +0
-0@@ -44,7 +44,12 @@ static inline struct wuxga_nt_panel*to_wuxga_nt_panel(struct
drm_panel*panel)drivers/gpu/drm/panel/panel-panasonic-vvx10f034n00.c static inline struct wuxga_nt_panel *to_wuxga_nt_panel(struct drm_panel *panel) · line 55
Quoted 13 lines
drivers/gpu/drm/panel/panel-panasonic-vvx10f034n00.c +6
-1static 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
Neil Armstrong
maintainerQuoted 9 lines · Avinal Kumar
Hello Neil,
Unlike
mipi_dsi_turn_on_peripheral,mipi_dsi_shutdown_peripheralisn'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 amipi_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
Quoted 43 lines · On Tue, Jan 6, 2026 at 1:51 PM <[email protected]…
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 <[email protected] <mailto:[email protected]>>
> ---
> 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