Re: [PATCH 2/2] Input: ili210x - add support for polling mode
From: Geert Uytterhoeven
Date: Wed Jan 14 2026 - 06:24:15 EST
Hi Frank,
On Tue, 13 Jan 2026 at 17:41, Frank Li <Frank.li@xxxxxxx> wrote:
> On Tue, Jan 13, 2026 at 12:44:57AM +0100, Marek Vasut wrote:
> > There are designs incorporating Ilitek ILI2xxx touch controller that
> > do not connect interrupt pin, for example Waveshare 13.3" DSI display.
> > To support such systems use polling mode for the input device when I2C
> > client does not have interrupt assigned to it.
> >
> > Factor out ili210x_firmware_update_noirq() to allow conditional scoped
> > guard around this code. The scoped guard has to be applied only in case
> > the IRQ line is connected, and not applied otherwise.
> >
> > Signed-off-by: Marek Vasut <marek.vasut+renesas@xxxxxxxxxxx>
> > --- a/drivers/input/touchscreen/ili210x.c
> > +++ b/drivers/input/touchscreen/ili210x.c
> > @@ -1003,12 +1027,24 @@ static int ili210x_i2c_probe(struct i2c_client *client)
> > return error;
> > }
> >
> > - error = devm_request_threaded_irq(dev, client->irq, NULL, ili210x_irq,
> > - IRQF_ONESHOT, client->name, priv);
> > - if (error) {
> > - dev_err(dev, "Unable to request touchscreen IRQ, err: %d\n",
> > - error);
> > - return error;
> > + input_set_drvdata(input, priv);
> > +
> > + if (client->irq) {
>
> 0 is validated irq number
>
> https://elixir.bootlin.com/linux/v6.19-rc4/source/drivers/base/platform.c#L284
Not anymore ;-)
https://elixir.bootlin.com/linux/v6.19-rc4/source/drivers/base/platform.c#L299
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@xxxxxxxxxxxxxx
In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds