]> git.baikalelectronics.ru Git - kernel.git/commit
spi: dw: De-assert chip-select on reset
authorBaikal Electronics <support@baikalelectronics.ru>
Wed, 7 Oct 2020 23:55:02 +0000 (02:55 +0300)
committerMark Brown <broonie@kernel.org>
Thu, 8 Oct 2020 22:00:16 +0000 (23:00 +0100)
commitcfac75da1abb968ae6dba5e472eca09a650d5c48
treeb47af745558915b9bfbe64cf869df5845d99e84c
parent31fcb1147d381ca851d567e93e4647f535bbfe08
spi: dw: De-assert chip-select on reset

SPI memory operations implementation will require to have the CS register
cleared before executing the operation in order not to have the
transmission automatically started prior the Tx FIFO is pre-initialized.
Let's clear the register then on explicit controller reset to fulfil the
requirements in case of an error or having the CS left set by a bootloader
or another software.

Signed-off-by: Serge Semin <Sergey.Semin@baikalelectronics.ru>
Link: https://lore.kernel.org/r/20201007235511.4935-14-Sergey.Semin@baikalelectronics.ru
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-dw.h