]> git.baikalelectronics.ru Git - kernel.git/commit
spi: omap2-mcspi: Add missing suspend and resume calls
authorTony Lindgren <tony@atomide.com>
Thu, 15 Nov 2018 23:59:39 +0000 (15:59 -0800)
committerMark Brown <broonie@kernel.org>
Fri, 16 Nov 2018 00:20:43 +0000 (16:20 -0800)
commita5941d7756c16d820b7f9521aa03cfee1aec1fd9
tree31a02f2f0e9eaeb33499181f23c5110e5a334540
parentce6638bbb43e00e6c631527d92bcf032c4e88d75
spi: omap2-mcspi: Add missing suspend and resume calls

I've been wondering still about omap2-mcspi related suspend and resume
flakeyness and looks like we're missing calls to spi_master_suspend()
and spi_master_resume(). Adding those and using pm_runtime_force_suspend()
and pm_runtime_force_resume() makes things work for suspend and resume
and allows us to stop using noirq suspend and resume.

And while at it, let's use SET_SYSTEM_SLEEP_PM_OPS to simplify things
further.

Signed-off-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-omap2-mcspi.c