From: Pavel Machek <pavel@nabladev.com>
To: Claudiu Beznea <claudiu.beznea@tuxon.dev>
Cc: nobuhiro.iwamatsu.x90@mail.toshiba, pavel@nabladev.com,
cip-dev@lists.cip-project.org
Subject: Re: [PATCH 5.10.y-cip 26/27] dmaengine: sh: rz-dmac: Add suspend to RAM support
Date: Tue, 1 Dec 2026 12:55:25 +0100 [thread overview]
Message-ID: <aw61rdYB50QHu1zo@duo.ucw.cz> (raw)
In-Reply-To: <20261126152204.1297798-27-claudiu.beznea@tuxon.dev>
[-- Attachment #1: Type: text/plain, Size: 1193 bytes --]
Hi!
> commit c13ce43e70719dead7009e7e708971ba1c447568 upstream.
>
> The Renesas RZ/G3S SoC supports a power saving mode in which power to most
> of the SoC components is turned off, including the DMA IP. Add suspend to
> RAM support to save and restore the DMA IP registers.
>
> Cyclic DMA channels require special handling. Since they can be paused and
> resumed during system suspend/resume, the driver restores additional
> registers for these channels during the system resume phase. If a channel
> was not explicitly paused during suspend, the driver ensures that it is
> paused and resumed as part of the system suspend/resume flow.
> diff --git a/drivers/dma/sh/rz-dmac.c b/drivers/dma/sh/rz-dmac.c
> index 5b6d08fdade1..f2ec90e3f52a 100644
> --- a/drivers/dma/sh/rz-dmac.c
> +++ b/drivers/dma/sh/rz-dmac.c
...
> + if (ret) {
> + errors = ret;
> + dev_err(dev, "Failed to resume channel %s, ret=%d\n",
> + dma_chan_name(&channel->vc.chan), ret);
> + }
> + }
> +
> + return errors ? : 0;
> +}
> +
This is complicated way of saying "return errors", AFAICT. Eventually
cleaning it up in mainline would be nice.
Best regards,
Pavel
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 195 bytes --]
next prev parent reply other threads:[~2026-12-01 11:55 UTC|newest]
Thread overview: 31+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-26 15:21 [PATCH 5.10.y-cip 00/27] Renesas: Backport DMA fixes and improvements Claudiu Beznea
2026-11-26 15:21 ` [PATCH 5.10.y-cip 01/27] dmaengine: sh: rz-dmac: Avoid format-overflow warning Claudiu Beznea
2026-11-26 15:21 ` [PATCH 5.10.y-cip 02/27] dmaengine: sh: rz-dmac: handle configs where one address is zero Claudiu Beznea
2026-11-26 15:21 ` [PATCH 5.10.y-cip 03/27] dmaengine: sh: rz-dmac: Make channel irq local Claudiu Beznea
2026-11-26 15:21 ` [PATCH 5.10.y-cip 04/27] dmaengine: sh: rz-dmac: Protect the driver specific lists Claudiu Beznea
2026-11-26 15:21 ` [PATCH 5.10.y-cip 05/27] dmaengine: sh: rz-dmac: Move CHCTRL updates under spinlock Claudiu Beznea
2026-11-26 15:21 ` [PATCH 5.10.y-cip 06/27] dmaengine: sh: rz-dmac: Drop read of CHCTRL register Claudiu Beznea
2026-11-26 15:21 ` [PATCH 5.10.y-cip 07/27] dmaengine: sh: rz-dmac: Drop goto instruction and label Claudiu Beznea
2026-11-26 15:21 ` [PATCH 5.10.y-cip 08/27] dmaengine: sh: rz-dmac: Drop unnecessary local_irq_save() call Claudiu Beznea
2026-11-26 15:21 ` [PATCH 5.10.y-cip 09/27] dmaengine: sh: rz-dmac: Use rz_lmdesc_setup() to invalidate descriptors Claudiu Beznea
2026-11-26 15:21 ` [PATCH 5.10.y-cip 10/27] dmaengine: sh: rz-dmac: Add device_tx_status() callback Claudiu Beznea
2026-11-26 15:21 ` [PATCH 5.10.y-cip 11/27] dmaengine: sh: rz-dmac: Add device_{pause,resume}() callbacks Claudiu Beznea
2026-11-26 15:21 ` [PATCH 5.10.y-cip 12/27] dmaengine: sh: rz-dmac: Move interrupt request after everything is set up Claudiu Beznea
2026-11-26 15:21 ` [PATCH 5.10.y-cip 13/27] dmaengine: sh: rz-dmac: Fix incorrect NULL check for list_first_entry() Claudiu Beznea
2026-11-26 15:21 ` [PATCH 5.10.y-cip 14/27] dmaengine: sh: rz-dmac: Use list_first_entry_or_null() Claudiu Beznea
2026-11-26 15:21 ` [PATCH 5.10.y-cip 15/27] dmaengine: sh: rz-dmac: Use rz_dmac_disable_hw() Claudiu Beznea
2026-11-26 15:21 ` [PATCH 5.10.y-cip 16/27] dmaengine: sh: rz-dmac: Add helper to compute the lmdesc address Claudiu Beznea
2026-11-26 15:21 ` [PATCH 5.10.y-cip 17/27] dmaengine: sh: rz-dmac: Save the start LM descriptor Claudiu Beznea
2026-11-26 15:21 ` [PATCH 5.10.y-cip 18/27] dmaengine: sh: rz-dmac: Add helper to check if the channel is enabled Claudiu Beznea
2026-11-26 15:21 ` [PATCH 5.10.y-cip 19/27] dmaengine: sh: rz-dmac: Add helper to check if the channel is paused Claudiu Beznea
2026-11-26 15:21 ` [PATCH 5.10.y-cip 20/27] dmaengine: sh: rz-dmac: Use virt-dma APIs for channel descriptor processing Claudiu Beznea
2026-11-26 15:21 ` [PATCH 5.10.y-cip 21/27] dmaengine: sh: rz-dmac: Refactor pause/resume code Claudiu Beznea
2026-11-26 15:21 ` [PATCH 5.10.y-cip 22/27] dmaengine: sh: rz-dmac: Drop the update of channel->chctrl with CHCTRL_SETEN Claudiu Beznea
2026-11-26 15:21 ` [PATCH 5.10.y-cip 23/27] dmaengine: sh: rz-dmac: Add cyclic DMA support Claudiu Beznea
2026-11-26 15:22 ` [PATCH 5.10.y-cip 24/27] dmaengine: sh: rz-dmac: Adjust rz_dmac_chan_get_residue() to return error codes Claudiu Beznea
2026-11-26 15:22 ` [PATCH 5.10.y-cip 25/27] dmaengine: sh: rz-dmac: Add runtime PM support Claudiu Beznea
2026-12-01 11:53 ` Pavel Machek
2026-11-26 15:22 ` [PATCH 5.10.y-cip 26/27] dmaengine: sh: rz-dmac: Add suspend to RAM support Claudiu Beznea
2026-12-01 11:55 ` Pavel Machek [this message]
2026-11-26 15:22 ` [PATCH 5.10.y-cip 27/27] dmaengine: sh: rz-dmac: Fix off-by-one in residue lmdesc lookup Claudiu Beznea
2026-11-30 22:19 ` [PATCH 5.10.y-cip 00/27] Renesas: Backport DMA fixes and improvements Pavel Machek
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=aw61rdYB50QHu1zo@duo.ucw.cz \
--to=pavel@nabladev.com \
--cc=cip-dev@lists.cip-project.org \
--cc=claudiu.beznea@tuxon.dev \
--cc=nobuhiro.iwamatsu.x90@mail.toshiba \
/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