From: sashiko-bot@kernel.org
To: "Marco Mattiolo" <marco.mattiolo@runbox.com>
Cc: linux-input@vger.kernel.org, devicetree@vger.kernel.org,
robh@kernel.org, conor+dt@kernel.org, dmitry.torokhov@gmail.com
Subject: Re: [PATCH 2/5] Input: s6sy761 - Add optional reset GPIO support
Date: Fri, 04 Dec 2026 22:26:35 +0000 [thread overview]
Message-ID: <sashiko-outbox-250754@kernel.org> (raw)
In-Reply-To: <20261204-crosshatch_touchscreen-v1-2-9f76ff10eab1@runbox.com>
Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Medium] input: s6sy761_power_on() omits reset re-assertion on error
path
--
commit 1fec0c9d8f9e59834ae02a3e0d9d0500c3097ede
Author: Marco Mattiolo <marco.mattiolo@runbox.com>
Input: s6sy761 - Add optional reset GPIO support
This commit adds optional reset GPIO handling to the s6sy761 touchscreen
driver, requesting the GPIO asserted during probe, releasing it after
enabling regulators in s6sy761_power_on(), and re-asserting it before
disabling regulators in s6sy761_power_off().
> diff --git a/drivers/input/touchscreen/s6sy761.c b/drivers/input/touchscreen/s6sy761.c
> index c6cc5cba577a1..5972a3194a7dc 100644
> --- a/drivers/input/touchscreen/s6sy761.c
> +++ b/drivers/input/touchscreen/s6sy761.c
[ ... ]
> @@ -301,6 +303,8 @@ static int s6sy761_power_on(struct s6sy761_data *sdata)
> if (ret)
> return ret;
>
> + /* release the optional reset line, then wait for the boot */
> + gpiod_set_value_cansleep(sdata->reset_gpio, 0);
> msleep(140);
>
> /* double check whether the touch is functional */
[Severity: Medium]
Should the err_disable_regulators path in s6sy761_power_on() re-assert
sdata->reset_gpio before calling regulator_bulk_disable()?
If a subsequent I2C or boot-status check fails, disabling the supplies with
sdata->reset_gpio still deasserted risks back-powering the controller.
Because sdata->powered_up stays false, s6sy761_power_off() returns early on
probe unwind or suspend and never re-asserts it either.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261204-crosshatch_touchscreen-v1-0-9f76ff10eab1@runbox.com?part=2
next prev parent reply other threads:[~2026-12-04 22:26 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-04 22:13 [PATCH 0/5] Introduce Samsung S6SY761 (Google Pixel 3 XL) touchscreen Marco Mattiolo via B4 Relay
2026-12-04 22:13 ` [PATCH 1/5] dt-bindings: input: touchscreen: samsung,s6sy761: Introduce reset and mode-switch GPIOs Marco Mattiolo via B4 Relay
2026-12-04 22:20 ` sashiko-bot
2026-12-04 22:13 ` [PATCH 2/5] Input: s6sy761 - Add optional reset GPIO support Marco Mattiolo via B4 Relay
2026-12-04 22:26 ` sashiko-bot [this message]
2026-12-04 22:13 ` [PATCH 3/5] Input: s6sy761 - Add mode-switch support Marco Mattiolo via B4 Relay
2026-12-04 22:25 ` sashiko-bot
2026-12-04 22:13 ` [PATCH 4/5] arm64: dts: qcom: sdm845-google: Group touchscreen pins, add mode-switch pin Marco Mattiolo via B4 Relay
2026-12-04 22:21 ` sashiko-bot
2026-12-04 22:32 ` David Heidelberg
2026-12-04 22:13 ` [PATCH 5/5] arm64: dts: qcom: sdm845-google-crosshatch: Add touchscreen support Marco Mattiolo via B4 Relay
2026-12-04 22:22 ` sashiko-bot
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-250754@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=dmitry.torokhov@gmail.com \
--cc=linux-input@vger.kernel.org \
--cc=marco.mattiolo@runbox.com \
--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