]> git.baikalelectronics.ru Git - kernel.git/commit
spi/tegra114: Factor runtime PM out into transfer prepare/unprepare
authorMark Brown <broonie@linaro.org>
Sat, 27 Jul 2013 11:21:52 +0000 (12:21 +0100)
committerMark Brown <broonie@linaro.org>
Mon, 29 Jul 2013 16:12:35 +0000 (17:12 +0100)
commit5176dd99edf69c0c0013be3a213618e833e82118
treec2c81de29e0414d871d3f33c405b5c21bba97592
parent89760c3efeaee3e1234f1008d850eba9fe41fba6
spi/tegra114: Factor runtime PM out into transfer prepare/unprepare

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