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)
commitd558c4733759e077cf449246983a5d1fe97fc434
treec3a262f68e90f83bf17e9f467f1fadd6b64b9dee
parentf6161aa153581da4a3867a2d1a7caf4be19b6ec9
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