Devicetree
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Nizat Mikayilli" <nacht@dxdmail.cc>
Cc: linux-input@vger.kernel.org, devicetree@vger.kernel.org,
	robh@kernel.org, conor+dt@kernel.org, dmitry.torokhov@gmail.com
Subject: Re: [PATCH 4/5] Input: s6sy761 - move chip differences into per-chip data
Date: Sun, 08 Nov 2026 08:42:52 +0000	[thread overview]
Message-ID: <sashiko-outbox-203652@kernel.org> (raw)
In-Reply-To: <20261108-b4-s6sy761-fts1ba90a-v1-4-999b3cfaf82d@dxdmail.cc>

Thank you for your contribution! Sashiko AI review found no new issues
in this patch, but noticed 1 related pre-existing issue it does not
introduce:
- [High] Input: s6sy761 - interrupt storm on I2C error in
  s6sy761_irq_handler() [1]
--

commit a2e70885f2393c600cd0947a2d064a0c055020a7
Author: Nizat Mikayilli <nacht@dxdmail.cc>

Input: s6sy761 - move chip differences into per-chip data

This commit moves controller-specific parameters and callbacks into a
per-chip data structure to prepare for adding support for the ST FTS1BA90A
controller.

> diff --git a/drivers/input/touchscreen/s6sy761.c b/drivers/input/touchscreen/s6sy761.c
> index 59166865d397c..f000ed0d7a9a4 100644
> --- a/drivers/input/touchscreen/s6sy761.c
> +++ b/drivers/input/touchscreen/s6sy761.c

> @@ -229,7 +244,7 @@ static irqreturn_t s6sy761_irq_handler(int irq, void *dev)
>  
>  	ret = i2c_smbus_read_i2c_block_data(sdata->client,
>  					    S6SY761_READ_ONE_EVENT,
> -					    S6SY761_EVENT_SIZE,
> +					    sdata->chip->event_size,
>  					    sdata->data);
>  	if (ret < 0) {
>  		dev_err(&sdata->client->dev, "failed to read events\n");

[Severity: High]
This problem wasn't introduced by this patch, but can returning IRQ_HANDLED
when i2c_smbus_read_i2c_block_data() or s6sy761_read_events() fails cause
an interrupt storm [1]?

The IRQ is registered with IRQF_TRIGGER_LOW.  When an I2C read fails, the
pending event is not drained from the controller, so the level-triggered
interrupt line stays asserted and immediately re-fires once unmasked, while
returning IRQ_HANDLED instead of IRQ_NONE prevents the spurious interrupt
detector from disabling the IRQ.

[1] https://sashiko.dev/#/bug/linux-d31827dd-6777-4c33-8908-c3b4fbd062c3

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261108-b4-s6sy761-fts1ba90a-v1-0-999b3cfaf82d@dxdmail.cc?part=4

  reply	other threads:[~2026-11-08  8:42 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-08  8:33 [PATCH 0/5] Input: s6sy761 - add support for ST FTS1BA90A Nizat Mikayilli via B4 Relay
2026-11-08  8:33 ` [PATCH 1/5] Input: s6sy761 - apply the touchscreen inversion and swap properties Nizat Mikayilli via B4 Relay
2026-11-08  8:38   ` sashiko-bot
2026-11-08 21:31     ` Dmitry Torokhov
2026-11-08  8:33 ` [PATCH 2/5] Input: s6sy761 - check the multitouch axis ranges Nizat Mikayilli via B4 Relay
2026-11-08  8:33 ` [PATCH 3/5] dt-bindings: input: samsung,s6sy761: Add ST FTS1BA90A Nizat Mikayilli via B4 Relay
2026-11-08  8:33 ` [PATCH 4/5] Input: s6sy761 - move chip differences into per-chip data Nizat Mikayilli via B4 Relay
2026-11-08  8:42   ` sashiko-bot [this message]
2026-11-08  8:33 ` [PATCH 5/5] Input: s6sy761 - add support for ST FTS1BA90A Nizat Mikayilli 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-203652@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=nacht@dxdmail.cc \
    --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