All of lore.kernel.org
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Lukas Timmermann" <foss@timmermann.space>
Cc: linux-input@vger.kernel.org, devicetree@vger.kernel.org,
	robh@kernel.org, conor+dt@kernel.org, dmitry.torokhov@gmail.com
Subject: Re: [PATCH v2 3/7] Input: s6sy761 - add reset GPIO support
Date: Sat, 28 Nov 2026 13:59:02 +0000	[thread overview]
Message-ID: <sashiko-outbox-238735@kernel.org> (raw)
In-Reply-To: <20261128-lat3st-google-raven-touch-upstream-v2-3-1be5c1029087@timmermann.space>

Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Medium] Input: s6sy761 - missing regulator and reset GPIO cleanup in
  s6sy761_power_on()
--

commit 3b9942690d73b1fee8779747d7c6d782289bf2e1
Author: Lukas Timmermann <foss@timmermann.space>

Input: s6sy761 - add reset GPIO support

This commit adds optional reset GPIO support to the s6sy761 touchscreen
driver, deasserting reset after enabling regulators during power-on and
asserting it again during power-off.

> diff --git a/drivers/input/touchscreen/s6sy761_core.c b/drivers/input/touchscreen/s6sy761_core.c
> index e50d9b52e2c43..754c0997a0711 100644
> --- a/drivers/input/touchscreen/s6sy761_core.c
> +++ b/drivers/input/touchscreen/s6sy761_core.c

[ ... ]

> @@ -297,6 +299,11 @@ static int s6sy761_power_on(struct s6sy761_data *sdata)
>  	if (ret)
>  		return ret;
>  
> +	if (sdata->reset_gpio != NULL) {
> +		usleep_range(10000, 11000);
> +		gpiod_set_value_cansleep(sdata->reset_gpio, 0);
> +	}
> +
>  	msleep(140);
>  
>  	/* double check whether the touch is functional */

[Severity: Medium]
Does s6sy761_power_on() leave sdata->reset_gpio deasserted and
sdata->regulators enabled if one of the subsequent s6sy761_read(), boot
status or s6sy761_write() steps fails?  When called from s6sy761_resume(),
devres teardown does not run on failure, leaking the regulator enable
count and leaving the controller powered on and out of reset while
sdata->irq remains disabled.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261128-lat3st-google-raven-touch-upstream-v2-0-1be5c1029087@timmermann.space?part=3

  reply	other threads:[~2026-11-28 13:59 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-28 13:51 [PATCH v2 0/7] Input: s6sy761 - add SPI support for the S6SY791 Lukas Timmermann
2026-11-28 13:51 ` [PATCH v2 1/7] dt-bindings: input: touchscreen: samsung,s6sy761: Add S6SY791 and reset GPIO Lukas Timmermann
2026-11-28 13:51 ` [PATCH v2 2/7] Input: s6sy761 - split into core and I2C modules Lukas Timmermann
2026-11-30  4:12   ` Dmitry Torokhov
2026-11-30  9:57     ` André Draszik
2026-11-28 13:51 ` [PATCH v2 3/7] Input: s6sy761 - add reset GPIO support Lukas Timmermann
2026-11-28 13:59   ` sashiko-bot [this message]
2026-11-28 13:51 ` [PATCH v2 4/7] Input: s6sy761 - add SPI support for S6SY791 Lukas Timmermann
2026-11-28 14:03   ` sashiko-bot
2026-11-28 13:51 ` [PATCH v2 5/7] arm64: dts: exynos: gs101-pixel-common: add labels for touchscreen supplies Lukas Timmermann
2026-11-28 13:51 ` [PATCH v2 6/7] arm64: dts: exynos: gs101-raven: add S6SY791 touchscreen Lukas Timmermann
2026-11-28 14:02   ` sashiko-bot
2026-11-28 13:51 ` [PATCH v2 7/7] MAINTAINERS: add entry for Samsung S6SY761 touchscreen driver Lukas Timmermann

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-238735@kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=dmitry.torokhov@gmail.com \
    --cc=foss@timmermann.space \
    --cc=linux-input@vger.kernel.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.