Re: [PATCH v4 4/9] spi: restrict CS logical values to a contiguous sequence

From: Mark Brown

Date: Sat Nov 07 2026 - 12:57:03 EST


> When a device uses more than one chip select, require the logical CS
> numbers to be consecutive (for example 2, 3, 4). If they aren't,
> __spi_add_device() now fails with -EINVAL and logs which CS breaks
> the sequence.

> Changes in v4:
> * New patch, suggested by Andy. I assume this might have impacts on
> existing users. Should we make something else to complement this?

Indeed, see ge,achc for imx53-ppd.

> + dev_err(dev, "cs%d is not consecutive with cs%d\n",

%u.

--
Mark Brown <broonie@xxxxxxxxxx>