spi: reduce device chip select limit again
authorJonas Gorski <jonas.gorski@gmail.com>
Mon, 15 Sep 2025 18:37:24 +0000 (20:37 +0200)
committerMark Brown <broonie@kernel.org>
Mon, 22 Sep 2025 08:29:44 +0000 (09:29 +0100)
commit08fda410bae41cc8dde9697f9104da525be53153
tree99839c5624ed15e7b8dea882e4b425ab82598f1b
parent83c522fb642384aef43697aa5c7686363e9e92dd
spi: reduce device chip select limit again

The spi chipselect limit SPI_CS_CNT_MAX was raised with commit
2f8c7c3715f2 ("spi: Raise limit on number of chip selects") from 4 to 16
to accommodate spi controllers with more than 4 chip selects, and then
later to 24 with commit 96893cdd4760 ("spi: Raise limit on number of
chip selects to 24").

Now that we removed SPI_CS_CNT_MAX limiting the chip selects of
controllers, we can reduce the amount of chip selects per device again
to 4, the original value.

Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
Link: https://patch.msgid.link/20250915183725.219473-7-jonas.gorski@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
include/linux/spi/spi.h