]> 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)
committerMark Brown <broonie@kernel.org>
Tue, 12 Mar 2024 13:56:03 +0000 (13:56 +0000)
commitaa0162dc0dd95c3bf248e3c78068760094e8f64b
tree7ed1129c502490ee2b23de916d293b8aa56c8610
parent2ae0ab0143fcc06190713ed81a6486ed0ad3c861
spi: Restore delays for non-GPIO chip select

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>
drivers/spi/spi.c