]> git.baikalelectronics.ru Git - kernel.git/commit
spi/tegra-sflash: Factor runtime PM out into transfer prepare/unprepare
authorMark Brown <broonie@linaro.org>
Sat, 27 Jul 2013 11:29:58 +0000 (12:29 +0100)
committerMark Brown <broonie@linaro.org>
Mon, 29 Jul 2013 16:12:36 +0000 (17:12 +0100)
commit9eec42c448a83ad2bef10b9b0092c03628829d5a
treefef8c45930e90a6b7106fd14b15e9dd72c44f851
parentf93f366a9e75e4c2a04a5c34ab68cb8b760181e2
spi/tegra-sflash: Factor runtime PM out into transfer prepare/unprepare

Currently the tegra sflash 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-sflash.c