On 3/13/26 08:46, Doug Anderson wrote:
Hi,
On Wed, Mar 4, 2026 at 8:49 PM Chintan Patel <[email protected]> wrote:
Convert the driver to use the non-deprecated mipi_dsi_*_multi() helpers and
mipi_dsi_msleep().
Switch DCS command sequences to the multi context API and
accumulate errors via struct mipi_dsi_multi_context. Replace
open-coded error handling with the multi helpers and convert
nt36672a_send_cmds() and power sequencing accordingly.
This patch is intended to functionally be a no-op, though there is one
slight change. Previously a failure in regulator_bulk_disable() would
have caused nt36672a_panel_unprepare() to return an error. Now it
won't. No other errors in nt36672a_panel_unprepare() were propagated,
so this makes things consistent.
Signed-off-by: Chintan Patel <[email protected]>
---
Changes in v3:
- Keep local ret variable in nt36672a_panel_power_off() to preserve error code
in logging.
- Change mipi_dsi_msleep() back to regular msleep(60) in power-down sequence to
preserve behavior.
- Reset dsi_ctx.accum_err before set_display_off_multi() and before power-down
to preserve original error-tolerant shutdown behavior.
Changes in v2:
- Address alignment feedback from Doug.
- Restore original power-down ordering.
- Drop return value from nt36672a_panel_power_off().
- Consolidate error handling around dsi_ctx.accum_err.
.../gpu/drm/panel/panel-novatek-nt36672a.c | 94 ++++++-------------
1 file changed, 30 insertions(+), 64 deletions(-)
Pushed to drm-misc-next:
[1/1] drm/panel: novatek-nt36672a: Convert to mipi_dsi_*_multi() helpers
commit: bc4cb68a02f1a445aa65d8054bd69ba4ba3f5767
Thank you Doug!