From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mx.nabladev.com (mx.nabladev.com [178.251.229.89]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.9059.1796126133955321598 for ; Tue, 01 Dec 2026 03:55:34 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@nabladev.com header.s=dkim header.b=AsHp7Q9I; spf=pass (domain: nabladev.com, ip: 178.251.229.89, mailfrom: pavel@nabladev.com) Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id 31C4710D3AA; Tue, 01 Dec 2026 12:55:27 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nabladev.com; s=dkim; t=1796126127; h=from:subject:date:message-id:to:cc:mime-version:content-type: in-reply-to:references; bh=hQ6yZdNloLFritr6FZ5uXIBWKpEkgMS187mAdT8OHWM=; b=AsHp7Q9IjTy0tii1fUyNdL7O5MnGg4kceGMyUIsxcCBo0Ey4QG9UAG3nWXIVju4bnq23QH lDgec83gg2HU826yNXCnhVFCSG+9yZlOj2UMriIf52u31NEF6+dW3pM1KlpHnIWndS/V6v TloIkKKNnkgLMQpsTELGLSZqQYkfrwDvjvVkU5XSqmWeTS/4/NTouLLcTcbFNJzX3pWoE3 5wX6N2tKZPf6hweqKbob43NO8a7cTSgE23rYhUIGUmkDuPk3a8bGdHDqJSy5aunTP5vIA9 /5Eeb2ip7JOqwaCGn3QBPK+6/P5G7+m3ZQ2hgnzdLH/EhJpbrMIXixLFE/vsVA== Date: Tue, 1 Dec 2026 12:55:25 +0100 From: Pavel Machek To: Claudiu Beznea 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 Message-ID: References: <20261126152204.1297798-1-claudiu.beznea@tuxon.dev> <20261126152204.1297798-27-claudiu.beznea@tuxon.dev> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="YqRDEQj9wo/W8b11" Content-Disposition: inline In-Reply-To: <20261126152204.1297798-27-claudiu.beznea@tuxon.dev> X-Last-TLS-Session-Version: TLSv1.3 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by lin-tor-korg-lkml-alma10-1 with HTTPS for ; Tue, 01 Dec 2026 11:55:35 -0000 X-Groupsio-URL: https://lists.cip-project.org/g/cip-dev/message/25252 --YqRDEQj9wo/W8b11 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi! > commit c13ce43e70719dead7009e7e708971ba1c447568 upstream. >=20 > 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. >=20 > 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 =2E.. > + if (ret) { > + errors =3D ret; > + dev_err(dev, "Failed to resume channel %s, ret=3D%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 --YqRDEQj9wo/W8b11 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EABECAB0WIQRPfPO7r0eAhk010v0w5/Bqldv68gUCaw61rQAKCRAw5/Bqldv6 8nQZAKCVCXb4haAhSeoPjhVPwNJCkiMLzgCgiT82wqmMLZEpc2izIOdHPHbMVIQ= =OLol -----END PGP SIGNATURE----- --YqRDEQj9wo/W8b11--