Geert Uytterhoeven c1ca59c22c
spi: rspi: Fix invalid SPI use during system suspend
If the SPI queue is running during system suspend, the system may lock
up.

Fix this by stopping/restarting the queue during system suspend/resume,
by calling spi_master_suspend()/spi_master_resume() from the PM
callbacks.  In-kernel users will receive an -ESHUTDOWN error while
system suspend/resume is in progress.

Based on a patch for sh-msiof by Gaku Inami.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Mark Brown <broonie@kernel.org>
Cc: stable@vger.kernel.org
2018-09-05 12:40:06 +01:00
..
2016-07-07 11:44:43 +02:00
2018-07-30 12:02:07 +01:00
2018-07-30 12:02:07 +01:00
2018-09-04 17:21:17 +01:00
2018-05-03 10:27:43 +09:00
2017-01-23 18:09:37 +00:00
2018-04-24 16:10:12 +01:00
2017-08-10 15:50:23 +01:00
2017-05-26 12:41:07 +01:00