diff options
author | Tony Lindgren <tony@atomide.com> | 2016-09-13 19:22:43 +0200 |
---|---|---|
committer | Vinod Koul <vinod.koul@intel.com> | 2016-09-14 15:43:22 +0200 |
commit | f2f6f828fc79509d7582d5f338ecf0795250d8b5 (patch) | |
tree | 687465064d9d70c38a25a758f4e2de375312f9b0 /drivers/dma/cppi41.c | |
parent | dmaengine: cppi41: mark PM functions as __maybe_unused (diff) | |
download | linux-f2f6f828fc79509d7582d5f338ecf0795250d8b5.tar.xz linux-f2f6f828fc79509d7582d5f338ecf0795250d8b5.zip |
dmaengine: cppi41: Ignore EINPROGRESS for PM runtime
We can occasionally get -EINPROGRESS for pm_runtime_get. In that case
we can just continue as we're queueing transfers anyways when
pm_runtime_active is not set.
Fixes: fdea2d09b997 ("dmaengine: cppi41: Add basic PM runtime support")
Signed-off-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Diffstat (limited to 'drivers/dma/cppi41.c')
-rw-r--r-- | drivers/dma/cppi41.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/dma/cppi41.c b/drivers/dma/cppi41.c index 2f1994ec245f..97f4d6c1b6b9 100644 --- a/drivers/dma/cppi41.c +++ b/drivers/dma/cppi41.c @@ -462,7 +462,7 @@ static void cppi41_dma_issue_pending(struct dma_chan *chan) /* PM runtime paired with dmaengine_desc_get_callback_invoke */ error = pm_runtime_get(cdd->ddev.dev); - if (error < 0) { + if ((error != -EINPROGRESS) && error < 0) { dev_err(cdd->ddev.dev, "Failed to pm_runtime_get: %i\n", error); |