]> git.baikalelectronics.ru Git - kernel.git/commit
spi/tegra-slink: Factor runtime PM out into transfer prepare/unprepare
authorMark Brown <broonie@linaro.org>
Sat, 27 Jul 2013 11:34:24 +0000 (12:34 +0100)
committerMark Brown <broonie@linaro.org>
Mon, 29 Jul 2013 16:12:38 +0000 (17:12 +0100)
commitd19e1420e0261ecf6d4d57d39e014150e50437b9
tree1bbc35e208a96dfb0258c2087c984d376a1b9c9e
parentc602ff7ceb4f514daafcdbc34764977258973f21
spi/tegra-slink: Factor runtime PM out into transfer prepare/unprepare

Currently the tegra slink driver acquires a runtime PM reference for the
duration of each transfer. This may result in the IP being powered down
between transfers which would be at best wasteful. Instead it is better
to do this in the callbacks that are generated before and after starting
a series of transfers, keeping the IP powered throughout.

Signed-off-by: Mark Brown <broonie@linaro.org>
Acked-by: Laxman Dewangan <ldewangan@nvidia.com>
drivers/spi/spi-tegra20-slink.c