[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <8633556.T7Z3S40VBb@rafael.j.wysocki>
Date: Thu, 08 Jan 2026 16:28:13 +0100
From: "Rafael J. Wysocki" <rafael@...nel.org>
To: Linux PM <linux-pm@...r.kernel.org>, dmaengine@...r.kernel.org
Cc: LKML <linux-kernel@...r.kernel.org>, Ulf Hansson <ulf.hansson@...aro.org>,
Brian Norris <briannorris@...omium.org>, Vinod Koul <vkoul@...nel.org>
Subject:
[RESEND][PATCH v1] dmaengine: sh: Discard pm_runtime_put() return value
From: Rafael J. Wysocki <rafael.j.wysocki@...el.com>
Clobbering an error value to be returned from shdma_tx_submit() with
a pm_runtime_put() return value is not particularly useful, especially
if the latter is 0, so stop doing that.
This will facilitate a planned change of the pm_runtime_put() return
type to void in the future.
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@...el.com>
---
This is requisite for converting pm_runtime_put() into a void function.
If you decide to pick it up, please let me know.
Otherwise, an ACK or equivalent will be appreciated, but also the lack
of specific criticism will be eventually regarded as consent.
Originally posted here:
https://lore.kernel.org/linux-pm/9626129.rMLUfLXkoz@rafael.j.wysocki/
---
drivers/dma/sh/shdma-base.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- a/drivers/dma/sh/shdma-base.c
+++ b/drivers/dma/sh/shdma-base.c
@@ -143,7 +143,7 @@ static dma_cookie_t shdma_tx_submit(stru
}
schan->pm_state = SHDMA_PM_ESTABLISHED;
- ret = pm_runtime_put(schan->dev);
+ pm_runtime_put(schan->dev);
spin_unlock_irq(&schan->chan_lock);
return ret;
Powered by blists - more mailing lists