]> git.baikalelectronics.ru Git - kernel.git/commit
spi: orion: enable support for switching CS every transferred byte
authorMarcin Wojtas <mw@semihalf.com>
Wed, 23 Dec 2020 10:38:27 +0000 (12:38 +0200)
committerMark Brown <broonie@kernel.org>
Mon, 28 Dec 2020 12:25:31 +0000 (12:25 +0000)
commita8663770bf4569f9d9bfa36b6b1e66ef813041e1
tree67c59260068289b685e59aaca186e5be65d93218
parent4c5899f1568e3b2abfc4edfc37cf727e3cf71cb2
spi: orion: enable support for switching CS every transferred byte

Some SPI devices, require toggling the CS every transferred byte.
Enable such possibility in the spi-orion driver.

Note that in order to use it, in the driver of a secondary device
attached to this controller, the SPI bus 'mode' field must be
updated with SPI_CS_WORD flag before calling spi_setup() routine.

In addition to that include a work-around - some devices, such as
certain models of SLIC (Subscriber Line Interface Card),
may require extra delay after CS toggling, so add a minimal
timing relaxation in relevant places.

Signed-off-by: Marcin Wojtas <mw@semihalf.com>
Signed-off-by: Konstantin Porotchkin <kostap@marvell.com>
Link: https://lore.kernel.org/r/20201223103827.29721-3-kostap@marvell.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-orion.c