Re: [PATCH v1 2/4] mfd: arizona: Add missing entries SPI to device ID table

From: Charles Keepax
Date: Mon Sep 27 2021 - 06:28:05 EST


On Fri, Sep 24, 2021 at 12:20:01PM +0100, Mark Brown wrote:
> On Fri, Sep 24, 2021 at 10:24:17AM +0100, Richard Fitzgerald wrote:
> > On 23/09/2021 20:46, Mark Brown wrote:
>
> > > Currently autoloading for SPI devices does not use the DT ID table, it uses
> > > SPI modalises. Supporting OF modalises is going to be difficult if not
> > > impractical, an attempt was made but has been reverted, so ensure that
> > > module autoloading works for this driver by adding SPI IDs for parts that
> > > only have a compatible listed.
>
> > > static const struct spi_device_id arizona_spi_ids[] = {
> > > + { "wm1814", WM1814 },
> > > { "wm5102", WM5102 },
> > > { "wm5110", WM5110 },
> > > { "wm8280", WM8280 },
> > > + { "wm8997", WM8997 },
> > > + { "wm8998", WM8998 },
>
> > WM1814, WM8997 and WM8998 do not have a SPI interface, which is why they
> > aren't in the table of SPI IDs.
>
> They're listed as valid DT compatibles for SPI so will now generate
> warnings on boot, the driver should not list those compatibles if
> they're not valid.

Yeah we should really be having different lists for SPI and I2C
here I guess. I am happy to have a quick look at doing a patch
for that, unless you particularly want to fix it up?

Thanks,
Charles