]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite098a8ba84a76fff77f3b7f3450a301e7ac9e823
treed19ce7d3622ee440dcd766586a35d9fc53b20364
parent35c3c8b5faff552ad9127613be98df8a570be55d
spi: atmel: Fix CS and initialization bug

Commit 0491d62cd557 ("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: 0491d62cd557 ("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