[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <aGPnlWbWn8NyTNFM@smile.fi.intel.com>
Date: Tue, 1 Jul 2025 16:50:13 +0300
From: Andy Shevchenko <andriy.shevchenko@...ux.intel.com>
To: Heikki Krogerus <heikki.krogerus@...ux.intel.com>
Cc: Lucas De Marchi <lucas.demarchi@...el.com>,
Thomas Hellström <thomas.hellstrom@...ux.intel.com>,
Rodrigo Vivi <rodrigo.vivi@...el.com>,
Jarkko Nikula <jarkko.nikula@...ux.intel.com>,
David Airlie <airlied@...il.com>, Simona Vetter <simona@...ll.ch>,
Mika Westerberg <mika.westerberg@...ux.intel.com>,
Jan Dabros <jsd@...ihalf.com>, Andi Shyti <andi.shyti@...nel.org>,
Raag Jadav <raag.jadav@...el.com>,
"Tauro, Riana" <riana.tauro@...el.com>,
"Adatrao, Srinivasa" <srinivasa.adatrao@...el.com>,
"Michael J. Ruhl" <michael.j.ruhl@...el.com>,
intel-xe@...ts.freedesktop.org, linux-i2c@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH v6 1/5] i2c: designware: Use polling by default when
there is no irq resource
On Tue, Jul 01, 2025 at 03:55:08PM +0300, Heikki Krogerus wrote:
> On Tue, Jul 01, 2025 at 03:42:42PM +0300, Andy Shevchenko wrote:
> > On Tue, Jul 01, 2025 at 03:22:48PM +0300, Heikki Krogerus wrote:
...
> > > + u32 flags = (uintptr_t)device_get_match_data(&pdev->dev);
> >
> > > + irq = platform_get_irq_optional(pdev, 0);
> > > + if (irq == -ENXIO)
> > > + flags |= ACCESS_POLLING;
> > > + else if (irq < 0)
> > > return irq;
> >
> > > if (device_property_present(device, "wx,i2c-snps-model"))
> > > + flags = MODEL_WANGXUN_SP | ACCESS_POLLING;
> >
> > Now I'm a bit puzzled why do we need to add this flag explicitly here?
> > Does Wnagxun provides an IRQ and chooses at the same time to poll?
> > Shouldn't this patch rather fix that?
>
> No. I do not want to touch the behavior here. The flags were
> overwritten and continue to be overwritten.
>
> I will propose an improvement for that together with some other
> modifications to this file later, but those are out side the scope of
> this series.
Sure.
--
With Best Regards,
Andy Shevchenko
Powered by blists - more mailing lists