spi: sifive: add PM callbacks to support suspend/resume
authorAndy Chiu <andy.chiu@sifive.com>
Fri, 10 Jun 2022 07:44:59 +0000 (15:44 +0800)
committerMark Brown <broonie@kernel.org>
Fri, 10 Jun 2022 12:32:24 +0000 (13:32 +0100)
commita1f0161eadbd7941c09b5f4c6a210c390d2b86d6
tree338da232914da9820c2365e443cc6f9f70a23146
parent0356163e5883e298b518cd16517be633824987f9
spi: sifive: add PM callbacks to support suspend/resume

The patch has been tested on Unmatched using pm_test. The Unmatched board
uses SD over SPI and it was tested by initiating S2RAM cycles for all
devices while reading/writing files at the same time. We found no dropped
connection to the card or corrupted filesystem during test cycles.

Signed-off-by: Andy Chiu <andy.chiu@sifive.com>
Reviewed-by: Greentime Hu <greentime.hu@sifive.com>
Link: https://lore.kernel.org/r/20220610074459.3261383-2-andy.chiu@sifive.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-sifive.c