]> rtime.felk.cvut.cz Git - zynq/linux.git/commit
spi: rspi: Do not set SPCR_SPE in qspi_set_config_register()
authorGeert Uytterhoeven <geert+renesas@glider.be>
Thu, 7 Dec 2017 10:09:21 +0000 (11:09 +0100)
committerMark Brown <broonie@kernel.org>
Thu, 7 Dec 2017 11:55:38 +0000 (11:55 +0000)
commitb458a3490e46dddd5b63f59b458c9b6d2284a63f
tree82121999c5338a2b3452302b1f14f448cdd387bf
parent4fbd8d194f06c8a3fd2af1ce560ddb31f7ec8323
spi: rspi: Do not set SPCR_SPE in qspi_set_config_register()

The R-Car Gen2 Hardware User Manual Rev. 2.00 states:

    If the master/slave mode select bit (MSTR) is modified while the SPI
    function enable bit (SPE) is set to 1 (that is, this module is
    enabled), the subsequent operation cannot be guaranteed.

Hence do not set SPCR_SPE when setting SPCR_MSTR, just like the
.set_config_register() implementations for other RSPI variants do.

Note that when booted from QSPI, the boot loader will have set SPCR_MSTR
already, hence usually the bit is never modified by the Linux driver.

Reported-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-rspi.c