]> git.baikalelectronics.ru Git - kernel.git/commit
dmaengine: qcom: bam_dma: check if the runtime pm enabled
authorSrinivas Kandagatla <srinivas.kandagatla@linaro.org>
Thu, 17 May 2018 09:42:32 +0000 (10:42 +0100)
committerVinod Koul <vkoul@kernel.org>
Thu, 17 May 2018 10:46:49 +0000 (16:16 +0530)
commit050a382dbac90d995db3affda0b01f96636ef123
tree7df88760ce5bae0dd61ece3b9441a18f34928bdd
parent017d5498e77902eafa033e619660572135f08847
dmaengine: qcom: bam_dma: check if the runtime pm enabled

Disabling pm runtime at probe is not sufficient to get BAM working
on remotely controller instances. pm_runtime_get_sync() would return
-EACCES in such cases.
So check if runtime pm is enabled before returning error from bam functions.

Fixes: ba136ee6786d ("dmaengine: qcom: bam_dma: disable runtime pm on remote controlled")
Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/qcom/bam_dma.c