]> git.baikalelectronics.ru Git - kernel.git/commit
spi: omap2-mcspi: Remove unnecessary pm_runtime_force_suspend()
authorTony Lindgren <tony@atomide.com>
Fri, 18 May 2018 17:30:08 +0000 (10:30 -0700)
committerMark Brown <broonie@kernel.org>
Mon, 21 May 2018 15:44:29 +0000 (16:44 +0100)
commit786029b6a792b1dde4cdc62c127b31e16dc9f03c
treec733a99d214564d8e0a538019c6e6f3307082a43
parentb74ba6c5a892c17007965b4610b4808c6d924f27
spi: omap2-mcspi: Remove unnecessary pm_runtime_force_suspend()

Commit 4bec764a32ff ("spi: omap2-mcspi: Idle hardware during suspend
and resume") added calls for pm_runtime_force_suspend() and
pm_runtime_force_resume() to make sure spi is idled between
device_prepare() and device_complete().

But testing Linux next, I now noticed that we will get the following:

spi_master spi0: Failed to power device: -13

Looking at things more turns out we can just remove this non-standard
code. I was probably testing with some extra experimental patches
earlier when I thought we need pm_runtime_force_suspend() and
pm_runtime_force_resume().

Fixes: 4bec764a32ff ("spi: omap2-mcspi: Idle hardware during suspend
and resume")
Signed-off-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-omap2-mcspi.c