]> git.itanic.dy.fi Git - linux-stable/commit
spi: Restore delays for non-GPIO chip select
authorJanne Grunau <j@jannau.net>
Mon, 11 Mar 2024 22:53:17 +0000 (23:53 +0100)
committerSasha Levin <sashal@kernel.org>
Tue, 26 Mar 2024 22:17:31 +0000 (18:17 -0400)
commit55ed48c68ea209a5033bd6c25574e3a96066b20b
treeed9945dccbf1a236548a9c394fc3c047fefa8dac
parent996ce839606afd0fef91355627868022aa73eb68
spi: Restore delays for non-GPIO chip select

[ Upstream commit aa0162dc0dd95c3bf248e3c78068760094e8f64b ]

SPI controller with integrated chip select handling still need to adhere
to SPI device's CS setup, hold and inactive delays. For controller
without set_cs_timing spi core shall handle the delays to avoid
duplicated delay handling in each controller driver.
Fixes a regression for the out of tree SPI controller and SPI HID
transport on Apple M1/M1 Pro/Max notebooks.

Fixes: 4d8ff6b0991d ("spi: Add multi-cs memories support in SPI core")
Signed-off-by: Janne Grunau <j@jannau.net>
Link: https://msgid.link/r/20240311-spi-cs-delays-regression-v1-1-0075020a90b2@jannau.net
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/spi/spi.c