From: Dmitry Torokhov <dmitry.torokhov@gmail.com>
To: sashiko-reviews@lists.linux.dev
Cc: Nizat Mikayilli <nacht@dxdmail.cc>,
linux-input@vger.kernel.org, devicetree@vger.kernel.org,
robh@kernel.org, conor+dt@kernel.org
Subject: Re: [PATCH 1/5] Input: s6sy761 - apply the touchscreen inversion and swap properties
Date: Sun, 8 Nov 2026 13:31:46 -0800 [thread overview]
Message-ID: <avDoui7Foj0eVcaF@google.com> (raw)
In-Reply-To: <sashiko-outbox-203649@kernel.org>
On Sun, Nov 08, 2026 at 08:38:24AM +0000, sashiko-bot@kernel.org wrote:
> 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 - premature input_sync() in
> s6sy761_report_coordinates() [1]
> --
>
> commit a5e7ac4e0cb3d02e12af7f249f64b3074df9f280
> Author: Nizat Mikayilli <nacht@dxdmail.cc>
>
> Input: s6sy761 - apply the touchscreen inversion and swap properties
>
> This commit replaces raw X and Y coordinate reporting with
> touchscreen_report_pos() so touchscreen inversion and axis swap properties
> take effect.
>
> > diff --git a/drivers/input/touchscreen/s6sy761.c b/drivers/input/touchscreen/s6sy761.c
> > index 1afa38850f12f..967fd222f0d62 100644
> > --- a/drivers/input/touchscreen/s6sy761.c
> > +++ b/drivers/input/touchscreen/s6sy761.c
> > @@ -153,8 +153,7 @@ static void s6sy761_report_coordinates(struct s6sy761_data *sdata,
> > input_mt_slot(sdata->input, tid);
> >
> > input_mt_report_slot_state(sdata->input, MT_TOOL_FINGER, true);
> > - input_report_abs(sdata->input, ABS_MT_POSITION_X, x);
> > - input_report_abs(sdata->input, ABS_MT_POSITION_Y, y);
> > + touchscreen_report_pos(sdata->input, &sdata->prop, x, y, true);
> > input_report_abs(sdata->input, ABS_MT_TOUCH_MAJOR, major);
> > input_report_abs(sdata->input, ABS_MT_TOUCH_MINOR, minor);
> > input_report_abs(sdata->input, ABS_MT_PRESSURE, z);
>
> [Severity: High]
> This problem wasn't introduced by this patch, but does calling
> input_sync() at the end of s6sy761_report_coordinates() and
> s6sy761_report_release() fragment multi-finger updates [1]?
>
> drivers/input/touchscreen/s6sy761.c:s6sy761_report_coordinates() {
> ...
> input_report_abs(sdata->input, ABS_MT_PRESSURE, z);
>
> input_sync(sdata->input);
> }
>
> When s6sy761_irq_handler() loops over batched events, emitting SYN_REPORT
> inside each per-slot helper splits a single multi-finger hardware update
> into multiple torn frames for userspace.
>
> [1] https://sashiko.dev/#/bug/linux-c1c813ff-e5e5-43df-a3c3-af15e2a7dad5
The driver does not use INPUT_MT_DROP_UNUSED so it is OK to emit
SYN_REPORT per contact.
Thanks.
--
Dmitry
next prev parent reply other threads:[~2026-11-08 21:31 UTC|newest]
Thread overview: 16+ 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 ` Nizat Mikayilli
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:33 ` Nizat Mikayilli
2026-11-08 8:38 ` sashiko-bot
2026-11-08 21:31 ` Dmitry Torokhov [this message]
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 ` Nizat Mikayilli
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 ` Nizat Mikayilli
2026-11-12 11:17 ` Krzysztof Kozlowski
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:33 ` Nizat Mikayilli
2026-11-08 8:42 ` sashiko-bot
2026-11-08 8:33 ` [PATCH 5/5] Input: s6sy761 - add support for ST FTS1BA90A Nizat Mikayilli via B4 Relay
2026-11-08 8:33 ` Nizat Mikayilli
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=avDoui7Foj0eVcaF@google.com \
--to=dmitry.torokhov@gmail.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--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 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.