[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAMuHMdXb3-EFy8WA9FTAqvyYHaF4nGch60bUQ6bbKu6Dzbh6YQ@mail.gmail.com>
Date: Wed, 14 Jan 2026 10:37:15 +0100
From: Geert Uytterhoeven <geert@...ux-m68k.org>
To: Frank Li <Frank.li@....com>
Cc: Marek Vasut <marek.vasut+renesas@...lbox.org>, linux-input@...r.kernel.org,
Conor Dooley <conor+dt@...nel.org>, Dmitry Torokhov <dmitry.torokhov@...il.com>,
Job Noorman <job@...rman.info>, Krzysztof Kozlowski <krzk+dt@...nel.org>, Rob Herring <robh@...nel.org>,
devicetree@...r.kernel.org, linux-kernel@...r.kernel.org,
linux-renesas-soc@...r.kernel.org
Subject: Re: [PATCH 2/2] Input: ili210x - add support for polling mode
Hi Frank,
On Tue, 13 Jan 2026 at 17:41, Frank Li <Frank.li@....com> 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@...lbox.org>
> > --- 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@...ux-m68k.org
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
Powered by blists - more mailing lists