From: sashiko-bot@kernel.org
To: "David Heidelberg" <david@ixit.cz>
Cc: dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org,
robh@kernel.org, conor+dt@kernel.org
Subject: Re: [PATCH v5 5/9] drm/panel: s6e3ha8: Correct the polarity logic within
Date: Tue, 01 Dec 2026 10:16:51 +0000 [thread overview]
Message-ID: <sashiko-outbox-243062@kernel.org> (raw)
In-Reply-To: <20261201-crosshatch-panel-v5-5-fe5a8c0a7fb2@ixit.cz>
Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Medium] drm/panel: s6e3ha8: wrong initial reset level in
s6e3ha8_probe()
--
commit 638501e49b28649968fb13a048f427c682aad406
Author: David Heidelberg <david@ixit.cz>
drm/panel: s6e3ha8: Correct the polarity logic within
This commit inverts the reset GPIO sequence in
s6e3ha8_amb577px01_wqhd_reset() and adds gpiod_toggle_active_low() for the
deprecated "samsung,s6e3ha8" compatible to preserve compatibility with
existing device trees that specify GPIO_ACTIVE_HIGH.
> diff --git a/drivers/gpu/drm/panel/panel-samsung-s6e3ha8.c b/drivers/gpu/drm/panel/panel-samsung-s6e3ha8.c
> index f5b3992d948bc..99290913de69a 100644
> --- a/drivers/gpu/drm/panel/panel-samsung-s6e3ha8.c
> +++ b/drivers/gpu/drm/panel/panel-samsung-s6e3ha8.c
[ ... ]
> @@ -288,6 +300,9 @@ static int s6e3ha8_probe(struct mipi_dsi_device *dsi)
> return dev_err_probe(dev, PTR_ERR(priv->reset_gpio),
> "Failed to get reset-gpios\n");
>
> + if (priv->desc->broken_reset_polarity)
> + gpiod_toggle_active_low(priv->reset_gpio);
> +
[Severity: Medium]
Does calling gpiod_toggle_active_low() after devm_gpiod_get(...,
GPIOD_OUT_HIGH) leave priv->reset_gpio at the wrong initial physical level
on legacy device trees?
devm_gpiod_get() configures the output using the untoggled GPIO_ACTIVE_HIGH
polarity from the device tree, driving the physical line high (reset
deasserted). gpiod_toggle_active_low() then only flips
GPIOD_FLAG_ACTIVE_LOW in desc->flags without updating the hardware output,
so reset stays deasserted after probe and through the 120 ms power-on delay
in s6e3ha8_amb577px01_wqhd_prepare() until s6e3ha8_amb577px01_wqhd_reset()
runs.
Driving the GPIO to 1 after gpiod_toggle_active_low() (or passing
GPIOD_OUT_LOW to devm_gpiod_get() when broken_reset_polarity is set) would
keep the panel in reset initially.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261201-crosshatch-panel-v5-0-fe5a8c0a7fb2@ixit.cz?part=5
next prev parent reply other threads:[~2026-12-01 10:17 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-01 10:06 [PATCH v5 0/9] Pixel 3 XL display panel support David Heidelberg
2026-12-01 10:06 ` David Heidelberg via B4 Relay
2026-12-01 10:06 ` [PATCH v5 1/9] dt-bindings: display: panel: s6e3ha8: Adjust to reflect the DDIC and panel used David Heidelberg
2026-12-01 10:06 ` David Heidelberg via B4 Relay
2026-12-01 10:06 ` [PATCH v5 2/9] dt-bindings: display: panel: s6e3ha8: Add AMB630QY01 panel David Heidelberg
2026-12-01 10:06 ` David Heidelberg via B4 Relay
2026-12-01 10:07 ` [PATCH v5 3/9] drm/panel: s6e3ha8: Introduce AMB577PX01 panel compatible David Heidelberg
2026-12-01 10:07 ` David Heidelberg via B4 Relay
2026-12-01 10:07 ` [PATCH v5 4/9] drm/panel: s6e3ha8: Prepare for supporting multiple panels David Heidelberg
2026-12-01 10:07 ` David Heidelberg via B4 Relay
2026-12-01 10:07 ` [PATCH v5 5/9] drm/panel: s6e3ha8: Correct the polarity logic within David Heidelberg
2026-12-01 10:07 ` David Heidelberg via B4 Relay
2026-12-01 10:16 ` sashiko-bot [this message]
2026-12-01 10:07 ` [PATCH v5 6/9] drm/panel: s6e3ha8: Assert reset GPIO in unprepare David Heidelberg
2026-12-01 10:07 ` David Heidelberg via B4 Relay
2026-12-01 10:07 ` [PATCH v5 7/9] drm/panel: s6e3ha8: Add Samsung AMB630QY01 (Google Pixel 3 XL) panel David Heidelberg
2026-12-01 10:07 ` David Heidelberg via B4 Relay
2026-12-01 10:07 ` [PATCH v5 8/9] arm64: dts: qcom: sdm845-samsung-starqltechn: Update panel compatible David Heidelberg
2026-12-01 10:07 ` David Heidelberg via B4 Relay
2026-12-01 10:16 ` sashiko-bot
2026-12-01 10:07 ` [PATCH v5 9/9] arm64: dts: qcom: sdm845-google-crosshatch: Add display panel David Heidelberg
2026-12-01 10:07 ` 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-243062@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.