]> git.baikalelectronics.ru Git - kernel.git/commit
dmaengine: cppi41: Fix list not empty warning on module removal
authorTony Lindgren <tony@atomide.com>
Wed, 9 Nov 2016 16:47:58 +0000 (09:47 -0700)
committerVinod Koul <vinod.koul@intel.com>
Mon, 14 Nov 2016 05:27:21 +0000 (10:57 +0530)
commit5818ee9d17e1bfb1b14ff16d7b1078024754e90b
treea9a9863c7e5bcb9879d90c009c70f1bcd536f608
parentc091bf4d6e11c3361a9abdb19e66800bc0508f4c
dmaengine: cppi41: Fix list not empty warning on module removal

If musb controller is configured with USB peripherals and we have
enumerated with a USB host, we can get warnings on removal of the
modules:

WARNING: CPU: 0 PID: 1269 at drivers/dma/cppi41.c:391
cppi41_dma_free_chan_resources

Fix the issue by adding the missing pm_runtime_get to
cppi41_dma_free_chan_resources to make sure the pending work
list is cleared on removal.

Fixes: 34dc38e881bc ("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