From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795031059; b=cnU5IROkkIzC9F8qZZmb2XUjuso7zIrx0zE8jsCFfhPV8zZMTtRkcxp8LosoZ01fhP8F LvwQP1ro2DFLeveur8YFKQCs9QTI1OUiNeeDCA3KKfY2J/i3v3LvGg+TCe4AvvEHh3Dji w43BgX/LApXJ3KETlHvXvbyhA1ryAqFu4kX51KVwhLhW2LdtDO0rZEubvxQLPcl7nwkgu gj9rwHcHLeur/qpK3fHQMMe/4GqJASwWgPY6LPYWtldRxR6u7l85K+khMVSglvMgEWUvI 0g4qSPGnLzmOvnMuqJiTBVM7Rl/2ENh0NotYRX8cB0VKrPIjFyXskQXoJPlcxt3mg+w== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795031059; h=Received:DKIM-Signature:From:To:Cc:Subject:Date:Message-ID:X-Mailer: In-Reply-To:References:User-Agent:X-stable:X-Patchwork-Hint: MIME-Version:Content-Transfer-Encoding; bh=ugSJp7EKuexIv+g9/k6ytEEF5SFTC0w7wpAkelMACJw=; b=c2jhtxr+CJor33uVd8HYV0e+5jx8ZXhfgmkhPDCw+1yriTO9PFQNdFfYb+qukIAYxxrv CB47um8WRyg02s2dq9vS1Ct9EvrcoLQBDTQf2bBsDgh9gBz7S2VxHUyq55Iqo0j5Nbwz5 rhicARLcKcl1bwE3HpH6ymxH8KWaVtmRrGHWP7E6kJrZZ2YoJbfl2thiuAY02Kb+5Bac/ Ygo8hQ4BpHWGkwDsj5SZh946PL6U9jxh9PINFiexyvg1kqG0DMWeTqEiI2mUqXTkBGIdd 439D2fk+NcmzCf2rbZOzYUT4Pg5WqzELJx656fk4CoCjRjGIRFzveX9Lqze+Z7A0H2w== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=L+8ktcqX; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C538F606A320; Wed, 18 Nov 2026 19:44:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=L+8ktcqX Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1F57D1F000C4; Wed, 18 Nov 2026 19:44:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1795031059; bh=ugSJp7EKuexIv+g9/k6ytEEF5SFTC0w7wpAkelMACJw=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=L+8ktcqXD9+mPtwElnFMEmWsZmrT6QUaw57dKTh08S6pBi/bGhMRqGNvOoOFP/P/J vnxd8YBBzFlr3gKpRfS93ENqRkrPiiXTzh0/58ULyBJzJWJbi51oxlrmbQDqpFphOY izDNWuiDr8IQiEKxQIAitNN2gnUQb/+kyJ/DjDR8= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Sakari Ailus , Linus Walleij , Vinod Koul , Sasha Levin Subject: [PATCH 6.12 0882/1756] dmaengine: ste_dma40: Remove redundant pm_runtime_mark_last_busy() calls Date: Wed, 18 Nov 2026 15:50:09 +0100 Message-ID: <20261118150044.628313364@linuxfoundation.org> X-Mailer: git-send-email 2.56.0 In-Reply-To: <20261118150007.957976754@linuxfoundation.org> References: <20261118150007.957976754@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore X-Mailing-List: stable@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.12-stable review patch. If anyone has any objections, please let me know. ------------------ From: Sakari Ailus [ Upstream commit 01f2bcf06d7e0e3c4badd03c030cf634ca10a172 ] 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 Reviewed-by: Linus Walleij Link: https://patch.msgid.link/20251027133232.392898-4-sakari.ailus@linux.intel.com Signed-off-by: Vinod Koul Stable-dep-of: 55a35231b8ce ("dmaengine: ste_dma40: Handle runtime PM resume errors") Signed-off-by: Sasha Levin --- drivers/dma/ste_dma40.c | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/drivers/dma/ste_dma40.c b/drivers/dma/ste_dma40.c index df373c5b6b9f2..f196bfe416001 100644 --- a/drivers/dma/ste_dma40.c +++ b/drivers/dma/ste_dma40.c @@ -1452,7 +1452,6 @@ static int d40_pause(struct dma_chan *chan) res = d40_channel_execute_command(d40c, D40_DMA_SUSPEND_REQ); - pm_runtime_mark_last_busy(d40c->base->dev); pm_runtime_put_autosuspend(d40c->base->dev); spin_unlock_irqrestore(&d40c->lock, flags); return res; @@ -1479,7 +1478,6 @@ static int d40_resume(struct dma_chan *chan) if (d40_residue(d40c) || d40_tx_is_linked(d40c)) res = d40_channel_execute_command(d40c, D40_DMA_RUN); - pm_runtime_mark_last_busy(d40c->base->dev); pm_runtime_put_autosuspend(d40c->base->dev); spin_unlock_irqrestore(&d40c->lock, flags); return res; @@ -1591,7 +1589,6 @@ static void dma_tc_handle(struct d40_chan *d40c) if (d40_queue_start(d40c) == NULL) { d40c->busy = false; - pm_runtime_mark_last_busy(d40c->base->dev); pm_runtime_put_autosuspend(d40c->base->dev); } } @@ -2071,16 +2068,13 @@ static int d40_free_dma(struct d40_chan *d40c) else d40c->base->lookup_phy_chans[phy->num] = NULL; - if (d40c->busy) { - pm_runtime_mark_last_busy(d40c->base->dev); + if (d40c->busy) pm_runtime_put_autosuspend(d40c->base->dev); - } d40c->busy = false; d40c->phy_chan = NULL; d40c->configured = false; mark_last_busy: - pm_runtime_mark_last_busy(d40c->base->dev); pm_runtime_put_autosuspend(d40c->base->dev); return res; } @@ -2483,7 +2477,6 @@ static int d40_alloc_chan_resources(struct dma_chan *chan) if (is_free_phy) d40_config_write(d40c); mark_last_busy: - pm_runtime_mark_last_busy(d40c->base->dev); pm_runtime_put_autosuspend(d40c->base->dev); spin_unlock_irqrestore(&d40c->lock, flags); return err; @@ -2635,12 +2628,9 @@ static int d40_terminate_all(struct dma_chan *chan) chan_err(d40c, "Failed to stop channel\n"); d40_term_all(d40c); - pm_runtime_mark_last_busy(d40c->base->dev); pm_runtime_put_autosuspend(d40c->base->dev); - if (d40c->busy) { - pm_runtime_mark_last_busy(d40c->base->dev); + if (d40c->busy) pm_runtime_put_autosuspend(d40c->base->dev); - } d40c->busy = false; spin_unlock_irqrestore(&d40c->lock, flags); -- 2.53.0