dmaengine: cppi41: Ignore EINPROGRESS for PM runtime
authorTony Lindgren <tony@atomide.com>
Tue, 13 Sep 2016 17:22:43 +0000 (10:22 -0700)
committerVinod Koul <vinod.koul@intel.com>
Wed, 14 Sep 2016 13:43:22 +0000 (19:13 +0530)
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>
drivers/dma/cppi41.c

index 2f1994ec245f8179f07bedddfd51dd3d9084a09d..97f4d6c1b6b9c16aa070ce512d95750e6f68963f 100644 (file)
@@ -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);