[PATCH 2/2] drm/mipi-dsi: Remove mipi_dsi_dcs_write_seq

2025-04-18 Thread Tejas Vipin
There are no remaining users of mipi_dsi_dcs_write_seq and it can be removed in favor of mipi_dsi_dcs_write_seq_multi. Signed-off-by: Tejas Vipin --- include/drm/drm_mipi_dsi.h | 22 -- 1 file changed, 22 deletions(-) diff --git a/include/drm/drm_mipi_dsi.h b/include/drm

[PATCH 1/2] drm/panel: panel-samsung-sofef00: transition to mipi_dsi wrapped functions

2025-04-18 Thread Tejas Vipin
Changes the samsung-sofef00 panel to use multi style functions for improved error handling. Signed-off-by: Tejas Vipin --- drivers/gpu/drm/panel/panel-samsung-sofef00.c | 70 ++- 1 file changed, 21 insertions(+), 49 deletions(-) diff --git a/drivers/gpu/drm/panel/panel-samsung

[PATCH 0/2] Transition remaining mipi_dsi_dcs_write_seq commands and remove it

2025-04-18 Thread Tejas Vipin
panel-samsung-sofef00 is the last remaining user of mipi_dsi_dcs_write_seq, so mipi_dsi_dcs_write_seq can be removed after the panel has been changed to use mipi_dsi_*_multi functions. Tejas Vipin (2): drm/panel: panel-samsung-sofef00: transition to mipi_dsi wrapped functions drm/mipi-dsi

[PATCH v3] drm/panel: boe-bf060y8m-aj0: transition to mipi_dsi wrapped functions

2025-04-12 Thread Tejas Vipin
boe_bf060y8m_aj0_prepare fails. Reviewed-by: Dmitry Baryshkov Signed-off-by: Tejas Vipin --- Changes in v3: - Disable regulators in boe_bf060y8m_aj0_prepare if boe_bf060y8m_aj0_on fails. Changes in v2: - Always set MIPI_DSI_MODE_LPM in boe_bf060y8m_aj0_off Link to v2: https://lore.kernel.org

Re: [PATCH v3] drm/panel: boe-bf060y8m-aj0: transition to mipi_dsi wrapped functions

2025-04-12 Thread Tejas Vipin
On 4/13/25 3:40 AM, Doug Anderson wrote: > Hi, > > On Fri, Apr 11, 2025 at 9:30 PM Tejas Vipin wrote: >> >> Changes the boe-bf060y8m-aj0 panel to use multi style functions for >> improved error handling. Additionally the MIPI_DSI_MODE_LPM flag is set >>

[PATCH v3] drm/panel: boe-bf060y8m-aj0: transition to mipi_dsi wrapped functions

2025-04-11 Thread Tejas Vipin
boe_bf060y8m_aj0_prepare fails. Reviewed-by: Dmitry Baryshkov Signed-off-by: Tejas Vipin --- Changes in v3: - Disable regulators in boe_bf060y8m_aj0_prepare if boe_bf060y8m_aj0_on fails. Changes in v2: - Always set MIPI_DSI_MODE_LPM in boe_bf060y8m_aj0_off Link to v2: https://lore.kernel.org

[PATCH v2] drm/panel: boe-bf060y8m-aj0: transition to mipi_dsi wrapped functions

2025-04-04 Thread Tejas Vipin
Changes the boe-bf060y8m-aj0 panel to use multi style functions for improved error handling. Additionally the MIPI_DSI_MODE_LPM flag is set after the off commands are run in boe_bf060y8m_aj0_off regardless of any failures. Reviewed-by: Dmitry Baryshkov Signed-off-by: Tejas Vipin --- Changes in

[PATCH] drm/panel: boe-bf060y8m-aj0: transition to mipi_dsi wrapped functions

2025-03-30 Thread Tejas Vipin
Changes the boe-bf060y8m-aj0 panel to use multi style functions for improved error handling. Signed-off-by: Tejas Vipin --- .../gpu/drm/panel/panel-boe-bf060y8m-aj0.c| 112 +++--- 1 file changed, 43 insertions(+), 69 deletions(-) diff --git a/drivers/gpu/drm/panel/panel-boe

[PATCH v2] drm/panel: himax-hx8394: transition to mipi_dsi wrapped functions

2025-03-25 Thread Tejas Vipin
Changes the himax-hx8394 panel to use multi style functions for improved error handling. Reviewed-by: Dmitry Baryshkov Signed-off-by: Tejas Vipin --- Changes in v2: - Revert behavior change in hx8394_enable - Move variable declaration to top of function Link to v1: https

[PATCH] drm/panel: himax-hx8394: transition to mipi_dsi wrapped functions

2025-03-22 Thread Tejas Vipin
Changes the himax-hx8394 panel to use multi style functions for improved error handling. Signed-off-by: Tejas Vipin --- drivers/gpu/drm/panel/panel-himax-hx8394.c | 444 ++--- 1 file changed, 210 insertions(+), 234 deletions(-) diff --git a/drivers/gpu/drm/panel/panel-himax

[PATCH v2] drm/panel: samsung-s6d7aa0: transition to mipi_dsi wrapped functions

2025-03-19 Thread Tejas Vipin
Changes the samsung-s6d7aa0 panel to use multi style functions for improved error handling. Signed-off-by: Tejas Vipin --- Changes in v2: - Remove unnecessary early return in s6d7aa0_lock - Remove redundant GPIO reset setting in s6d7aa0_on. Link to v1: https://lore.kernel.org/all

[PATCH] drm/panel: samsung-s6d7aa0: transition to mipi_dsi wrapped functions

2025-03-15 Thread Tejas Vipin
Changes the samsung-s6d7aa0 panel to use multi style functions for improved error handling. Signed-off-by: Tejas Vipin --- drivers/gpu/drm/panel/panel-samsung-s6d7aa0.c | 223 ++ 1 file changed, 68 insertions(+), 155 deletions(-) diff --git a/drivers/gpu/drm/panel/panel-samsung

[PATCH v4] drm/panel: novatek-nt36523: transition to mipi_dsi wrapped functions

2025-03-15 Thread Tejas Vipin
Changes the novatek-nt36523 panel to use multi style functions for improved error handling. Reviewed-by: Douglas Anderson Signed-off-by: Tejas Vipin --- Changes in v4: - Cleanup nt36523_prepare Link to v3: https://lore.kernel.org/all/20250309040355.381386-1-tejasvipi...@gmail.com

Re: [PATCH] drm/panel/synaptics-r63353: Use _multi variants

2025-03-09 Thread Tejas Vipin
ed here. >>>> >>> >>> I was actually thinking of sending patches per driver this time around >> since Tejas also seems to be looking into similar partsThoughts? >> >> Have you discussed it with Tejas? What is his next target? >> >> I was hoping he will have some feedback on this patch and we could take it > from there. > It *should* be okay for me to send all changes in a single series... > > Anusha > There's 5 more panels that use dcs/generic write_seq(). Maybe I could work on those (himax-hx8394, samsung-sofef00, samsung-s6d7aa0, boe-bf060y8m-aj0, jdi-lpm102a188a) while you work on transitioning the rest of the panels (excluding these) that use other functions in the old API? When either of us finishes before the other we could have another discussion about splitting work if necessary. I'm open to other suggestions too. >>>>> Cc: Maxime Ripard >>>> >>>> That hasn't been my email address for 6 years :) >>>> >>> My bad. Will change this. >> >> >> >> -- >> With best wishes >> Dmitry >> >> > -- Tejas Vipin

[PATCH v3] drm/panel: novatek-nt36523: transition to mipi_dsi wrapped functions

2025-03-08 Thread Tejas Vipin
Changes the novatek-nt36523 panel to use multi style functions for improved error handling. Signed-off-by: Tejas Vipin --- Changes in v3: - Remove mipi_dsi_dual_msleep - Change mipi_dsi_dual_dcs_write_seq_multi to use the same dsi_ctx by swapping the dsi accordingly. Link to v2

[PATCH v2 2/2] drm/panel: novatek-nt36523: transition to mipi_dsi wrapped functions

2025-03-07 Thread Tejas Vipin
Changes the novatek-nt36523 panel to use multi style functions for improved error handling. Additionally, novatek-nt36523 will now continue to execute the init sequence on one of the DSI devices on an error occurring on the other one. Signed-off-by: Tejas Vipin --- Changes in v2: - Uses

[PATCH v2 0/2] Add mipi_dsi_dual_msleep and use multi functions in novatek-nt36523

2025-03-07 Thread Tejas Vipin
Introduces mipi_dsi_dual_msleep to be used with double-DSI panels and converts novatek-nt36523 to use multi style functions including mipi_dsi_dual_msleep. In this process, minor changes to novatek-nt36523's behavior are introduced. Tejas Vipin (2): drm/mipi-dsi: Add mipi_dsi_dual_msleep

[PATCH v2 1/2] drm/mipi-dsi: Add mipi_dsi_dual_msleep

2025-03-07 Thread Tejas Vipin
Introduces mipi_dsi_dual_msleep to make it easier to use msleep in the case of a double-DSI panel. Signed-off-by: Tejas Vipin --- include/drm/drm_mipi_dsi.h | 6 ++ 1 file changed, 6 insertions(+) diff --git a/include/drm/drm_mipi_dsi.h b/include/drm/drm_mipi_dsi.h index bd40a443385c

Re: [PATCH] drm/panel: novatek-nt36523: transition to mipi_dsi wrapped functions

2025-03-06 Thread Tejas Vipin
On 3/6/25 10:58 PM, Doug Anderson wrote: > Hi, > > On Thu, Mar 6, 2025 at 6:05 AM wrote: >> >> On 06/03/2025 14:43, Tejas Vipin wrote: >>> Changes the novatek-nt36523 panel to use multi style functions for >>> improved error handling. >>> >&

[PATCH] drm/panel: novatek-nt36523: transition to mipi_dsi wrapped functions

2025-03-06 Thread Tejas Vipin
Changes the novatek-nt36523 panel to use multi style functions for improved error handling. Signed-off-by: Tejas Vipin --- drivers/gpu/drm/panel/panel-novatek-nt36523.c | 1683 - 1 file changed, 823 insertions(+), 860 deletions(-) diff --git a/drivers/gpu/drm/panel/panel

[PATCH v2] drm/mipi-dsi: extend "multi" functions and use them in sony-td4353-jdi

2025-02-19 Thread Tejas Vipin
Removes mipi_dsi_dcs_set_tear_off and replaces it with a multi version as after replacing it in sony-td4353-jdi, it doesn't appear anywhere else. sony-td4353-jdi is converted to use multi style functions, including mipi_dsi_dcs_set_tear_off_multi. Signed-off-by: Tejas Vipin --- Changes

Re: [PATCH 2/2] drm/panel: sony-td4353-jdi: transition to mipi_dsi wrapped functions

2025-02-14 Thread Tejas Vipin
On 2/15/25 6:12 AM, Doug Anderson wrote: > Hi, > > On Fri, Feb 14, 2025 at 9:30 AM Tejas Vipin wrote: >> >> Change the sony-td4353-jdi panel to use multi style functions for >> improved error handling. >> >> Signed-off-by: Tejas Vipin >> --- >

[PATCH 0/2] extend "multi" functions and use them in sony-td4353-jdi

2025-02-14 Thread Tejas Vipin
This patch removes mipi_dsi_dcs_set_tear_off and replaces it with a multi version as after replacing it in sony-td4353-jdi, it doesn't appear anywhere else. sony-td4353-jdi is converted to use multi style functions, including mipi_dsi_dcs_set_tear_off_multi. Tejas Vipin (2): drm/mip

[PATCH 1/2] drm/mipi-dsi: Replace mipi_dsi_dcs_set_tear_off with its multi version

2025-02-14 Thread Tejas Vipin
mipi_dsi_dcs_set_tear_off can heavily benefit from being converted to a multi style function as it is often called in the context of similar functions. Signed-off-by: Tejas Vipin --- drivers/gpu/drm/drm_mipi_dsi.c | 42 +++--- include/drm/drm_mipi_dsi.h | 2

[PATCH 2/2] drm/panel: sony-td4353-jdi: transition to mipi_dsi wrapped functions

2025-02-14 Thread Tejas Vipin
Change the sony-td4353-jdi panel to use multi style functions for improved error handling. Signed-off-by: Tejas Vipin --- drivers/gpu/drm/panel/panel-sony-td4353-jdi.c | 107 -- 1 file changed, 23 insertions(+), 84 deletions(-) diff --git a/drivers/gpu/drm/panel/panel-sony

[PATCH v2] drm/panel: visionox-r66451: transition to mipi_dsi wrapped functions

2025-02-10 Thread Tejas Vipin
Change the visionox-r66451 panel to use multi style functions for improved error handling. Additionally, always drop LPM flag after sending init sequence. Signed-off-by: Tejas Vipin --- Changes in v2: - Fixed visionox_r66451_enable to return dsi_ctx.accum_err - Mentioned changed

[PATCH] drm/panel: visionox-r66451: transition to mipi_dsi wrapped functions

2025-02-07 Thread Tejas Vipin
Change the visionox-r66451 panel to use multi style functions for improved error handling. Signed-off-by: Tejas Vipin --- drivers/gpu/drm/panel/panel-visionox-r66451.c | 179 -- 1 file changed, 76 insertions(+), 103 deletions(-) diff --git a/drivers/gpu/drm/panel/panel

[PATCH] drm/panel: sharp-ls060t1sx01: transition to mipi_dsi wrapped functions

2025-02-01 Thread Tejas Vipin
Changes the sharp-ls060t1sx01 panel to use multi style functions for improved error handling. Signed-off-by: Tejas Vipin --- .../gpu/drm/panel/panel-sharp-ls060t1sx01.c | 59 +-- 1 file changed, 16 insertions(+), 43 deletions(-) diff --git a/drivers/gpu/drm/panel/panel-sharp

[PATCH v2] drm/panel: samsung-s6e88a0-ams452ef01: transition to mipi_dsi wrapped functions

2025-01-21 Thread Tejas Vipin
Changes the samsung-s6e88a0-ams452ef01 panel to use multi style functions for improved error handling. Reviewed-by: Douglas Anderson Signed-off-by: Tejas Vipin --- Changes in v2: - changed s6e88a0_ams452ef01_off to return void Link to v1: https://lore.kernel.org/all/20250121134819.251718

[PATCH] drm/panel: samsung-s6e88a0-ams452ef01: transition to mipi_dsi wrapped functions

2025-01-21 Thread Tejas Vipin
Changes the samsung-s6e88a0-ams452ef01 panel to use multi style functions for improved error handling. Signed-off-by: Tejas Vipin --- .../panel/panel-samsung-s6e88a0-ams452ef01.c | 89 +++ 1 file changed, 31 insertions(+), 58 deletions(-) diff --git a/drivers/gpu/drm/panel

[PATCH v2] drm/panel: xinpeng-xpp055c272: transition to mipi_dsi wrapped functions

2025-01-07 Thread Tejas Vipin
Changes the xinpeng-xpp055c272 panel to use multi style functions for improved error handling. Reviewed-by: Neil Armstrong Signed-off-by: Tejas Vipin --- Changes in v2: - Changed print statement to conditionally run - Removed unnecessary error message - Reverted 2 mipi_dsi_msleep to

Re: [PATCH] drm/panel: xinpeng-xpp055c272: transition to mipi_dsi wrapped functions

2025-01-07 Thread Tejas Vipin
On 1/7/25 10:18 AM, Doug Anderson wrote: > Hi, > > On Mon, Jan 6, 2025 at 8:21 PM Tejas Vipin wrote: >> >>>>> - ret = xpp055c272_init_sequence(ctx); >>>>> - if (ret < 0) { >>>>> - dev_err(ctx->dev,

Re: [PATCH] drm/panel: xinpeng-xpp055c272: transition to mipi_dsi wrapped functions

2025-01-06 Thread Tejas Vipin
; - } >>> + xpp055c272_init_sequence(&dsi_ctx); >>> + dev_dbg(ctx->dev, "Panel init sequence done\n"); > > Should the above print be only if "accum_err" is 0? That would match > the previous behavior. I guess I would have also left the print as > part of xpp055c272_init_sequence() unless there's a reason for moving > it... I don't think it should print only if accum_err is 0. In the previous code, it would just print after all the msleeps and write_seqs are done, with no error checking at any point. The reason I've moved the print outside the function is because we are able to reduce a couple lines of code by passing dsi_ctx to the function instead of ctx. If I'd kept the print inside, it would require us to declare a `struct device*` variable which would require ctx as far as I've seen and just overall introduces some lines that we could otherwise avoid. I've done this in a couple other panels too. I'll do a v2 with the other suggested changes. -- Tejas Vipin

[PATCH] drm/panel: ebbg-ft8719: transition to mipi_dsi wrapped functions

2025-01-05 Thread Tejas Vipin
Changes the ebbg-ft8719 panel to use multi style functions for improved error handling. Signed-off-by: Tejas Vipin --- drivers/gpu/drm/panel/panel-ebbg-ft8719.c | 67 ++- 1 file changed, 16 insertions(+), 51 deletions(-) diff --git a/drivers/gpu/drm/panel/panel-ebbg-ft8719

[PATCH] drm/panel: xinpeng-xpp055c272: transition to mipi_dsi wrapped functions

2024-12-22 Thread Tejas Vipin
Changes the xinpeng-xpp055c272 panel to use multi style functions for improved error handling. Signed-off-by: Tejas Vipin --- .../gpu/drm/panel/panel-xinpeng-xpp055c272.c | 185 -- 1 file changed, 84 insertions(+), 101 deletions(-) diff --git a/drivers/gpu/drm/panel/panel

Re: [PATCH] drm/panel: leadtek-ltk050h3146w: transition to mipi_dsi wrapped functions

2024-10-30 Thread Tejas Vipin
On 10/29/24 12:24 AM, Doug Anderson wrote: > Hi, > > On Fri, Oct 25, 2024 at 9:00 PM Tejas Vipin wrote: >> >> @@ -418,79 +398,42 @@ static const struct ltk050h3146w_desc >> ltk050h3146w_data = { >> MIPI_DSI_MODE_LPM | MIPI_DSI_MODE_NO_EOT

[PATCH] drm/panel: leadtek-ltk050h3146w: transition to mipi_dsi wrapped functions

2024-10-25 Thread Tejas Vipin
Changes the leadtek-ltk050h3146w panel to use multi style functions for improved error handling. Signed-off-by: Tejas Vipin --- .../drm/panel/panel-leadtek-ltk050h3146w.c| 345 +++--- 1 file changed, 134 insertions(+), 211 deletions(-) diff --git a/drivers/gpu/drm/panel/panel

[PATCH v3] drm/panel: elida-kd35t133: transition to mipi_dsi wrapped functions

2024-09-25 Thread Tejas Vipin
Changes the elida-kd35t133 panel to use multi style functions for improved error handling. Reviewed-by: Jessica Zhang Reviewed-by: Dmitry Baryshkov Signed-off-by: Tejas Vipin --- Changes in v3: - Added back bytes that were removed - Replaced mipi_dsi_dcs_write_buffer_multi with

Re: [PATCH v2] drm/panel: elida-kd35t133: transition to mipi_dsi wrapped functions

2024-09-24 Thread Tejas Vipin
On 9/25/24 1:25 AM, Doug Anderson wrote: > Hi, > > On Mon, Sep 23, 2024 at 5:33 AM Tejas Vipin wrote: >> >> -static int kd35t133_init_sequence(struct kd35t133 *ctx) >> +static void kd35t133_init_sequence(struct mipi_dsi_multi_context *dsi_ctx) >> { >&

[PATCH v2] drm/panel: elida-kd35t133: transition to mipi_dsi wrapped functions

2024-09-23 Thread Tejas Vipin
Changes the elida-kd35t133 panel to use multi style functions for improved error handling. Signed-off-by: Tejas Vipin --- Changes in v2: - Changed mipi_dsi_dcs_write to mipi_dsi_dcs_write_buffer_multi - Cleaned up error handling Link to v1: https://lore.kernel.org/all

Re: [PATCH] drm/panel: elida-kd35t133: transition to mipi_dsi wrapped functions

2024-09-21 Thread Tejas Vipin
On 9/20/24 9:59 PM, Dmitry Baryshkov wrote: > On Tue, Sep 17, 2024 at 12:47:10PM GMT, Tejas Vipin wrote: >> Changes the elida-kd35t133 panel to use multi style functions for >> improved error handling. >> >> Signed-off-by: Tejas Vipin >> --- >> drive

[PATCH] drm/panel: elida-kd35t133: transition to mipi_dsi wrapped functions

2024-09-17 Thread Tejas Vipin
Changes the elida-kd35t133 panel to use multi style functions for improved error handling. Signed-off-by: Tejas Vipin --- drivers/gpu/drm/panel/panel-elida-kd35t133.c | 107 --- 1 file changed, 45 insertions(+), 62 deletions(-) diff --git a/drivers/gpu/drm/panel/panel-elida

[PATCH v2] drm/panel: raydium-rm69380: transition to mipi_dsi wrapped functions

2024-09-13 Thread Tejas Vipin
Changes the raydium-rm69380 panel to use multi style functions for improved error handling. Reviewed-by: Douglas Anderson Signed-off-by: Tejas Vipin --- Changes in v2: - Fix whitespace issues Link to v1: https://lore.kernel.org/all/20240907140130.410349-1-tejasvipi...@gmail.com

Re: [PATCH v2] drm/gma500: replace drm_detect_hdmi_monitor() with drm_display_info.is_hdmi

2024-09-12 Thread Tejas Vipin
On 9/12/24 12:49 PM, Thomas Zimmermann wrote: > Hi > > Am 11.09.24 um 20:06 schrieb Tejas Vipin: >> Replace drm_detect_hdmi_monitor() with drm_display_info.is_hdmi since >> monitor HDMI information is available after EDID is parsed. Additionally >> rewrite the

[PATCH v2] drm/gma500: replace drm_detect_hdmi_monitor() with drm_display_info.is_hdmi

2024-09-11 Thread Tejas Vipin
Replace drm_detect_hdmi_monitor() with drm_display_info.is_hdmi since monitor HDMI information is available after EDID is parsed. Additionally rewrite the code the code to have fewer indentation levels. Signed-off-by: Tejas Vipin --- Changes in v2: - Use drm_edid instead of edid Link to v1

[PATCH] drm/gma500: replace drm_detect_hdmi_monitor() with drm_display_info.is_hdmi

2024-09-09 Thread Tejas Vipin
Replace drm_detect_hdmi_monitor() with drm_display_info.is_hdmi since monitor HDMI information is available after EDID is parsed. Additionally rewrite the code the code to have fewer indentation levels. Signed-off-by: Tejas Vipin --- drivers/gpu/drm/gma500/cdv_intel_hdmi.c | 18

[PATCH] drm/panel: raydium-rm69380: transition to mipi_dsi wrapped functions

2024-09-07 Thread Tejas Vipin
Changes the raydium-rm69380 panel to use multi style functions for improved error handling. Signed-off-by: Tejas Vipin --- drivers/gpu/drm/panel/panel-raydium-rm69380.c | 95 ++- 1 file changed, 30 insertions(+), 65 deletions(-) diff --git a/drivers/gpu/drm/panel/panel-raydium

Re: [PATCH] drm/panel: himax-hx83112a: transition to mipi_dsi wrapped functions

2024-09-07 Thread Tejas Vipin
On 9/7/24 3:53 AM, Jessica Zhang wrote: > > > On 9/6/2024 3:14 PM, Jessica Zhang wrote: >> >> >> On 9/4/2024 7:15 AM, Tejas Vipin wrote: >>> Changes the himax-hx83112a panel to use multi style functions for >>> improved error handling. >>

[PATCH] drm/panel: himax-hx83112a: transition to mipi_dsi wrapped functions

2024-09-04 Thread Tejas Vipin
Changes the himax-hx83112a panel to use multi style functions for improved error handling. Signed-off-by: Tejas Vipin --- drivers/gpu/drm/panel/panel-himax-hx83112a.c | 297 +-- 1 file changed, 136 insertions(+), 161 deletions(-) diff --git a/drivers/gpu/drm/panel/panel-himax

[PATCH] drm/panel: samsung-s6e3fa7: transition to mipi_dsi wrapped functions

2024-09-02 Thread Tejas Vipin
Changes the samsung-s6e3fa7 panel to use multi style functions for improved error handling. Signed-off-by: Tejas Vipin --- drivers/gpu/drm/panel/panel-samsung-s6e3fa7.c | 71 ++- 1 file changed, 21 insertions(+), 50 deletions(-) diff --git a/drivers/gpu/drm/panel/panel-samsung

[PATCH v2] drm/panel: novatek-nt35950: transition to mipi_dsi wrapped functions

2024-08-28 Thread Tejas Vipin
Changes the novatek-nt35950 panel to use multi style functions for improved error handling. Reviewed-by: Neil Armstrong Signed-off-by: Tejas Vipin --- Changes in v2: - Style changes - Fixed changes in logic v1: https://lore.kernel.org/all/20240824084422.202946-1-tejasvipi...@gmail.com

[PATCH] drm/panel: novatek-nt35950: transition to mipi_dsi wrapped functions

2024-08-24 Thread Tejas Vipin
Changes the novatek-nt35950 panel to use multi style functions for improved error handling. Signed-off-by: Tejas Vipin --- drivers/gpu/drm/panel/panel-novatek-nt35950.c | 214 ++ 1 file changed, 70 insertions(+), 144 deletions(-) diff --git a/drivers/gpu/drm/panel/panel-novatek

[PATCH v2 2/2] drm/panel: mantix-mlaf057we51: write hex in lowercase

2024-08-20 Thread Tejas Vipin
Converts uppercase hex to lowercase hex for cleanup. Signed-off-by: Tejas Vipin --- drivers/gpu/drm/panel/panel-mantix-mlaf057we51.c | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/drivers/gpu/drm/panel/panel-mantix-mlaf057we51.c b/drivers/gpu/drm/panel/panel

[PATCH v2 1/2] drm/panel: mantix-mlaf057we51: transition to mipi_dsi wrapped functions

2024-08-20 Thread Tejas Vipin
Changes the mantix-mlaf057we51 panel to use multi style functions for improved error handling. Reviewed-by: Guido Günther Reviewed-by: Douglas Anderson Signed-off-by: Tejas Vipin --- .../gpu/drm/panel/panel-mantix-mlaf057we51.c | 77 +++ 1 file changed, 26 insertions(+), 51

[PATCH v2 0/2] convert mantix-mlaf057we51 to use multi style functions and cleanup

2024-08-20 Thread Tejas Vipin
Uses mipi_dsi_*_multi function in the mantix-mlaf057we51 panel and converting uppercase hex to lowercase hex for cleanup. --- Changes in v2: - Split cleanup changes into separate patch v1: https://lore.kernel.org/all/20240818072356.870465-1-tejasvipi...@gmail.com/ --- Tejas Vipin (2): drm

[PATCH] drm/panel: mantix-mlaf057we51: transition to mipi_dsi wrapped functions

2024-08-18 Thread Tejas Vipin
Changes the mantix-mlaf057we51 panel to use multi style functions for improved error handling. Signed-off-by: Tejas Vipin --- .../gpu/drm/panel/panel-mantix-mlaf057we51.c | 79 +++ 1 file changed, 27 insertions(+), 52 deletions(-) diff --git a/drivers/gpu/drm/panel/panel

[PATCH v3 2/2] drm/panel: jdi-fhd-r63452: transition to mipi_dsi wrapped functions

2024-08-17 Thread Tejas Vipin
Changes the jdi-fhd-r63452 panel to use multi style functions for improved error handling. Reviewed-by: Douglas Anderson Signed-off-by: Tejas Vipin --- drivers/gpu/drm/panel/panel-jdi-fhd-r63452.c | 149 ++- 1 file changed, 48 insertions(+), 101 deletions(-) diff --git a

[PATCH v3 1/2] drm/mipi-dsi: Add mipi_dsi_dcs_set_tear_scanline_multi

2024-08-17 Thread Tejas Vipin
mipi_dsi_dcs_set_tear_scanline_multi can heavily benefit from being converted to a multi style function as it is often called in the context of similar functions. Reviewed-by: Douglas Anderson Signed-off-by: Tejas Vipin --- drivers/gpu/drm/drm_mipi_dsi.c | 31

[PATCH v3 0/2] extend "multi" functions and use them in jdi-fhd-r63452

2024-08-17 Thread Tejas Vipin
/ --- Tejas Vipin (2): drm/mipi-dsi: Add mipi_dsi_dcs_set_tear_scanline_multi drm/panel: jdi-fhd-r63452: transition to mipi_dsi wrapped functions drivers/gpu/drm/drm_mipi_dsi.c | 31 drivers/gpu/drm/panel/panel-jdi-fhd-r63452.c | 149 ++- include/drm

[PATCH v2 2/2] drm/panel: jdi-fhd-r63452: transition to mipi_dsi wrapped functions

2024-08-12 Thread Tejas Vipin
Changes the jdi-fhd-r63452 panel to use multi style functions for improved error handling. Signed-off-by: Tejas Vipin --- drivers/gpu/drm/panel/panel-jdi-fhd-r63452.c | 150 ++- 1 file changed, 49 insertions(+), 101 deletions(-) diff --git a/drivers/gpu/drm/panel/panel-jdi-fhd

[PATCH v2 1/2] drm/mipi-dsi: Add mipi_dsi_dcs_set_tear_scanline_multi

2024-08-12 Thread Tejas Vipin
mipi_dsi_dcs_set_tear_scanline_multi can heavily benefit from being converted to a multi style function as it is often called in the context of similar functions. Reviewed-by: Douglas Anderson Signed-off-by: Tejas Vipin --- drivers/gpu/drm/drm_mipi_dsi.c | 31

[PATCH v2 0/2] extend "multi" functions and use them in jdi-fhd-r63452

2024-08-12 Thread Tejas Vipin
...@gmail.com/ --- Changes in v2: - Fixed return values - Removed extra error messages v1: https://lore.kernel.org/all/20240810045404.188146-1-tejasvipi...@gmail.com/ --- Tejas Vipin (2): drm/mipi-dsi: Add mipi_dsi_dcs_set_tear_scanline_multi drm/panel: jdi-fhd-r63452: transition to mipi_dsi

[PATCH 2/2] drm/panel: jdi-fhd-r63452: transition to mipi_dsi wrapped functions

2024-08-09 Thread Tejas Vipin
Changes the jdi-fhd-r63452 panel to use multi style functions for improved error handling. Signed-off-by: Tejas Vipin --- drivers/gpu/drm/panel/panel-jdi-fhd-r63452.c | 125 ++- 1 file changed, 39 insertions(+), 86 deletions(-) diff --git a/drivers/gpu/drm/panel/panel-jdi-fhd

[PATCH 1/2] drm/mipi-dsi: Add mipi_dsi_dcs_set_tear_scanline_multi

2024-08-09 Thread Tejas Vipin
mipi_dsi_dcs_set_tear_scanline_multi can heavily benefit from being converted to a multi style function as it is often called in the context of similar functions. Signed-off-by: Tejas Vipin --- drivers/gpu/drm/drm_mipi_dsi.c | 31 +++ include/drm/drm_mipi_dsi.h

[PATCH 0/2] add more multi functions for streamlined error handling

2024-08-09 Thread Tejas Vipin
This patch adds mipi_dsi_dcs_set_tear_scanline_multi to the list of multi functions and uses it with other multi functions in the jdi-fhd-r63452 panel. Tejas Vipin (2): drm/mipi-dsi: Add mipi_dsi_dcs_set_tear_scanline_multi drm/panel: jdi-fhd-r63452: transition to mipi_dsi wrapped functions

[PATCH v3 2/2] drm/panel: startek-kd070fhfid015: transition to mipi_dsi wrapped functions

2024-08-06 Thread Tejas Vipin
Use multi style wrapped functions for mipi_dsi in the startek-kd070fhfid015 panel. Signed-off-by: Tejas Vipin --- .../drm/panel/panel-startek-kd070fhfid015.c | 115 ++ 1 file changed, 35 insertions(+), 80 deletions(-) diff --git a/drivers/gpu/drm/panel/panel-startek

[PATCH v3 0/2] add more multi functions to streamline error handling

2024-08-06 Thread Tejas Vipin
...@gmail.com/ --- Tejas Vipin (2): drm/mipi-dsi: add more multi functions for better error handling drm/panel: startek-kd070fhfid015: transition to mipi_dsi wrapped functions drivers/gpu/drm/drm_mipi_dsi.c| 194 ++ .../drm/panel/panel-startek-kd070fhfid015.c

[PATCH v3 1/2] drm/mipi-dsi: add more multi functions for better error handling

2024-08-06 Thread Tejas Vipin
Add more functions that can benefit from being multi style and mark older variants as deprecated to eventually convert all mipi_dsi functions to multi style. Acked-by: Maxime Ripard Signed-off-by: Tejas Vipin --- drivers/gpu/drm/drm_mipi_dsi.c | 194 + include

Re: [PATCH v2 1/2] drm/mipi-dsi: add more multi functions for better error handling

2024-08-01 Thread Tejas Vipin
On 8/1/24 4:39 PM, Jani Nikula wrote: > On Tue, 30 Jul 2024, Tejas Vipin wrote: >> Add more functions that can benefit from being multi style and mark >> older variants as deprecated to eventually convert all mipi_dsi functions >> to multi style. > > What? > &g

Re: [PATCH v2 1/2] drm/mipi-dsi: add more multi functions for better error handling

2024-07-31 Thread Tejas Vipin
On 8/1/24 2:59 AM, Doug Anderson wrote: > Hi, > > On Mon, Jul 29, 2024 at 11:07 PM Tejas Vipin wrote: >> +/** >> + * mipi_dsi_dcs_get_display_brightness_multi() - gets the current >> brightness value >> + *of the display >> + * @ctx

[PATCH v2 2/2] drm/panel: startek-kd070fhfid015: transition to mipi_dsi wrapped functions

2024-07-29 Thread Tejas Vipin
Use multi style wrapped functions for mipi_dsi in the startek-kd070fhfid015 panel. Signed-off-by: Tejas Vipin --- .../drm/panel/panel-startek-kd070fhfid015.c | 123 ++ 1 file changed, 39 insertions(+), 84 deletions(-) diff --git a/drivers/gpu/drm/panel/panel-startek

[PATCH v2 1/2] drm/mipi-dsi: add more multi functions for better error handling

2024-07-29 Thread Tejas Vipin
Add more functions that can benefit from being multi style and mark older variants as deprecated to eventually convert all mipi_dsi functions to multi style. Signed-off-by: Tejas Vipin --- drivers/gpu/drm/drm_mipi_dsi.c | 226 + include/drm/drm_mipi_dsi.h

[PATCH v2 0/2] add more multi functions to streamline error handling

2024-07-29 Thread Tejas Vipin
transition --- Tejas Vipin (2): drm/mipi-dsi: add more multi functions for better error handling drm/panel: startek-kd070fhfid015: transition to mipi_dsi wrapped functions drivers/gpu/drm/drm_mipi_dsi.c| 226 ++ .../drm/panel/panel-startek-kd070fhfid015.c

[PATCH 2/2] drm/mipi-dsi: Change multi functions to use quiet member of mipi_dsi_multi_context

2024-07-24 Thread Tejas Vipin
Changes all the multi functions to check if the current context requires errors to be printed or not using the quiet member. Signed-off-by: Tejas Vipin --- drivers/gpu/drm/drm_mipi_dsi.c | 20 1 file changed, 20 insertions(+) diff --git a/drivers/gpu/drm/drm_mipi_dsi.c b

[PATCH 0/2] Allow errors to be silenced in multi functions

2024-07-24 Thread Tejas Vipin
multi functions without any loss of functionality once all the panels are changed to use multi functions. Tejas Vipin (2): drm/mipi-dsi: Add quiet member to mipi_dsi_multi_context struct drm/mipi-dsi: Change multi functions to use quiet member of mipi_dsi_multi_context drivers/gpu/drm

[PATCH 1/2] drm/mipi-dsi: Add quiet member to mipi_dsi_multi_context struct

2024-07-24 Thread Tejas Vipin
A "quiet" member is added to mipi_dsi_multi_context which allows silencing all the errors printed by the multi functions. Signed-off-by: Tejas Vipin --- include/drm/drm_mipi_dsi.h | 10 ++ 1 file changed, 10 insertions(+) diff --git a/include/drm/drm_mipi_dsi.h b/i

Re: [PATCH] drm/mipi-dsi: Introduce macros to create mipi_dsi_*_multi functions

2024-07-19 Thread Tejas Vipin
or message and just stringify the function name for the > error message? > The problem with any macro solution that defines new multi functions is that it creates a lot of bloat. Defining the function through macros might be smaller than defining them manually, but there are still twice as many function declarations as there would be if we went all multi. The generated code is still just as big as if we manually defined everything. I think a macro that defines functions should be more of a last resort if we don't have any other options. > -Doug -- Tejas Vipin

Re: [PATCH] drm/mipi-dsi: Introduce macros to create mipi_dsi_*_multi functions

2024-07-17 Thread Tejas Vipin
On 7/16/24 10:31 PM, Dmitry Baryshkov wrote: > On Tue, Jul 16, 2024 at 07:01:17PM GMT, Tejas Vipin wrote: >> Introduce 2 new macros, DSI_CTX_NO_OP and MIPI_DSI_ADD_MULTI_VARIANT. >> >> DSI_CTX_NO_OP calls a function only if the context passed to it hasn't >>

[PATCH] drm/mipi-dsi: Introduce macros to create mipi_dsi_*_multi functions

2024-07-16 Thread Tejas Vipin
i_dsi function that follows a certain style. This allows us to greatly reduce the amount of redundant code written for each multi function. It reduces the overhead for a developer introducing new mipi_dsi_*_multi functions. Signed-off-by: Tejas Vipin --- drivers/gpu/drm/drm_mipi_dsi.c

Re: [PATCH 1/2] drm/mipi-dsi: add more multi functions for better error handling

2024-07-09 Thread Tejas Vipin
On 7/9/24 5:50 AM, Doug Anderson wrote: > Hi, > > On Fri, Jun 28, 2024 at 11:25 AM Tejas Vipin wrote: >> >> +/** >> + * mipi_dsi_dcs_set_page_address_multi() - define the column extent of the >> + * frame memory accessed by the host processor >

[PATCH 2/2] drm/panel: startek-kd070fhfid015: transition to mipi_dsi wrapped functions

2024-06-28 Thread Tejas Vipin
Use multi style wrapped functions for mipi_dsi in the startek-kd070fhfid015 panel. Signed-off-by: Tejas Vipin --- .../drm/panel/panel-startek-kd070fhfid015.c | 107 ++ 1 file changed, 35 insertions(+), 72 deletions(-) diff --git a/drivers/gpu/drm/panel/panel-startek

[PATCH 1/2] drm/mipi-dsi: add more multi functions for better error handling

2024-06-28 Thread Tejas Vipin
Add more functions that can benefit from being multi style, which reduces code size in panels where they appear. Signed-off-by: Tejas Vipin --- drivers/gpu/drm/drm_mipi_dsi.c | 164 + include/drm/drm_mipi_dsi.h | 10 ++ 2 files changed, 174 insertions

[PATCH 0/2] add more multi functions to streamline error handling

2024-06-28 Thread Tejas Vipin
This series adds more multi style functions and uses them in the startek-kd070fhfid015 panel effectively. Tejas Vipin (2): drm/mipi-dsi: add more multi functions for better error handling drm/panel: startek-kd070fhfid015: transition to mipi_dsi wrapped functions drivers/gpu/drm

Re: [PATCH] drm/panel: asus-z00t-tm5p5-n35596: transition to mipi_dsi wrapped functions

2024-06-28 Thread Tejas Vipin
Sorry, didn't intend to send this. please ignore it :p On 6/28/24 11:42 PM, Tejas Vipin wrote: > Use functions introduced in commit 966e397e4f60 ("drm/mipi-dsi: > Introduce mipi_dsi_*_write_seq_multi()") and commit f79d6d28d8fe > ("drm/mipi-dsi: wrap more functions

[PATCH] drm/panel: asus-z00t-tm5p5-n35596: transition to mipi_dsi wrapped functions

2024-06-28 Thread Tejas Vipin
Use functions introduced in commit 966e397e4f60 ("drm/mipi-dsi: Introduce mipi_dsi_*_write_seq_multi()") and commit f79d6d28d8fe ("drm/mipi-dsi: wrap more functions for streamline handling") for the asus-z00t-tm5p5-n35596 panel. Signed-off-by: Tejas Vipin --- .../drm/panel/p

Re: [PATCH] drm/panel: sitronix-st7703: transition to mipi_dsi wrapped functions

2024-06-26 Thread Tejas Vipin
Hi, On 6/26/24 5:55 PM, Guido Günther wrote: > Hi, > On Wed, Jun 26, 2024 at 10:22:41AM +0530, Tejas Vipin wrote: >> Use functions introduced in commit 966e397e4f60 ("drm/mipi-dsi: >> Introduce mipi_dsi_*_write_seq_multi()") and commit f79d6d28d8fe >> (&quo

[PATCH] drm/panel: sitronix-st7703: transition to mipi_dsi wrapped functions

2024-06-25 Thread Tejas Vipin
Use functions introduced in commit 966e397e4f60 ("drm/mipi-dsi: Introduce mipi_dsi_*_write_seq_multi()") and commit f79d6d28d8fe ("drm/mipi-dsi: wrap more functions for streamline handling") for sitronix-st7703 based panels. Signed-off-by: Tejas Vipin --- drivers/gpu/drm/

[PATCH] drm/panel: asus-z00t-tm5p5-n35596: transition to mipi_dsi wrapped functions

2024-06-21 Thread Tejas Vipin
Use functions introduced in commit 966e397e4f60 ("drm/mipi-dsi: Introduce mipi_dsi_*_write_seq_multi()") and commit f79d6d28d8fe ("drm/mipi-dsi: wrap more functions for streamline handling") for the asus-z00t-tm5p5-n35596 panel. Signed-off-by: Tejas Vipin --- .../drm/panel/p

[PATCH v3] drm/panel: raydium-rm692e5: transition to mipi_dsi wrapped functions

2024-06-20 Thread Tejas Vipin
pare() is changed to properly power the panel off in the case of a wider range of initialization commands failing than before. Reviewed-by: Dmitry Baryshkov Reviewed-by: Douglas Anderson Signed-off-by: Tejas Vipin --- Changes in v3: - Remove extra blank line - Expanded on error handling fu

Re: [PATCH v2] drm/panel: raydium-rm692e5: transition to mipi_dsi wrapped functions

2024-06-19 Thread Tejas Vipin
On 6/19/24 12:06 PM, Dmitry Baryshkov wrote: > On Wed, Jun 19, 2024 at 09:03:49AM GMT, Tejas Vipin wrote: >> Use functions introduced in commit 966e397e4f60 ("drm/mipi-dsi: Introduce >> mipi_dsi_*_write_seq_multi()") and commit f79d6d28d8fe >> ("drm/mipi-dsi

[PATCH v2] drm/panel: raydium-rm692e5: transition to mipi_dsi wrapped functions

2024-06-18 Thread Tejas Vipin
Use functions introduced in commit 966e397e4f60 ("drm/mipi-dsi: Introduce mipi_dsi_*_write_seq_multi()") and commit f79d6d28d8fe ("drm/mipi-dsi: wrap more functions for streamline handling") for the raydium rm692e5 panel. Signed-off-by: Tejas Vipin --- Changes in v2: -

Re: [PATCH] drm/panel: raydium-rm692e5: transition to mipi_dsi wrapped functions

2024-06-18 Thread Tejas Vipin
On 6/18/24 7:06 PM, Doug Anderson wrote: > Hi, > > On Tue, Jun 18, 2024 at 5:25 AM Tejas Vipin wrote: >> >>>> rm692e5_reset(ctx); >>>> >>>> - ret = rm692e5_on(ctx); >>>> - if (ret < 0) { >>

Re: [PATCH] drm/panel: raydium-rm692e5: transition to mipi_dsi wrapped functions

2024-06-18 Thread Tejas Vipin
On 6/18/24 1:36 AM, Doug Anderson wrote: > Hi, > > On Sat, Jun 15, 2024 at 2:40 AM Tejas Vipin wrote: >> >> @@ -168,48 +147,38 @@ static int rm692e5_prepare(struct drm_panel *panel) >> struct rm692e5_panel *ctx = to_rm692e5_panel(panel); >> str

[PATCH] drm/panel: raydium-rm692e5: transition to mipi_dsi wrapped functions

2024-06-15 Thread Tejas Vipin
Use functions introduced in commit 966e397e4f60 ("drm/mipi-dsi: Introduce mipi_dsi_*_write_seq_multi()") and commit f79d6d28d8fe ("drm/mipi-dsi: wrap more functions for streamline handling") for the raydium rm692e5 panel. Signed-off-by: Tejas Vipin --- drivers/gpu/drm

[PATCH v3] drm/panel: truly-nt35521: transition to mipi_dsi wrapped functions

2024-06-12 Thread Tejas Vipin
Use functions introduced in commit 966e397e4f60 ("drm/mipi-dsi: Introduce mipi_dsi_*_write_seq_multi()") and commit f79d6d28d8fe ("drm/mipi-dsi: wrap more functions for streamline handling") for the sony tulip truly nt35521 panel. Reviewed-by: Douglas Anderson Signed

[PATCH 0/2] fix handling of incorrect arguments by mipi_dsi_msleep

2024-06-12 Thread Tejas Vipin
s ctx by reference (similar to other functions), mipi_dsi_msleep can be modified to treat ctx as a pointer and do it correctly, and the other calls to this macro can be adjusted accordingly. Tejas Vipin (2): drm/panel : himax-hx83102: fix incorrect argument to mipi_dsi_msleep drm/mipi-dsi

[PATCH 1/2] drm/panel : himax-hx83102: fix incorrect argument to mipi_dsi_msleep

2024-06-12 Thread Tejas Vipin
mipi_dsi_msleep should be modified to accept ctx as a pointer and the function call should be adjusted accordingly. Fixes: a2ab7cb169da3 ("drm/panel: himax-hx83102: use wrapped MIPI DCS functions") Signed-off-by: Tejas Vipin --- drivers/gpu/drm/panel/panel-himax-hx83102.c | 6 +++-

[PATCH 2/2] drm/mipi-dsi: fix handling of ctx in mipi_dsi_msleep

2024-06-12 Thread Tejas Vipin
ctx would be better off treated as a pointer to account for most of its usage so far, and brackets should be added to account for operator precedence for correct evaluation. Fixes: f79d6d28d8fe7 ("drm/mipi-dsi: wrap more functions for streamline handling") Signed-off-by: T

[PATCH v2] drm/panel : himax-hx83102: fix incorrect argument to mipi_dsi_msleep

2024-06-12 Thread Tejas Vipin
mipi_dsi_msleep expects struct mipi_dsi_multi_context to be passed as a value and not as a reference. Fixes: a2ab7cb169da ("drm/panel: himax-hx83102: use wrapped MIPI DCS functions") Signed-off-by: Tejas Vipin --- Changes in v2: - Add Fixes tag v1: https://lore.kernel.org/al

[PATCH v2] drm/panel : truly-nt35521: transition to mipi_dsi wrapped functions

2024-06-12 Thread Tejas Vipin
Use functions introduced in commit 966e397e4f60 ("drm/mipi-dsi: Introduce mipi_dsi_*_write_seq_multi()") and commit f79d6d28d8fe ("drm/mipi-dsi: wrap more functions for streamline handling") for the sony tulip truly nt35521 panel. Signed-off-by: Tejas Vipin --- Changes in

  1   2   >