summaryrefslogtreecommitdiffstats
path: root/Documentation/scsi/aic79xx.txt
diff options
context:
space:
mode:
authorGeert Uytterhoeven <geert+renesas@glider.be>2017-12-13 20:05:10 +0100
committerMark Brown <broonie@kernel.org>2017-12-14 11:46:02 +0000
commit7ff0b53c4051145d1cf992d2f60987e6447eed4f (patch)
tree810a911241204673b058aa8832bf44c6c0708c94 /Documentation/scsi/aic79xx.txt
parent5d8e614f6cf8850657edbd1859391a2ae45b4488 (diff)
downloadop-kernel-dev-7ff0b53c4051145d1cf992d2f60987e6447eed4f.zip
op-kernel-dev-7ff0b53c4051145d1cf992d2f60987e6447eed4f.tar.gz
spi: sh-msiof: Avoid writing to registers from spi_master.setup()
The spi_master.setup() callback must not change configuration registers, as that could corrupt I/O that is in progress for other SPI slaves. The only exception is the configuration of the native chip select polarity in SPI master mode, as a wrong chip select polarity will cause havoc during all future transfers to any other SPI slave. Hence stop writing to registers in sh_msiof_spi_setup(), unless it is the first call for a controller using a native chip select, or unless native chip select polarity has changed (note that you'll loose anyway if I/O is in progress). Even then, only do what is strictly necessary, instead of calling sh_msiof_spi_set_pin_regs(). Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'Documentation/scsi/aic79xx.txt')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud