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)
commit22a6d41c871225bdd269a80fe04236071f429e2b
tree67c59260068289b685e59aaca186e5be65d93218
parente2be70318d7b0ad9446d8a64ed1bc73e3316ee39
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