spi: atmel: Fix CS and initialization bug
authorDan Sneddon <dan.sneddon@microchip.com>
Tue, 29 Jun 2021 19:22:18 +0000 (12:22 -0700)
committerMark Brown <broonie@kernel.org>
Sun, 11 Jul 2021 22:44:39 +0000 (23:44 +0100)
commit69e1818ad27bae167eeaaf6829d4a08900ef5153
treed19ce7d3622ee440dcd766586a35d9fc53b20364
parent7999d2555c9f879d006ea8469d74db9cdb038af0
spi: atmel: Fix CS and initialization bug

Commit 5fa5e6dec762 ("spi: atmel: Switch to transfer_one transfer
method") switched to using transfer_one and set_cs.  The
core doesn't call set_cs when the chip select lines are gpios.  Add the
SPI_MASTER_GPIO_SS flag to the driver to ensure the calls to set_cs
happen since the driver programs configuration registers there.

Fixes: 5fa5e6dec762 ("spi: atmel: Switch to transfer_one transfer method")
Signed-off-by: Dan Sneddon <dan.sneddon@microchip.com>
Link: https://lore.kernel.org/r/20210629192218.32125-1-dan.sneddon@microchip.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-atmel.c