spi: spi-imx: set max_native_cs for imx51/imx53/imx6 variants
authorRasmus Villemoes <linux@rasmusvillemoes.dk>
Tue, 25 Apr 2023 13:45:26 +0000 (15:45 +0200)
committerMark Brown <broonie@kernel.org>
Tue, 23 May 2023 18:05:15 +0000 (19:05 +0100)
commit8ce1bb9a5935385e9ef65bda1e8ca923c7fbb887
tree6276cf2818070b50f914aace853b956490ef280f
parentd9032b304541e1f560349e461611f25d67f44a49
spi: spi-imx: set max_native_cs for imx51/imx53/imx6 variants

The ecspi IP block on imx51/imx53/imx6 have four native chip
selects. Tell that to the spi core so that any non-gpio chip selects
get validated against that upper bound.

Also set the SPI_MASTER_GPIO_SS so that the core verifies that, in the
case where both native and gpio chip selects are in use, there is at
least one leftover native chip select (or "channel", in the ecspi
language) for use by the slaves sitting on gpio chip selects.

Signed-off-by: Rasmus Villemoes <linux@rasmusvillemoes.dk>
Link: https://lore.kernel.org/r/20230425134527.483607-3-linux@rasmusvillemoes.dk
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-imx.c