Re: [PATCH v2 4/5] spi: spi-engine-ex: Add support for multi-CS devices

From: Nuno Sá

Date: Fri Aug 07 2026 - 11:03:44 EST


On Mon, 03 Aug 2026 00:02:29 -0300, Jonathan Santos <Jonathan.Santos@xxxxxxxxxx> wrote:
> The SPI Engine controller only handled the first chip select when
> asserting CS lines and configuring CS polarity inversion, ignoring
> additional CS indices present in cs_index_mask.
>
> Update spi_engine_gen_cs() to iterate over all set bits in
> cs_index_mask and toggle each corresponding CS line in the assert mask.
> Update spi_engine_setup() likewise so that SPI_CS_HIGH polarity is
> applied to every active CS index rather than only index 0.
>
> [...]

Acked-by: Nuno Sá <nuno.sa@xxxxxxxxxx>

--
Nuno Sá <nuno.sa@xxxxxxxxxx>