]> git.baikalelectronics.ru Git - kernel.git/commit
dmaengine: dw: Enable runtime PM
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Tue, 3 Nov 2020 18:39:38 +0000 (20:39 +0200)
committerVinod Koul <vkoul@kernel.org>
Mon, 9 Nov 2020 11:49:20 +0000 (17:19 +0530)
commit0818b260435c057e9867bd8d4995e7764985ff2f
tree777c6362f5ce2562c933b016f4c757e2a3f61434
parentb2a71de1bfc5be3617f9a0e5f94b1fb4e2acc9f8
dmaengine: dw: Enable runtime PM

When consumer requests channel power on the DMA controller device
and otherwise on the freeing channel resources.

Note, in some cases consumer acquires channel at the ->probe() stage and
releases it at the ->remove() stage. It will mean that DMA controller device
will be powered during all this time if there is no assist from hardware
to idle it. The above mentioned cases should be investigated separately
and individually.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Link: https://lore.kernel.org/r/20201103183938.64752-1-andriy.shevchenko@linux.intel.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/dw/core.c