]> git.baikalelectronics.ru Git - kernel.git/commit
spi: slink-tegra20: move runtime pm calls to transfer_one_message
authorLaxman Dewangan <ldewangan@nvidia.com>
Fri, 8 Mar 2013 06:21:19 +0000 (11:51 +0530)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Tue, 12 Mar 2013 19:07:52 +0000 (19:07 +0000)
commitb050b38402bfefddc091eed9893b109e2ff57bee
treec3a262f68e90f83bf17e9f467f1fadd6b64b9dee
parent025d7a061973fce562117d8afddd51b81bc911f1
spi: slink-tegra20: move runtime pm calls to transfer_one_message

The prepare_transfer_hardware() is called in atomic context and
calling synchronous runtime pm calls can create scheduling deadlock.

Therefore, in place of calling runtime PM calls from prepare/unprepare
message transfer, calling this in transfer_one_message().

Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Tested-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
drivers/spi/spi-tegra20-slink.c