From: sashiko-bot@kernel.org
To: "Alexey Minnekhanov" <alexeymin@minlexx.ru>
Cc: devicetree@vger.kernel.org, dri-devel@lists.freedesktop.org,
robh@kernel.org, conor+dt@kernel.org
Subject: Re: [PATCH v2 6/9] drm/panel: novatek-nt36672a: Add 3 panels used in Xiaomi phones
Date: Thu, 17 Sep 2026 16:55:04 +0000 [thread overview]
Message-ID: <20260917165504.F10AF1F00893@smtp.kernel.org> (raw)
In-Reply-To: <20260917-nt36672a-panels-v2-6-f8de8be5b86f@minlexx.ru>
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Medium] drm/panel: nt36672a: skipped power-down sequence on partial command failure
--
commit dfbf7416bcb60d153c91f5ee831680912a52282d
Author: Alexey Minnekhanov <alexeymin@minlexx.ru>
drm/panel: novatek-nt36672a: Add 3 panels used in Xiaomi phones
This commit adds support for 3 DSI video mode panels used in Xiaomi Redmi
Note 6 Pro and Note 7, which share the Novatek NT36672A controller. The
panels use a common initialization and de-initialization sequence with
minor variations.
> diff --git a/drivers/gpu/drm/panel/panel-novatek-nt36672a.c b/drivers/gpu/drm/panel/panel-novatek-nt36672a.c
> index a445c8067aa5f..d356348d39608 100644
> --- a/drivers/gpu/drm/panel/panel-novatek-nt36672a.c
> +++ b/drivers/gpu/drm/panel/panel-novatek-nt36672a.c
[ ... ]
> +static void lavender_tulip_deinit_cmds(struct mipi_dsi_multi_context *dsi_ctx)
> +{
> + dsi_ctx->dsi->mode_flags &= ~MIPI_DSI_MODE_LPM;
> +
> + mipi_dsi_dcs_set_display_off_multi(dsi_ctx);
> + mipi_dsi_msleep(dsi_ctx, 20);
> + mipi_dsi_dcs_enter_sleep_mode_multi(dsi_ctx);
> + mipi_dsi_msleep(dsi_ctx, 120);
[Severity: Medium]
Does this sequence introduce a regression by skipping the hardware power-down
commands if the initial display-off command fails?
If mipi_dsi_dcs_set_display_off_multi() encounters an error, it sets
dsi_ctx->accum_err. Because accum_err is not reset to 0 before the following
commands, mipi_dsi_msleep() and mipi_dsi_dcs_enter_sleep_mode_multi() will
immediately return without executing.
Bypassing the panel's sleep sequence and mandatory delays before cutting
regulator power can cause visual artifacts like flashes or fading, and might
violate hardware power sequencing requirements.
Should we reset dsi_ctx->accum_err to 0 after the display-off command to
ensure the sleep mode and delay commands still execute, similar to what is
already done in tianma_fhd_video_send_deinit_cmds()?
> +}
--
Sashiko AI review · https://sashiko.dev/#/patchset/20260917-nt36672a-panels-v2-0-f8de8be5b86f@minlexx.ru?part=6
next prev parent reply other threads:[~2026-09-17 16:55 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-17 16:43 [PATCH v2 0/9] drm/panel: novatek-nt36672a: Extend with 5 new panels Alexey Minnekhanov
2026-09-17 16:43 ` [PATCH v2 1/9] dt-bindings: vendor-prefixes: Add Shenzhen TXD Technology Co., Ltd Alexey Minnekhanov
2026-09-28 18:03 ` Rob Herring (Arm)
2026-09-17 16:43 ` [PATCH v2 2/9] dt-bindings: vendor-prefixes: Add Shen Chao Optoelectronics Alexey Minnekhanov
2026-09-28 18:07 ` Rob Herring (Arm)
2026-09-17 16:43 ` [PATCH v2 3/9] dt-bindings: display: novatek,nt36672a: Add 5 new panels Alexey Minnekhanov
2026-09-28 18:06 ` Rob Herring
2026-09-17 16:43 ` [PATCH v2 4/9] drm/panel: novatek-nt36672a: Set driver name to novatek for consistency Alexey Minnekhanov
2026-09-17 16:43 ` [PATCH v2 5/9] drm/panel: novatek-nt36672a: Combine two init callbacks into one Alexey Minnekhanov
2026-09-24 13:34 ` Neil Armstrong
2026-09-17 16:43 ` [PATCH v2 6/9] drm/panel: novatek-nt36672a: Add 3 panels used in Xiaomi phones Alexey Minnekhanov
2026-09-17 16:55 ` sashiko-bot [this message]
2026-09-24 13:35 ` Neil Armstrong
2026-09-17 16:43 ` [PATCH v2 7/9] drm/panel: novatek-nt36672a: Add Tianma panel for Xiaomi Mi A2 Alexey Minnekhanov
2026-09-24 13:36 ` Neil Armstrong
2026-09-17 16:43 ` [PATCH v2 8/9] drm/panel: novatek-nt36672a: Add panel for Asus Zenfone Max Pro M1 Alexey Minnekhanov
2026-09-24 13:36 ` Neil Armstrong
2026-09-17 16:43 ` [PATCH v2 9/9] MAINTAINERS: Add Alexey Minnekhanov as maintainer for NT36672A panel Alexey Minnekhanov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260917165504.F10AF1F00893@smtp.kernel.org \
--to=sashiko-bot@kernel.org \
--cc=alexeymin@minlexx.ru \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=dri-devel@lists.freedesktop.org \
--cc=robh@kernel.org \
--cc=sashiko-reviews@lists.linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox