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)
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>

No differences found