diff options
| author | Gaku Inami <gaku.inami.xw@bp.renesas.com> | 2018-09-05 10:49:36 +0200 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-10-10 08:52:07 +0200 |
| commit | 6b35618c6e97d96148caacefcf9c7f484f17bb65 (patch) | |
| tree | 301d00692bb86fc66e23674bb5933d2feaecd820 /tools/perf/scripts/python | |
| parent | 7c5a3916b59a45f06be760fb683b22b6774f7bd2 (diff) | |
spi: sh-msiof: Fix invalid SPI use during system suspend
commit ffa69d6a16f686efe45269342474e421f2aa58b2 upstream.
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.
Signed-off-by: Gaku Inami <gaku.inami.xw@bp.renesas.com>
Signed-off-by: Hiromitsu Yamasaki <hiromitsu.yamasaki.ym@renesas.com>
[geert: Cleanup, reword]
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Mark Brown <broonie@kernel.org>
Cc: stable@vger.kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
