Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

spi/spi-fsl-spi: Make sure in spi_fsl_setup that chipselect becomes inactive

This is needed for a device in SPI_CS_HIGH mode that otherwise could start out
active for the first transaction.

Acked-by: Anton Vorontsov <anton@enomsg.org>
Signed-off-by: Andreas Larsson <andreas@gaisler.com>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>

authored by

Andreas Larsson and committed by
Grant Likely
f482cd0f e8beacbb

+4
+4
drivers/spi/spi-fsl-spi.c
··· 387 387 cs->hw_mode = hw_mode; /* Restore settings */ 388 388 return retval; 389 389 } 390 + 391 + /* Initialize chipselect - might be active for SPI_CS_HIGH mode */ 392 + fsl_spi_chipselect(spi, BITBANG_CS_INACTIVE); 393 + 390 394 return 0; 391 395 } 392 396