]> www.infradead.org Git - users/jedix/linux-maple.git/commit
dmaengine: at_xdmac: Use pm_runtime_put_noidle() with many usage_counts
authorSakari Ailus <sakari.ailus@linux.intel.com>
Thu, 10 Apr 2025 06:58:04 +0000 (09:58 +0300)
committerVinod Koul <vkoul@kernel.org>
Thu, 17 Apr 2025 15:08:10 +0000 (20:38 +0530)
commit99b201481f3fe44eac5cc05238a715b05bca4df5
treeb366f62713c040576618ccda9f5148535b0ead7a
parent862f3c49a86b85f314c09437d0afd1afc2c02fdd
dmaengine: at_xdmac: Use pm_runtime_put_noidle() with many usage_counts

We're holding more than one Runtime PM usage_counts in
at_xdmac_device_terminate_all(). This makes pm_runtime_mark_last_busy()
redundant and pm_runtime_put_autosuspend() misleading. Drop
pm_runtime_mark_last_busy() and use pm_runtime_put_noidle() to decrement
the usage_count, except in the case it may be the last.

Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Link: https://lore.kernel.org/r/20250410065804.3676582-1-sakari.ailus@linux.intel.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/at_xdmac.c