mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Amelie Delaunay <amelie.delaunay@foss.st.com>
To: Cong Nguyen <congnt264@gmail.com>, Vinod Koul <vkoul@kernel.org>,
	"Xiangwu Lai" <laixiangwu@cmss.chinamobile.com>
Cc: Frank Li <Frank.Li@kernel.org>, <dmaengine@vger.kernel.org>,
	<linux-stm32@st-md-mailman.stormreply.com>,
	<linux-kernel@vger.kernel.org>
Subject: Re: [Linux-stm32] [PATCH] dmaengine: stm32-dma: drop the runtime PM reference when suspend is refused
Date: Tue, 1 Dec 2026 08:58:07 +0100	[thread overview]
Message-ID: <ab6a5915-fe8f-4909-94cc-b0e464d58cd6@foss.st.com> (raw)
In-Reply-To: <93af3008-9ea4-4bbb-a90f-d2fc402e27f4@foss.st.com>

On 11/30/26 09:11, Amelie Delaunay wrote:
> Hi,
> 
> Thanks for your patch.
> 
> On 11/29/26 18:16, Cong Nguyen wrote:
>> stm32_dma_pm_suspend() returns -EBUSY when a channel is still enabled,
>> without dropping the runtime PM reference it took, so the controller
>> stays runtime resumed.
>>
>> Call pm_runtime_put_sync() before returning -EBUSY.
>>
>> Fixes: 05f8740a0e6f ("dmaengine: stm32-dma: add suspend/resume power 
>> management support")
>> Signed-off-by: Cong Nguyen <congnt264@gmail.com>
> 
> Reviewed-by: Amelie Delaunay <amelie.delaunay@foss.st.com>
>

Please disregard my previous review, this fix has already been pushed a 
month ago
by Xiangwu Lai and reviewed:
https://lore.kernel.org/all/20261102104108.794-1-laixiangwu@cmss.chinamobile.com/

Regards,
Amelie

>> ---
>>   drivers/dma/stm32/stm32-dma.c | 1 +
>>   1 file changed, 1 insertion(+)
>>
>> diff --git a/drivers/dma/stm32/stm32-dma.c b/drivers/dma/stm32/stm32- 
>> dma.c
>> index ba8121d37f51..5e1bf8cdedb3 100644
>> --- a/drivers/dma/stm32/stm32-dma.c
>> +++ b/drivers/dma/stm32/stm32-dma.c
>> @@ -1738,6 +1738,7 @@ static int stm32_dma_pm_suspend(struct device *dev)
>>           scr = stm32_dma_read(dmadev, STM32_DMA_SCR(id));
>>           if (scr & STM32_DMA_SCR_EN) {
>>               dev_warn(dev, "Suspend is prevented by Chan %i\n", id);
>> +            pm_runtime_put_sync(dev);
>>               return -EBUSY;
>>           }
>>       }
> 
> _______________________________________________
> Linux-stm32 mailing list
> Linux-stm32@st-md-mailman.stormreply.com
> https://st-md-mailman.stormreply.com/mailman/listinfo/linux-stm32


      reply	other threads:[~2026-12-01  7:58 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-29 17:16 Cong Nguyen
2026-11-30  8:11 ` Amelie Delaunay
2026-12-01  7:58   ` Amelie Delaunay [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=ab6a5915-fe8f-4909-94cc-b0e464d58cd6@foss.st.com \
    --to=amelie.delaunay@foss.st.com \
    --cc=Frank.Li@kernel.org \
    --cc=congnt264@gmail.com \
    --cc=dmaengine@vger.kernel.org \
    --cc=laixiangwu@cmss.chinamobile.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-stm32@st-md-mailman.stormreply.com \
    --cc=vkoul@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®