]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 5 Jan 2024 14:12:30 +0000 (15:12 +0100)
commit929f475ebaf09d2e4e40bdc6fc3902cca150974f
tree2dab163be973787d446ab18c61541b8f2cdb9f62
parent23d9267c548b6c10b3a65da8bd7166af5f91f0a6
spi: atmel: Fix CS and initialization bug

[ Upstream commit 69e1818ad27bae167eeaaf6829d4a08900ef5153 ]

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>
Stable-dep-of: fc70d643a2f6 ("spi: atmel: Fix clock issue when using devices with different polarities")
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/spi/spi-atmel.c