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)
commit192f2c9cfb507884c7671cba9b9db380b6d4d924
treec916182bceb81c95316cc8f7061233864d6bc3ad
parent8098c43c98fb800b6385c6ad19d369df429684a7
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: 09e492d5c766 ("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