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: at_xdmac: 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-1-sakari.ailus@linux.intel.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>

authored by

Sakari Ailus and committed by
Vinod Koul
bce33c13 c381f1a3

-11
-11
drivers/dma/at_xdmac.c
··· 379 379 if (!desc->active_xfer) 380 380 continue; 381 381 382 - pm_runtime_mark_last_busy(atxdmac->dev); 383 382 pm_runtime_put_autosuspend(atxdmac->dev); 384 383 } 385 384 } ··· 412 413 413 414 ret = !!(at_xdmac_chan_read(atchan, AT_XDMAC_GS) & atchan->mask); 414 415 415 - pm_runtime_mark_last_busy(atxdmac->dev); 416 416 pm_runtime_put_autosuspend(atxdmac->dev); 417 417 418 418 return ret; ··· 444 446 } 445 447 } 446 448 447 - pm_runtime_mark_last_busy(atxdmac->dev); 448 449 pm_runtime_put_autosuspend(atxdmac->dev); 449 450 } 450 451 ··· 1673 1676 1674 1677 spin_unlock: 1675 1678 spin_unlock_irqrestore(&atchan->lock, flags); 1676 - pm_runtime_mark_last_busy(atxdmac->dev); 1677 1679 pm_runtime_put_autosuspend(atxdmac->dev); 1678 1680 return ret; 1679 1681 } ··· 1754 1758 __func__, &bad_desc->lld.mbr_sa, &bad_desc->lld.mbr_da, 1755 1759 bad_desc->lld.mbr_ubc); 1756 1760 1757 - pm_runtime_mark_last_busy(atxdmac->dev); 1758 1761 pm_runtime_put_autosuspend(atxdmac->dev); 1759 1762 1760 1763 /* Then continue with usual descriptor management */ ··· 1817 1822 * Decrement runtime PM ref counter incremented in 1818 1823 * at_xdmac_start_xfer(). 1819 1824 */ 1820 - pm_runtime_mark_last_busy(atxdmac->dev); 1821 1825 pm_runtime_put_autosuspend(atxdmac->dev); 1822 1826 } 1823 1827 ··· 1948 1954 1949 1955 spin_unlock_irqrestore(&atchan->lock, flags); 1950 1956 1951 - pm_runtime_mark_last_busy(atxdmac->dev); 1952 1957 pm_runtime_put_autosuspend(atxdmac->dev); 1953 1958 1954 1959 return 0; ··· 1991 1998 1992 1999 unlock: 1993 2000 spin_unlock_irqrestore(&atchan->lock, flags); 1994 - pm_runtime_mark_last_busy(atxdmac->dev); 1995 2001 pm_runtime_put_autosuspend(atxdmac->dev); 1996 2002 1997 2003 return ret; ··· 2033 2041 clear_bit(AT_XDMAC_CHAN_IS_CYCLIC, &atchan->status); 2034 2042 spin_unlock_irqrestore(&atchan->lock, flags); 2035 2043 2036 - pm_runtime_mark_last_busy(atxdmac->dev); 2037 2044 pm_runtime_put_autosuspend(atxdmac->dev); 2038 2045 2039 2046 return 0; ··· 2226 2235 } 2227 2236 } 2228 2237 2229 - pm_runtime_mark_last_busy(atxdmac->dev); 2230 2238 pm_runtime_put_autosuspend(atxdmac->dev); 2231 2239 2232 2240 return 0; ··· 2402 2412 2403 2413 at_xdmac_axi_config(pdev); 2404 2414 2405 - pm_runtime_mark_last_busy(&pdev->dev); 2406 2415 pm_runtime_put_autosuspend(&pdev->dev); 2407 2416 2408 2417 return 0;