OSDN Git Service

spi: atmel-quadspi: fix resume call
authorTudor Ambarus <tudor.ambarus@microchip.com>
Fri, 28 Jun 2019 15:30:34 +0000 (15:30 +0000)
committerMark Brown <broonie@kernel.org>
Tue, 2 Jul 2019 13:09:23 +0000 (14:09 +0100)
commitab735611402f4278420068fc37cfb03dab626436
treec916182bceb81c95316cc8f7061233864d6bc3ad
parent5b74e9a306267be3b371b309faef8626b18e6423
spi: atmel-quadspi: fix resume call

When waking up from the Suspend-to-RAM state, the following error
was seen:

m25p80 spi2.0: flash operation timed out

The flash remained in an undefined state, returning 0xFFs.
Fix it by setting the Serial Clock Baud Rate, as it was set
before the conversion to SPIMEM.

Tested with sama5d2_xplained and mx25l25673g spi-nor in
Backup + Self-Refresh and Suspend modes.

Fixes: 0e6aae08e9ae ("spi: Add QuadSPI driver for Atmel SAMA5D2")
Reported-by: Mark Deneen <mdeneen@gmail.com>
Signed-off-by: Tudor Ambarus <tudor.ambarus@microchip.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/atmel-quadspi.c