]> 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)
commitfd51baae87432d602eebc57ee056d58c4cd1a7a5
treed19ce7d3622ee440dcd766586a35d9fc53b20364
parent55242cc05c52fb88f25f65f0ebcd47a149842f39
spi: atmel: Fix CS and initialization bug

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