Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

dmaengine: pl330: Remove redundant pm_runtime_mark_last_busy() calls

pm_runtime_put_autosuspend(), pm_runtime_put_sync_autosuspend(),
pm_runtime_autosuspend() and pm_request_autosuspend() now include a call
to pm_runtime_mark_last_busy(). Remove the now-reduntant explicit call to
pm_runtime_mark_last_busy().

Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Link: https://patch.msgid.link/20251027133232.392898-2-sakari.ailus@linux.intel.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>

authored by

Sakari Ailus and committed by
Vinod Koul
5f6f0cad bce33c13

+1 -7
+1 -7
drivers/dma/pl330.c
··· 2133 2133 spin_unlock_irqrestore(&pch->lock, flags); 2134 2134 2135 2135 /* If work list empty, power down */ 2136 - if (power_down) { 2137 - pm_runtime_mark_last_busy(pch->dmac->ddma.dev); 2136 + if (power_down) 2138 2137 pm_runtime_put_autosuspend(pch->dmac->ddma.dev); 2139 - } 2140 2138 } 2141 2139 2142 2140 static struct dma_chan *of_dma_pl330_xlate(struct of_phandle_args *dma_spec, ··· 2311 2313 list_splice_tail_init(&pch->work_list, &pl330->desc_pool); 2312 2314 list_splice_tail_init(&pch->completed_list, &pl330->desc_pool); 2313 2315 spin_unlock_irqrestore(&pch->lock, flags); 2314 - pm_runtime_mark_last_busy(pl330->ddma.dev); 2315 2316 if (power_down) 2316 2317 pm_runtime_put_autosuspend(pl330->ddma.dev); 2317 2318 pm_runtime_put_autosuspend(pl330->ddma.dev); ··· 2344 2347 desc->status = PAUSED; 2345 2348 } 2346 2349 spin_unlock_irqrestore(&pch->lock, flags); 2347 - pm_runtime_mark_last_busy(pl330->ddma.dev); 2348 2350 pm_runtime_put_autosuspend(pl330->ddma.dev); 2349 2351 2350 2352 return 0; ··· 2367 2371 list_splice_tail_init(&pch->work_list, &pch->dmac->desc_pool); 2368 2372 2369 2373 spin_unlock_irqrestore(&pl330->lock, flags); 2370 - pm_runtime_mark_last_busy(pch->dmac->ddma.dev); 2371 2374 pm_runtime_put_autosuspend(pch->dmac->ddma.dev); 2372 2375 pl330_unprep_slave_fifo(pch); 2373 2376 } ··· 3171 3176 pm_runtime_irq_safe(&adev->dev); 3172 3177 pm_runtime_use_autosuspend(&adev->dev); 3173 3178 pm_runtime_set_autosuspend_delay(&adev->dev, PL330_AUTOSUSPEND_DELAY); 3174 - pm_runtime_mark_last_busy(&adev->dev); 3175 3179 pm_runtime_put_autosuspend(&adev->dev); 3176 3180 3177 3181 return 0;