Re: [PATCH RESEND] Input: rmi4 - Move sensor initialization into own function for F12
From: Dmitry Torokhov
Date: Thu Nov 26 2026 - 02:00:51 EST
Hi David,
On Wed, Nov 25, 2026 at 05:54:05PM +0100, David Heidelberg wrote:
> Pretty please Dmitry. I'm not asking to get same usability level as with Android
> driver, but at least small amends like making maintenance of these quirks for me
> would be really appreciated.
>
> Saying no it's also answer which would be better than silence.
Sorry for the silence. You are right that a clear "no" is better than
nothing, so let me be direct: I am going to pass on this patch.
On its own, pulling that middle block out into rmi_f12_sensor_init()
does not really improve rmi_f12_probe(). It leaves platform data
handling above it, pulls f12->data_addr into it, and leaves sensor
tuning, data descriptor parsing, tracking buffer allocation, and
rmi_2d_sensor_configure_input() below it. The split really only exists
for the hardcoded-descriptor branch in your v9 quirk series.
More importantly, I am still not happy with how the quirks in v9 are
implemented, so I will not be able to accept that series even if it is
resubmitted. As I noted in v5, v8, and the DT binding discussion, I do
not want workarounds for non-compliant knockoffs running unconditionally
on standard RMI4 hardware. In v9, the PDT filtering, hardcoded F12
descriptors, and product ID fallback still apply to all RMI4 devices
instead of being gated behind an explicit reduced-protocol mode, and we
still have not agreed on how to isolate these devices cleanly, whether
through a separate non-fallback compatible or board matching with
of_machine_compatible_match() as Krzysztof suggested.
Several other issues from earlier reviews are also still present in v9.
In v3 I asked not to hardcode a function whitelist during PDT scanning
and to use a bitmap for duplicate tracking, yet v9 still has the
hardcoded switch (which is already missing F1A and F21) and uses a bool
array. The IRQ read alignment patch shifts data->irq_status and the
other unsigned long bitmaps by one byte, leaving them unaligned. And
the PDT fallback patch reads PDT registers inside rmi_driver_of_probe()
and keys off "syna,rmi4-s3706b", which we established describes the
compliant Synaptics controller rather than an aftermarket replacement.
Until we agree on how to deal with controllers implementing a reduced
RMI4 protocol cleanly without affecting standard RMI4 devices, I do not
want to land preparatory splits tied to the v9 quirk layout.
Thanks.
--
Dmitry