Devicetree
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "David Heidelberg" <david@ixit.cz>
Cc: devicetree@vger.kernel.org, dri-devel@lists.freedesktop.org,
	robh@kernel.org, conor+dt@kernel.org
Subject: Re: [PATCH v3 4/5] drm/panel: lg-sw43408: keep VPNL paired with VDDI and reset deasserted
Date: Wed, 25 Nov 2026 13:19:11 +0000	[thread overview]
Message-ID: <sashiko-outbox-233481@kernel.org> (raw)
In-Reply-To: <20261125-fix-blueline-panel-v3-4-914b4a30b73e@ixit.cz>

Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [High] drm/panel: lg-sw43408: missing resume callback in
  sw43408_pm_ops
--

commit 503ce47692b3c0852447cd397b0dd17406adf4a7
Author: David Heidelberg <david@ixit.cz>

drm/panel: lg-sw43408: keep VPNL paired with VDDI and reset deasserted

This commit leaves reset_gpio deasserted across unprepare and keeps VPNL
enabled until VDDI is fully powered down, checking VDDI both in
sw43408_power_off() and from a late system sleep callback.

> diff --git a/drivers/gpu/drm/panel/panel-lg-sw43408.c b/drivers/gpu/drm/panel/panel-lg-sw43408.c
> index 7123ad18744cf..6854292bd99ca 100644
> --- a/drivers/gpu/drm/panel/panel-lg-sw43408.c
> +++ b/drivers/gpu/drm/panel/panel-lg-sw43408.c
[ ... ]
> @@ -57,14 +67,80 @@ static int sw43408_disable(struct drm_panel *panel)
[ ... ]
> +static int sw43408_suspend_late(struct device *dev)
> +{
> +	struct sw43408_panel *ctx = dev_get_drvdata(dev);
> +	int ret;
> +
> +	if (ctx->base.prepared)
> +		return 0;
> +
> +	ret = sw43408_maybe_disable_vpnl(ctx);
> +	if (ret)
> +		return ret;
> +
> +	return 0;
> +}
[ ... ]
> @@ -318,10 +408,15 @@ static int sw43408_probe(struct mipi_dsi_device *dsi)
>  	return devm_mipi_dsi_attach(&dsi->dev, dsi);
>  }
>  
> +static const struct dev_pm_ops sw43408_pm_ops = {
> +	LATE_SYSTEM_SLEEP_PM_OPS(sw43408_suspend_late, NULL)
> +};

[Severity: High]
Does sw43408_pm_ops also need an early resume callback to re-enable vpnl
when vddi turns back on during system resume?

During system suspend, DRM unprepares the panel in .prepare
(dpu_pm_ops.prepare -> msm_kms_pm_prepare()), stmfts_suspend() drops the
touchscreen's vddi vote in .suspend, and sw43408_suspend_late() then sees
regulator_is_enabled(vddi) == 0 and disables vpnl.

On resume, stmfts_resume() unconditionally re-enables vddi during the
.resume phase, while DRM does not resume the panel until .complete (or not
at all during resume if the display was blanked before suspend).  That
leaves the panel in the vddi-on, vpnl-off state across .resume, and when
sw43408_prepare() later runs, vddi is already held enabled by stmfts so
regulator_enable(vddi) does not power-cycle vddi to recover the DDIC.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261125-fix-blueline-panel-v3-0-914b4a30b73e@ixit.cz?part=4

  reply	other threads:[~2026-11-25 13:19 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-25 13:08 [PATCH v3 0/5] Pixel 3 display fixes David Heidelberg via B4 Relay
2026-11-25 13:08 ` [PATCH v3 1/5] drm/panel: lg-sw43408: use the full DCS brightness range David Heidelberg via B4 Relay
2026-11-25 13:08 ` [PATCH v3 2/5] drm/panel: lg-sw43408: skip backlight updates when unprepared David Heidelberg via B4 Relay
2026-11-25 13:08 ` [PATCH v3 3/5] drm/panel: lg-sw43408: split enable/disable from prepare/unprepare David Heidelberg via B4 Relay
2026-11-25 13:08 ` [PATCH v3 4/5] drm/panel: lg-sw43408: keep VPNL paired with VDDI and reset deasserted David Heidelberg via B4 Relay
2026-11-25 13:19   ` sashiko-bot [this message]
2026-11-25 13:08 ` [PATCH v3 5/5] arm64: dts: qcom: sdm845-google: drop panel regulator-always-on David Heidelberg via B4 Relay

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=sashiko-outbox-233481@kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=david@ixit.cz \
    --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