]> git.baikalelectronics.ru Git - kernel.git/commit
spi: rockchip: Disable Runtime PM when chip select is asserted
authorJeffy Chen <jeffy.chen@rock-chips.com>
Wed, 28 Jun 2017 04:38:43 +0000 (12:38 +0800)
committerMark Brown <broonie@kernel.org>
Wed, 28 Jun 2017 18:43:18 +0000 (19:43 +0100)
commit62be2273cc62f3a70937e867e40beb3db40f58d5
tree53110fcb40c5e0a989fc4b084d9e2e2b7b344a7b
parent2b7d40cfc760e91e8c8df1931b1517233c05cd6d
spi: rockchip: Disable Runtime PM when chip select is asserted

The rockchip spi would stop driving pins when runtime suspended, which
might break slave's xfer(for example cros_ec).

Since we have pullups on those pins, we only need to care about this
when the CS asserted.

So let's keep the spi alive when chip select is asserted.

Also use pm_runtime_put instead of pm_runtime_put_sync.

Suggested-by: Doug Anderson <dianders@chromium.org>
Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com>
Reviewed-by: Douglas Anderson <dianders@chromium.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-rockchip.c