diff options
author | Jon Hunter <jonathanh@nvidia.com> | 2015-11-13 16:39:38 +0000 |
---|---|---|
committer | Vinod Koul <vinod.koul@intel.com> | 2015-12-05 16:13:08 +0530 |
commit | edd3bdbe9db1415f744bb5da0752675ddbd9eee0 (patch) | |
tree | 58551c86b816e5ecb5555c6936c8930d6a1d4086 /scripts/patch-kernel | |
parent | 8005c49d9aea74d382f474ce11afbbc7d7130bec (diff) |
dmaengine: tegra-apb: Correct runtime-pm usage
The tegra-apb DMA driver enables runtime-pm but never calls
pm_runtime_get/put and hence the runtime-pm callbacks are never invoked.
The driver manages the clocks by directly calling clk_prepare_enable()
and clk_unprepare_disable().
Fix this by replacing the clk_prepare_enable() and clk_disable_unprepare()
with pm_runtime_get_sync() and pm_runtime_put(), respectively. Note that
the consequence of this is that if runtime-pm is disabled, then the clocks
will remain on the entire time the driver is loaded. However, if
runtime-pm is disabled, then power is not most likely not a concern.
Signed-off-by: Jon Hunter <jonathanh@nvidia.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Diffstat (limited to 'scripts/patch-kernel')
0 files changed, 0 insertions, 0 deletions