Re: [PATCH v5 1/2] fpga: ecp5-spi: add Lattice ECP5 FPGA manager
From: Daniel Glöckner
Date: Fri Jul 29 2022 - 08:43:34 EST
Hi,
On Tue, Jul 19, 2022 at 02:23:34PM +0300, Ivan Bornyakov wrote:
> + struct spi_transfer lsc_xfers[] = {
> + {
> + .tx_buf = lsc_init_addr,
> + .len = sizeof(lsc_init_addr),
> + .cs_change = 1,
> + }, {
> + .tx_buf = lsc_bitstream_burst,
> + .len = sizeof(lsc_bitstream_burst),
> + .cs_change = 1,
> + },
> + };
cs_change in the last transfer of a message will not prevent transfers
with other spi devices on the bus from taking place. You want to use
spi_bus_lock and friends in addition.
Best regards,
Daniel