diff options
author | Tudor Ambarus <tudor.ambarus@microchip.com> | 2021-02-10 16:54:28 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2021-02-11 16:15:12 +0300 |
commit | df6978b7ea6349eb32078c42b917559f5510aebd (patch) | |
tree | ed5a27f856961b80ad96633c0a67d27a1db5b82b /drivers/spi | |
parent | 58898fd82c67350f5be2fc4f22bc9517d66b1115 (diff) | |
download | linux-df6978b7ea6349eb32078c42b917559f5510aebd.tar.xz |
spi: atmel-quadspi: Disable the QSPI IP at suspend()
It is safer to disable the QSPI IP at suspend, in order to avoid
possible impact of glitches on the internal FSMs. This is a theoretical
fix, there were no problems seen as of now. Tested on sama5d2 and
sam9x60 versions of the IP.
Signed-off-by: Tudor Ambarus <tudor.ambarus@microchip.com>
Link: https://lore.kernel.org/r/20210210135428.204134-1-tudor.ambarus@microchip.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/spi')
-rw-r--r-- | drivers/spi/atmel-quadspi.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/spi/atmel-quadspi.c b/drivers/spi/atmel-quadspi.c index 10bc5390ab91..95d4fa32c299 100644 --- a/drivers/spi/atmel-quadspi.c +++ b/drivers/spi/atmel-quadspi.c @@ -657,6 +657,7 @@ static int __maybe_unused atmel_qspi_suspend(struct device *dev) struct spi_controller *ctrl = dev_get_drvdata(dev); struct atmel_qspi *aq = spi_controller_get_devdata(ctrl); + atmel_qspi_write(QSPI_CR_QSPIDIS, aq, QSPI_CR); clk_disable_unprepare(aq->qspick); clk_disable_unprepare(aq->pclk); |