<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote gmail_quote_container"><div dir="ltr" class="gmail_attr">On Thu, Mar 6, 2025 at 12:26 PM Tejas Vipin <<a href="mailto:tejasvipin76@gmail.com">tejasvipin76@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br>
<br>
On 3/6/25 9:03 PM, Anusha Srivatsa wrote:<br>
> On Thu, Mar 6, 2025 at 11:29 AM Dmitry Baryshkov <<br>
> <a href="mailto:dmitry.baryshkov@linaro.org" target="_blank">dmitry.baryshkov@linaro.org</a>> wrote:<br>
> <br>
>> On Thu, 6 Mar 2025 at 17:10, Anusha Srivatsa <<a href="mailto:asrivats@redhat.com" target="_blank">asrivats@redhat.com</a>> wrote:<br>
>>><br>
>>><br>
>>><br>
>>> On Thu, Mar 6, 2025 at 4:31 AM Maxime Ripard <<a href="mailto:mripard@kernel.org" target="_blank">mripard@kernel.org</a>> wrote:<br>
>>>><br>
>>>> Hi Anusha,<br>
>>>><br>
>>>> On Wed, Mar 05, 2025 at 07:01:41PM -0500, Anusha Srivatsa wrote:<br>
>>>>> Move away from using deprecated API and use _multi<br>
>>>>> variants if available. Use mipi_dsi_msleep()<br>
>>>>> and mipi_dsi_usleep_range() instead of msleep()<br>
>>>>> and usleep_range() respectively.<br>
>>>>><br>
>>>>> Used Coccinelle to find the multiple occurences.<br>
>>>>> SmPl patch:<br>
>>>>> @rule@<br>
>>>>> identifier dsi_var;<br>
>>>>> identifier r;<br>
>>>>> identifier func;<br>
>>>>> type t;<br>
>>>>> position p;<br>
>>>>> expression dsi_device;<br>
>>>>> expression list es;<br>
>>>>> @@<br>
>>>>> t func(...) {<br>
>>>>> ...<br>
>>>>> struct mipi_dsi_device *dsi_var = dsi_device;<br>
>>>>> +struct mipi_dsi_multi_context dsi_ctx = { .dsi = dsi_var };<br>
>>>>> <+...<br>
>>>>> (<br>
>>>>> -mipi_dsi_dcs_write_seq(dsi_var,es)@p;<br>
>>>>> +mipi_dsi_dcs_write_seq_multi(&dsi_ctx,es);<br>
>>>>> |<br>
>>>>> -mipi_dsi_generic_write_seq(dsi_var,es)@p;<br>
>>>>> +mipi_dsi_generic_write_seq_multi(&dsi_ctx,es);<br>
>>>>> |<br>
>>>>> -mipi_dsi_generic_write(dsi_var,es)@p;<br>
>>>>> +mipi_dsi_generic_write_multi(&dsi_ctx,es);<br>
>>>>> |<br>
>>>>> -r = mipi_dsi_dcs_nop(dsi_var)@p;<br>
>>>>> +mipi_dsi_dcs_nop_multi(&dsi_ctx);<br>
>>>>> |<br>
>>>>> ....rest of API<br>
>>>>> ..<br>
>>>>> )<br>
>>>>> -if(r < 0) {<br>
>>>>> -...<br>
>>>>> -}<br>
>>>>> ...+><br>
>>>><br>
>>>> The point of sending a single patch was to review the coccinelle script,<br>
>>>> so you must put the entire script you used here.<br>
>>>><br>
>>><br>
>>> I was actually thinking of sending patches per driver this time around<br>
>> since Tejas also seems to be looking into similar parts....Thoughts?<br>
>><br>
>> Have you discussed it with Tejas? What is his next target?<br>
>><br>
>> I was hoping he will have some feedback on this patch and we could take it<br>
> from there.....<br>
> It *should* be okay for me to send all changes in a single series...<br>
> <br>
> Anusha<br>
><br>
<br>
There's 5 more panels that use dcs/generic write_seq(). Maybe I could<br>
work on those (himax-hx8394, samsung-sofef00, samsung-s6d7aa0,<br>
boe-bf060y8m-aj0, jdi-lpm102a188a) while you work on transitioning the<br>
rest of the panels (excluding these) that use other functions in the <br>
old API? When either of us finishes before the other we could have <br>
another discussion about splitting work if necessary. I'm open to other<br>
suggestions too<br></blockquote><div><br></div><div>Like the suggestion! Thanks Tejas. </div><div><br></div><div>Anusha <br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
>>>>> Cc: Maxime Ripard <<a href="mailto:maxime.ripard@bootlin.com" target="_blank">maxime.ripard@bootlin.com</a>><br>
>>>><br>
>>>> That hasn't been my email address for 6 years :)<br>
>>>><br>
>>> My bad. Will change this.<br>
>><br>
>><br>
>><br>
>> --<br>
>> With best wishes<br>
>> Dmitry<br>
>><br>
>><br>
> <br>
<br>
-- <br>
Tejas Vipin<br>
<br>
</blockquote></div></div>