[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAD=FV=Vg6LoPzOHRj=XzCcSb7rPb=vPuCZngrf4hROZNwfj2Pg@mail.gmail.com>
Date: Tue, 22 Jul 2025 09:31:58 -0700
From: Doug Anderson <dianders@...omium.org>
To: Brigham Campbell <me@...ghamcampbell.com>
Cc: tejasvipin76@...il.com, diogo.ivo@...nico.ulisboa.pt,
skhan@...uxfoundation.org, linux-kernel-mentees@...ts.linux.dev,
dri-devel@...ts.freedesktop.org, linux-doc@...r.kernel.org,
linux-kernel@...r.kernel.org, Neil Armstrong <neil.armstrong@...aro.org>,
Jessica Zhang <jessica.zhang@....qualcomm.com>,
Maarten Lankhorst <maarten.lankhorst@...ux.intel.com>, Maxime Ripard <mripard@...nel.org>,
Thomas Zimmermann <tzimmermann@...e.de>, David Airlie <airlied@...il.com>, Simona Vetter <simona@...ll.ch>
Subject: Re: [PATCH v6 2/4] drm/panel: jdi-lpm102a188a: Fix bug and clean up driver
Hi,
On Mon, Jul 21, 2025 at 6:53 PM Brigham Campbell <me@...ghamcampbell.com> wrote:
>
> Fix bug in unprepare() which causes the function's return value to be
> that of the last mipi "enter sleep mode" command.
>
> Update driver to use the "multi" variant of MIPI functions in order to
> facilitate improved error handling and remove the panel's dependency on
> deprecated MIPI functions.
>
> Use the new mipi_dsi_dual macro to reduce code duplication.
>
> Reviewed-by: Douglas Anderson <dianders@...omium.org>
> Reviewed-by: Diogo Ivo <diogo.ivo@...nico.ulisboa.pt>
> Tested-by: Diogo Ivo <diogo.ivo@...nico.ulisboa.pt>
> Signed-off-by: Brigham Campbell <me@...ghamcampbell.com>
> ---
> drivers/gpu/drm/panel/panel-jdi-lpm102a188a.c | 196 ++++++------------
> 1 file changed, 59 insertions(+), 137 deletions(-)
Just for fun, I ran bloat-o-meter to compare before and after.
add/remove: 0/0 grow/shrink: 0/3 up/down: 0/-217 (-217)
Function old new delta
jdi_write_dcdc_registers.d 10 5 -5
jdi_panel_unprepare 312 260 -52
jdi_panel_prepare 1020 860 -160
Total: Before=4908, After=4691, chg -4.42%
...not as big of a savings, but that's not too surprising in this case
since we don't have the whole pile of "seq" functions. Still the point
was making the driver cleaner and the space savings is just an extra
bonus!
-Doug
Powered by blists - more mailing lists