* [PATCH 6.1.y-cip 00/12] Renesas: Backport audio and serial support
@ 2026-11-26 15:53 Tommaso Merciai
2026-11-26 15:53 ` [PATCH 6.1.y-cip 01/12] ASoC: sh: rz-ssi: Convert to platform remove callback returning void Tommaso Merciai
` (13 more replies)
0 siblings, 14 replies; 15+ messages in thread
From: Tommaso Merciai @ 2026-11-26 15:53 UTC (permalink / raw)
To: cip-dev, Nobuhiro Iwamatsu, Pavel Machek
Cc: Biju Das, Lad Prabhakar, tomm.merciai
Hi,
This series switches the rz-ssi driver to use cyclic DMA. Along with
it a DMA fix was added. This fix needs to be applied after the rz-ssi is
switched to use cyclic DMA, to avoid any regression. This series add also
rspi suspend/resume support.
For bisectability reasons, this series needs to be applied on top of
series https://lore.kernel.org/all/20261126154747.3832917-1-tommaso.merciai.xr@bp.renesas.com/
This is the equivalent work done for linux-5.10.y-cip kernel [1].
[1] https://lore.kernel.org/all/20261126152553.1298561-1-claudiu.beznea@tuxon.dev/T/#t
Thank you,
Tommaso
Biju Das (1):
ASoC: sh: rz-ssi: Use SSIFCR_FIFO_RST macro
Claudiu Beznea (8):
ASoC: renesas: rz-ssi: Remove the rz_ssi_get_dai() function
ASoC: renesas: rz-ssi: Simplify the logic in rz_ssi_stream_is_play()
ASoC: renesas: rz-ssi: Drop unnecessary if condition
ASoC: renesas: rz-ssi: Drop the & operator in front of function name
ASoC: renesas: rz-ssi: Drop goto label
ASoC: renesas: rz-ssi: Fix playback and capture
ASoC: renesas: rz-ssi: Add pause support
ASoC: renesas: rz-ssi: Use generic PCM dmaengine APIs
Kuninori Morimoto (1):
ASoC: renesas: rz-ssi: Use guard() for spin locks
Tommaso Merciai (1):
spi: rzv2h-rspi: Add suspend/resume support
Uwe Kleine-König (1):
ASoC: sh: rz-ssi: Convert to platform remove callback returning void
drivers/spi/spi-rzv2h-rspi.c | 18 ++
sound/soc/sh/Kconfig | 1 +
sound/soc/sh/rz-ssi.c | 462 ++++++++++++-----------------------
3 files changed, 177 insertions(+), 304 deletions(-)
--
2.54.0
^ permalink raw reply [flat|nested] 15+ messages in thread* [PATCH 6.1.y-cip 01/12] ASoC: sh: rz-ssi: Convert to platform remove callback returning void 2026-11-26 15:53 [PATCH 6.1.y-cip 00/12] Renesas: Backport audio and serial support Tommaso Merciai @ 2026-11-26 15:53 ` Tommaso Merciai 2026-11-26 15:53 ` [PATCH 6.1.y-cip 02/12] ASoC: sh: rz-ssi: Use SSIFCR_FIFO_RST macro Tommaso Merciai ` (12 subsequent siblings) 13 siblings, 0 replies; 15+ messages in thread From: Tommaso Merciai @ 2026-11-26 15:53 UTC (permalink / raw) To: cip-dev, Nobuhiro Iwamatsu, Pavel Machek Cc: Biju Das, Lad Prabhakar, tomm.merciai From: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> commit b89438c71d72a9afbf72836630bfc995fed59e68 upstream. The .remove() callback for a platform driver returns an int which makes many driver authors wrongly assume it's possible to do error handling by returning an error code. However the value returned is (mostly) ignored and this typically results in resource leaks. To improve here there is a quest to make the remove callback return void. In the first step of this quest all drivers are converted to .remove_new() which already returns void. Trivially convert this driver from always returning zero in the remove callback to the void returning variant. Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Acked-by: Takashi Iwai <tiwai@suse.de> Acked-by: Nicolas Ferre <nicolas.ferre@microchip.com> Link: https://lore.kernel.org/r/20230315150745.67084-134-u.kleine-koenig@pengutronix.de Signed-off-by: Mark Brown <broonie@kernel.org> Signed-off-by: Tommaso Merciai <tommaso.merciai.xr@bp.renesas.com> --- sound/soc/sh/rz-ssi.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/sound/soc/sh/rz-ssi.c b/sound/soc/sh/rz-ssi.c index b50868a9d2db..bb3be2c338e2 100644 --- a/sound/soc/sh/rz-ssi.c +++ b/sound/soc/sh/rz-ssi.c @@ -1287,15 +1287,13 @@ static int rz_ssi_probe(struct platform_device *pdev) return ret; } -static int rz_ssi_remove(struct platform_device *pdev) +static void rz_ssi_remove(struct platform_device *pdev) { struct rz_ssi_priv *ssi = dev_get_drvdata(&pdev->dev); rz_ssi_release_dma_channels(ssi); reset_control_assert(ssi->rstc); - - return 0; } static const struct of_device_id rz_ssi_of_match[] = { @@ -1330,7 +1328,7 @@ static struct platform_driver rz_ssi_driver = { .pm = pm_ptr(&rz_ssi_pm_ops), }, .probe = rz_ssi_probe, - .remove = rz_ssi_remove, + .remove_new = rz_ssi_remove, }; module_platform_driver(rz_ssi_driver); -- 2.54.0 ^ permalink raw reply related [flat|nested] 15+ messages in thread
* [PATCH 6.1.y-cip 02/12] ASoC: sh: rz-ssi: Use SSIFCR_FIFO_RST macro 2026-11-26 15:53 [PATCH 6.1.y-cip 00/12] Renesas: Backport audio and serial support Tommaso Merciai 2026-11-26 15:53 ` [PATCH 6.1.y-cip 01/12] ASoC: sh: rz-ssi: Convert to platform remove callback returning void Tommaso Merciai @ 2026-11-26 15:53 ` Tommaso Merciai 2026-11-26 15:53 ` [PATCH 6.1.y-cip 03/12] ASoC: renesas: rz-ssi: Use guard() for spin locks Tommaso Merciai ` (11 subsequent siblings) 13 siblings, 0 replies; 15+ messages in thread From: Tommaso Merciai @ 2026-11-26 15:53 UTC (permalink / raw) To: cip-dev, Nobuhiro Iwamatsu, Pavel Machek Cc: Biju Das, Lad Prabhakar, tomm.merciai From: Biju Das <biju.das.jz@bp.renesas.com> commit 64207f8024899938f8e13c4649a060a19f18bff3 upstream. Use SSIFCR_FIFO_RST macro to make the line shorter. Suggested-by: Nobuhiro Iwamatsu <nobuhiro1.iwamatsu@toshiba.co.jp> Signed-off-by: Biju Das <biju.das.jz@bp.renesas.com> Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be> Link: https://patch.msgid.link/20241003081140.31332-1-biju.das.jz@bp.renesas.com Signed-off-by: Mark Brown <broonie@kernel.org> Signed-off-by: Tommaso Merciai <tommaso.merciai.xr@bp.renesas.com> --- sound/soc/sh/rz-ssi.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/sound/soc/sh/rz-ssi.c b/sound/soc/sh/rz-ssi.c index bb3be2c338e2..0438de291f81 100644 --- a/sound/soc/sh/rz-ssi.c +++ b/sound/soc/sh/rz-ssi.c @@ -333,8 +333,7 @@ static int rz_ssi_clk_setup(struct rz_ssi_priv *ssi, unsigned int rate, ssicr |= SSICR_SWL(3); rz_ssi_reg_writel(ssi, SSICR, ssicr); - rz_ssi_reg_writel(ssi, SSIFCR, - (SSIFCR_AUCKE | SSIFCR_TFRST | SSIFCR_RFRST)); + rz_ssi_reg_writel(ssi, SSIFCR, SSIFCR_AUCKE | SSIFCR_FIFO_RST); return 0; } @@ -360,8 +359,7 @@ static void rz_ssi_set_idle(struct rz_ssi_priv *ssi) dev_warn_ratelimited(ssi->dev, "timeout waiting for SSI idle\n"); /* Hold FIFOs in reset */ - rz_ssi_reg_mask_setl(ssi, SSIFCR, 0, - SSIFCR_TFRST | SSIFCR_RFRST); + rz_ssi_reg_mask_setl(ssi, SSIFCR, 0, SSIFCR_FIFO_RST); } static int rz_ssi_start(struct rz_ssi_priv *ssi, struct rz_ssi_stream *strm) -- 2.54.0 ^ permalink raw reply related [flat|nested] 15+ messages in thread
* [PATCH 6.1.y-cip 03/12] ASoC: renesas: rz-ssi: Use guard() for spin locks 2026-11-26 15:53 [PATCH 6.1.y-cip 00/12] Renesas: Backport audio and serial support Tommaso Merciai 2026-11-26 15:53 ` [PATCH 6.1.y-cip 01/12] ASoC: sh: rz-ssi: Convert to platform remove callback returning void Tommaso Merciai 2026-11-26 15:53 ` [PATCH 6.1.y-cip 02/12] ASoC: sh: rz-ssi: Use SSIFCR_FIFO_RST macro Tommaso Merciai @ 2026-11-26 15:53 ` Tommaso Merciai 2026-11-26 15:53 ` [PATCH 6.1.y-cip 04/12] ASoC: renesas: rz-ssi: Remove the rz_ssi_get_dai() function Tommaso Merciai ` (10 subsequent siblings) 13 siblings, 0 replies; 15+ messages in thread From: Tommaso Merciai @ 2026-11-26 15:53 UTC (permalink / raw) To: cip-dev, Nobuhiro Iwamatsu, Pavel Machek Cc: Biju Das, Lad Prabhakar, tomm.merciai From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> commit 7d083666123a425ba9f81dff1a52955b1f226540 upstream. Clean up the code using guard() for spin locks. Merely code refactoring, and no behavior change. Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Message-ID: <87frcx1yp5.wl-kuninori.morimoto.gx@renesas.com> Signed-off-by: Mark Brown <broonie@kernel.org> Signed-off-by: Tommaso Merciai <tommaso.merciai.xr@bp.renesas.com> --- sound/soc/sh/rz-ssi.c | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/sound/soc/sh/rz-ssi.c b/sound/soc/sh/rz-ssi.c index 0438de291f81..d1e21e08bbb6 100644 --- a/sound/soc/sh/rz-ssi.c +++ b/sound/soc/sh/rz-ssi.c @@ -206,24 +206,18 @@ static void rz_ssi_set_substream(struct rz_ssi_stream *strm, struct snd_pcm_substream *substream) { struct rz_ssi_priv *ssi = strm->priv; - unsigned long flags; - spin_lock_irqsave(&ssi->lock, flags); + guard(spinlock_irqsave)(&ssi->lock); + strm->substream = substream; - spin_unlock_irqrestore(&ssi->lock, flags); } static bool rz_ssi_stream_is_valid(struct rz_ssi_priv *ssi, struct rz_ssi_stream *strm) { - unsigned long flags; - bool ret; - - spin_lock_irqsave(&ssi->lock, flags); - ret = strm->substream && strm->substream->runtime; - spin_unlock_irqrestore(&ssi->lock, flags); + guard(spinlock_irqsave)(&ssi->lock); - return ret; + return strm->substream && strm->substream->runtime; } static inline bool rz_ssi_is_stream_running(struct rz_ssi_stream *strm) -- 2.54.0 ^ permalink raw reply related [flat|nested] 15+ messages in thread
* [PATCH 6.1.y-cip 04/12] ASoC: renesas: rz-ssi: Remove the rz_ssi_get_dai() function 2026-11-26 15:53 [PATCH 6.1.y-cip 00/12] Renesas: Backport audio and serial support Tommaso Merciai ` (2 preceding siblings ...) 2026-11-26 15:53 ` [PATCH 6.1.y-cip 03/12] ASoC: renesas: rz-ssi: Use guard() for spin locks Tommaso Merciai @ 2026-11-26 15:53 ` Tommaso Merciai 2026-11-26 15:53 ` [PATCH 6.1.y-cip 05/12] ASoC: renesas: rz-ssi: Simplify the logic in rz_ssi_stream_is_play() Tommaso Merciai ` (9 subsequent siblings) 13 siblings, 0 replies; 15+ messages in thread From: Tommaso Merciai @ 2026-11-26 15:53 UTC (permalink / raw) To: cip-dev, Nobuhiro Iwamatsu, Pavel Machek Cc: Biju Das, Lad Prabhakar, tomm.merciai From: Claudiu Beznea <claudiu.beznea.uj@bp.renesas.com> commit dec61e16e72db196e8dc1daf7f7022fd98e6d921 upstream. Remove the rz_ssi_get_dai() function and use directly the snd_soc_rtd_to_cpu() where needed or the struct device pointer embedded in the struct rz_ssi_priv objects. Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be> Signed-off-by: Claudiu Beznea <claudiu.beznea.uj@bp.renesas.com> Link: https://patch.msgid.link/20241210170953.2936724-9-claudiu.beznea.uj@bp.renesas.com Signed-off-by: Mark Brown <broonie@kernel.org> [tm: Resolved context conflict: the local rz_ssi_stream_is_play() already has the single-argument signature from commit 109e60866f11 ("ASoC: renesas: rz-ssi: Remove the first argument of rz_ssi_stream_is_play()"), already backported, while upstream's context still has the two-argument form. Used asoc_substream_to_rtd()/asoc_rtd_to_cpu() instead of snd_soc_substream_to_rtd()/snd_soc_rtd_to_cpu(), which are not available in 6.1.y] Signed-off-by: Tommaso Merciai <tommaso.merciai.xr@bp.renesas.com> --- sound/soc/sh/rz-ssi.c | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) diff --git a/sound/soc/sh/rz-ssi.c b/sound/soc/sh/rz-ssi.c index d1e21e08bbb6..401fce5b1918 100644 --- a/sound/soc/sh/rz-ssi.c +++ b/sound/soc/sh/rz-ssi.c @@ -173,14 +173,6 @@ static void rz_ssi_reg_mask_setl(struct rz_ssi_priv *priv, uint reg, writel(val, (priv->base + reg)); } -static inline struct snd_soc_dai * -rz_ssi_get_dai(struct snd_pcm_substream *substream) -{ - struct snd_soc_pcm_runtime *rtd = asoc_substream_to_rtd(substream); - - return asoc_rtd_to_cpu(rtd, 0); -} - static inline bool rz_ssi_stream_is_play(struct snd_pcm_substream *substream) { return substream->stream == SNDRV_PCM_STREAM_PLAYBACK; @@ -245,15 +237,15 @@ static void rz_ssi_stream_init(struct rz_ssi_stream *strm, static void rz_ssi_stream_quit(struct rz_ssi_priv *ssi, struct rz_ssi_stream *strm) { - struct snd_soc_dai *dai = rz_ssi_get_dai(strm->substream); + struct device *dev = ssi->dev; rz_ssi_set_substream(strm, NULL); if (strm->oerr_num > 0) - dev_info(dai->dev, "overrun = %d\n", strm->oerr_num); + dev_info(dev, "overrun = %d\n", strm->oerr_num); if (strm->uerr_num > 0) - dev_info(dai->dev, "underrun = %d\n", strm->uerr_num); + dev_info(dev, "underrun = %d\n", strm->uerr_num); } static int rz_ssi_clk_setup(struct rz_ssi_priv *ssi, unsigned int rate, @@ -1094,7 +1086,8 @@ static int rz_ssi_pcm_open(struct snd_soc_component *component, static snd_pcm_uframes_t rz_ssi_pcm_pointer(struct snd_soc_component *component, struct snd_pcm_substream *substream) { - struct snd_soc_dai *dai = rz_ssi_get_dai(substream); + struct snd_soc_pcm_runtime *rtd = asoc_substream_to_rtd(substream); + struct snd_soc_dai *dai = asoc_rtd_to_cpu(rtd, 0); struct rz_ssi_priv *ssi = snd_soc_dai_get_drvdata(dai); struct rz_ssi_stream *strm = rz_ssi_stream_get(ssi, substream); -- 2.54.0 ^ permalink raw reply related [flat|nested] 15+ messages in thread
* [PATCH 6.1.y-cip 05/12] ASoC: renesas: rz-ssi: Simplify the logic in rz_ssi_stream_is_play() 2026-11-26 15:53 [PATCH 6.1.y-cip 00/12] Renesas: Backport audio and serial support Tommaso Merciai ` (3 preceding siblings ...) 2026-11-26 15:53 ` [PATCH 6.1.y-cip 04/12] ASoC: renesas: rz-ssi: Remove the rz_ssi_get_dai() function Tommaso Merciai @ 2026-11-26 15:53 ` Tommaso Merciai 2026-11-26 15:53 ` [PATCH 6.1.y-cip 06/12] ASoC: renesas: rz-ssi: Drop unnecessary if condition Tommaso Merciai ` (8 subsequent siblings) 13 siblings, 0 replies; 15+ messages in thread From: Tommaso Merciai @ 2026-11-26 15:53 UTC (permalink / raw) To: cip-dev, Nobuhiro Iwamatsu, Pavel Machek Cc: Biju Das, Lad Prabhakar, tomm.merciai From: Claudiu Beznea <claudiu.beznea.uj@bp.renesas.com> commit 53dfb2ad6fcff111f58aa506afbbf6fd82f32cb1 upstream. The code in rz_ssi_stream_is_play() checks whether substream->stream is different from SNDRV_PCM_STREAM_PLAYBACK and returns the capture struct rz_ssi_stream in that case. The logic is easier to follow if substream->stream is compared directly against SNDRV_PCM_STREAM_CAPTURE and return the capture struct rz_ssi_stream. Use the conditional operator to simplify the code. Signed-off-by: Claudiu Beznea <claudiu.beznea.uj@bp.renesas.com> Link: https://patch.msgid.link/20260119195252.3362486-2-claudiu.beznea.uj@bp.renesas.com Signed-off-by: Mark Brown <broonie@kernel.org> Signed-off-by: Tommaso Merciai <tommaso.merciai.xr@bp.renesas.com> --- sound/soc/sh/rz-ssi.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/sound/soc/sh/rz-ssi.c b/sound/soc/sh/rz-ssi.c index 401fce5b1918..73b6c75adb8a 100644 --- a/sound/soc/sh/rz-ssi.c +++ b/sound/soc/sh/rz-ssi.c @@ -181,12 +181,7 @@ static inline bool rz_ssi_stream_is_play(struct snd_pcm_substream *substream) static inline struct rz_ssi_stream * rz_ssi_stream_get(struct rz_ssi_priv *ssi, struct snd_pcm_substream *substream) { - struct rz_ssi_stream *stream = &ssi->playback; - - if (substream->stream != SNDRV_PCM_STREAM_PLAYBACK) - stream = &ssi->capture; - - return stream; + return (ssi->playback.substream == substream) ? &ssi->playback : &ssi->capture; } static inline bool rz_ssi_is_dma_enabled(struct rz_ssi_priv *ssi) -- 2.54.0 ^ permalink raw reply related [flat|nested] 15+ messages in thread
* [PATCH 6.1.y-cip 06/12] ASoC: renesas: rz-ssi: Drop unnecessary if condition 2026-11-26 15:53 [PATCH 6.1.y-cip 00/12] Renesas: Backport audio and serial support Tommaso Merciai ` (4 preceding siblings ...) 2026-11-26 15:53 ` [PATCH 6.1.y-cip 05/12] ASoC: renesas: rz-ssi: Simplify the logic in rz_ssi_stream_is_play() Tommaso Merciai @ 2026-11-26 15:53 ` Tommaso Merciai 2026-11-26 15:53 ` [PATCH 6.1.y-cip 07/12] ASoC: renesas: rz-ssi: Drop the & operator in front of function name Tommaso Merciai ` (7 subsequent siblings) 13 siblings, 0 replies; 15+ messages in thread From: Tommaso Merciai @ 2026-11-26 15:53 UTC (permalink / raw) To: cip-dev, Nobuhiro Iwamatsu, Pavel Machek Cc: Biju Das, Lad Prabhakar, tomm.merciai From: Claudiu Beznea <claudiu.beznea.uj@bp.renesas.com> commit 9e0e337cc6c7f30a5986dd44dac5c0a0e30d971f upstream. The is_stopped variable can be initialized directly at declaration, removing the need for an extra if condition. Drop the if condition and initialize is_stopped at declaration. Signed-off-by: Claudiu Beznea <claudiu.beznea.uj@bp.renesas.com> Link: https://patch.msgid.link/20260119195252.3362486-3-claudiu.beznea.uj@bp.renesas.com Signed-off-by: Mark Brown <broonie@kernel.org> Signed-off-by: Tommaso Merciai <tommaso.merciai.xr@bp.renesas.com> --- sound/soc/sh/rz-ssi.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/sound/soc/sh/rz-ssi.c b/sound/soc/sh/rz-ssi.c index 73b6c75adb8a..d38653a825ae 100644 --- a/sound/soc/sh/rz-ssi.c +++ b/sound/soc/sh/rz-ssi.c @@ -605,7 +605,8 @@ static irqreturn_t rz_ssi_interrupt(int irq, void *data) return IRQ_HANDLED; /* Left over TX/RX interrupt */ if (irq == ssi->irq_int) { /* error or idle */ - bool is_stopped = false; + bool is_stopped = !!(ssisr & (SSISR_RUIRQ | SSISR_ROIRQ | + SSISR_TUIRQ | SSISR_TOIRQ)); int i, count; if (rz_ssi_is_dma_enabled(ssi)) @@ -613,9 +614,6 @@ static irqreturn_t rz_ssi_interrupt(int irq, void *data) else count = 1; - if (ssisr & (SSISR_RUIRQ | SSISR_ROIRQ | SSISR_TUIRQ | SSISR_TOIRQ)) - is_stopped = true; - if (ssi->capture.substream && is_stopped) { if (ssisr & SSISR_RUIRQ) strm_capture->uerr_num++; -- 2.54.0 ^ permalink raw reply related [flat|nested] 15+ messages in thread
* [PATCH 6.1.y-cip 07/12] ASoC: renesas: rz-ssi: Drop the & operator in front of function name 2026-11-26 15:53 [PATCH 6.1.y-cip 00/12] Renesas: Backport audio and serial support Tommaso Merciai ` (5 preceding siblings ...) 2026-11-26 15:53 ` [PATCH 6.1.y-cip 06/12] ASoC: renesas: rz-ssi: Drop unnecessary if condition Tommaso Merciai @ 2026-11-26 15:53 ` Tommaso Merciai 2026-11-26 15:53 ` [PATCH 6.1.y-cip 08/12] ASoC: renesas: rz-ssi: Drop goto label Tommaso Merciai ` (6 subsequent siblings) 13 siblings, 0 replies; 15+ messages in thread From: Tommaso Merciai @ 2026-11-26 15:53 UTC (permalink / raw) To: cip-dev, Nobuhiro Iwamatsu, Pavel Machek Cc: Biju Das, Lad Prabhakar, tomm.merciai From: Claudiu Beznea <claudiu.beznea.uj@bp.renesas.com> commit c7a4c368e7135046c358ff15c4f7897e2522dedc upstream. There is no need for & operator in front of the function name. Drop it. Signed-off-by: Claudiu Beznea <claudiu.beznea.uj@bp.renesas.com> Link: https://patch.msgid.link/20260119195252.3362486-4-claudiu.beznea.uj@bp.renesas.com Signed-off-by: Mark Brown <broonie@kernel.org> Signed-off-by: Tommaso Merciai <tommaso.merciai.xr@bp.renesas.com> --- sound/soc/sh/rz-ssi.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sound/soc/sh/rz-ssi.c b/sound/soc/sh/rz-ssi.c index d38653a825ae..5893bc4d51e7 100644 --- a/sound/soc/sh/rz-ssi.c +++ b/sound/soc/sh/rz-ssi.c @@ -1189,7 +1189,7 @@ static int rz_ssi_probe(struct platform_device *pdev) goto err_release_dma_chs; } - ret = devm_request_irq(dev, ssi->irq_int, &rz_ssi_interrupt, + ret = devm_request_irq(dev, ssi->irq_int, rz_ssi_interrupt, 0, dev_name(dev), ssi); if (ret < 0) { dev_err_probe(dev, ret, "irq request error (int_req)\n"); @@ -1206,7 +1206,7 @@ static int rz_ssi_probe(struct platform_device *pdev) return ssi->irq_rt; ret = devm_request_irq(dev, ssi->irq_rt, - &rz_ssi_interrupt, 0, + rz_ssi_interrupt, 0, dev_name(dev), ssi); if (ret < 0) return dev_err_probe(dev, ret, @@ -1219,14 +1219,14 @@ static int rz_ssi_probe(struct platform_device *pdev) return ssi->irq_rx; ret = devm_request_irq(dev, ssi->irq_tx, - &rz_ssi_interrupt, 0, + rz_ssi_interrupt, 0, dev_name(dev), ssi); if (ret < 0) return dev_err_probe(dev, ret, "irq request error (dma_tx)\n"); ret = devm_request_irq(dev, ssi->irq_rx, - &rz_ssi_interrupt, 0, + rz_ssi_interrupt, 0, dev_name(dev), ssi); if (ret < 0) return dev_err_probe(dev, ret, -- 2.54.0 ^ permalink raw reply related [flat|nested] 15+ messages in thread
* [PATCH 6.1.y-cip 08/12] ASoC: renesas: rz-ssi: Drop goto label 2026-11-26 15:53 [PATCH 6.1.y-cip 00/12] Renesas: Backport audio and serial support Tommaso Merciai ` (6 preceding siblings ...) 2026-11-26 15:53 ` [PATCH 6.1.y-cip 07/12] ASoC: renesas: rz-ssi: Drop the & operator in front of function name Tommaso Merciai @ 2026-11-26 15:53 ` Tommaso Merciai 2026-11-26 15:53 ` [PATCH 6.1.y-cip 09/12] ASoC: renesas: rz-ssi: Fix playback and capture Tommaso Merciai ` (5 subsequent siblings) 13 siblings, 0 replies; 15+ messages in thread From: Tommaso Merciai @ 2026-11-26 15:53 UTC (permalink / raw) To: cip-dev, Nobuhiro Iwamatsu, Pavel Machek Cc: Biju Das, Lad Prabhakar, tomm.merciai From: Claudiu Beznea <claudiu.beznea.uj@bp.renesas.com> commit cafadbf430f4b2f3ca4158de48ef6ba4d97fbf17 upstream. There is no need to jump to a label just to return. Return directly instead. Signed-off-by: Claudiu Beznea <claudiu.beznea.uj@bp.renesas.com> Link: https://patch.msgid.link/20260119195252.3362486-5-claudiu.beznea.uj@bp.renesas.com Signed-off-by: Mark Brown <broonie@kernel.org> Signed-off-by: Tommaso Merciai <tommaso.merciai.xr@bp.renesas.com> --- sound/soc/sh/rz-ssi.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sound/soc/sh/rz-ssi.c b/sound/soc/sh/rz-ssi.c index 5893bc4d51e7..42eee8c480a5 100644 --- a/sound/soc/sh/rz-ssi.c +++ b/sound/soc/sh/rz-ssi.c @@ -882,7 +882,7 @@ static int rz_ssi_dai_trigger(struct snd_pcm_substream *substream, int cmd, for (i = 0; i < num_transfer; i++) { ret = strm->transfer(ssi, strm); if (ret) - goto done; + return ret; } ret = rz_ssi_start(ssi, strm); @@ -898,7 +898,6 @@ static int rz_ssi_dai_trigger(struct snd_pcm_substream *substream, int cmd, break; } -done: return ret; } -- 2.54.0 ^ permalink raw reply related [flat|nested] 15+ messages in thread
* [PATCH 6.1.y-cip 09/12] ASoC: renesas: rz-ssi: Fix playback and capture 2026-11-26 15:53 [PATCH 6.1.y-cip 00/12] Renesas: Backport audio and serial support Tommaso Merciai ` (7 preceding siblings ...) 2026-11-26 15:53 ` [PATCH 6.1.y-cip 08/12] ASoC: renesas: rz-ssi: Drop goto label Tommaso Merciai @ 2026-11-26 15:53 ` Tommaso Merciai 2026-11-26 15:53 ` [PATCH 6.1.y-cip 10/12] ASoC: renesas: rz-ssi: Add pause support Tommaso Merciai ` (4 subsequent siblings) 13 siblings, 0 replies; 15+ messages in thread From: Tommaso Merciai @ 2026-11-26 15:53 UTC (permalink / raw) To: cip-dev, Nobuhiro Iwamatsu, Pavel Machek Cc: Biju Das, Lad Prabhakar, tomm.merciai From: Claudiu Beznea <claudiu.beznea.uj@bp.renesas.com> commit 82e3265487c018814b789e251fb8aee8e683674c upstream. In the current codebase the rz_ssi_stream_get() is called at the beginning of rz_ssi_dai_trigger() before rz_ssi_stream_init() is called. Since rz_ssi_stream_init() sets the ssi->{playback, capture}->substream, relying on it in rz_ssi_stream_get() is incorrect. Fix this by checking substream->stream instead as the original code did. Fixes: 53dfb2ad6fcf ("ASoC: renesas: rz-ssi: Simplify the logic in rz_ssi_stream_is_play()") Signed-off-by: Claudiu Beznea <claudiu.beznea.uj@bp.renesas.com> Link: https://patch.msgid.link/20260213172434.3801015-1-claudiu.beznea.uj@bp.renesas.com Signed-off-by: Mark Brown <broonie@kernel.org> Signed-off-by: Tommaso Merciai <tommaso.merciai.xr@bp.renesas.com> --- sound/soc/sh/rz-ssi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/sh/rz-ssi.c b/sound/soc/sh/rz-ssi.c index 42eee8c480a5..0491f0e46187 100644 --- a/sound/soc/sh/rz-ssi.c +++ b/sound/soc/sh/rz-ssi.c @@ -181,7 +181,7 @@ static inline bool rz_ssi_stream_is_play(struct snd_pcm_substream *substream) static inline struct rz_ssi_stream * rz_ssi_stream_get(struct rz_ssi_priv *ssi, struct snd_pcm_substream *substream) { - return (ssi->playback.substream == substream) ? &ssi->playback : &ssi->capture; + return (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) ? &ssi->playback : &ssi->capture; } static inline bool rz_ssi_is_dma_enabled(struct rz_ssi_priv *ssi) -- 2.54.0 ^ permalink raw reply related [flat|nested] 15+ messages in thread
* [PATCH 6.1.y-cip 10/12] ASoC: renesas: rz-ssi: Add pause support 2026-11-26 15:53 [PATCH 6.1.y-cip 00/12] Renesas: Backport audio and serial support Tommaso Merciai ` (8 preceding siblings ...) 2026-11-26 15:53 ` [PATCH 6.1.y-cip 09/12] ASoC: renesas: rz-ssi: Fix playback and capture Tommaso Merciai @ 2026-11-26 15:53 ` Tommaso Merciai 2026-11-26 15:53 ` [PATCH 6.1.y-cip 11/12] ASoC: renesas: rz-ssi: Use generic PCM dmaengine APIs Tommaso Merciai ` (3 subsequent siblings) 13 siblings, 0 replies; 15+ messages in thread From: Tommaso Merciai @ 2026-11-26 15:53 UTC (permalink / raw) To: cip-dev, Nobuhiro Iwamatsu, Pavel Machek Cc: Biju Das, Lad Prabhakar, tomm.merciai From: Claudiu Beznea <claudiu.beznea.uj@bp.renesas.com> commit b4d34819a53964648bc53cabaa3ba9890d4fdf9c upstream. Add pause support as a preparatory step to switch to PCM dmaengine APIs. Acked-by: Mark Brown <broonie@kernel.org> Tested-by: John Madieu <john.madieu.xa@bp.renesas.com> Signed-off-by: Claudiu Beznea <claudiu.beznea.uj@bp.renesas.com> Link: https://patch.msgid.link/20260526084710.3491480-17-claudiu.beznea@kernel.org Signed-off-by: Vinod Koul <vkoul@kernel.org> Signed-off-by: Tommaso Merciai <tommaso.merciai.xr@bp.renesas.com> --- sound/soc/sh/rz-ssi.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/sound/soc/sh/rz-ssi.c b/sound/soc/sh/rz-ssi.c index 0491f0e46187..d9922850cf5e 100644 --- a/sound/soc/sh/rz-ssi.c +++ b/sound/soc/sh/rz-ssi.c @@ -848,6 +848,7 @@ static int rz_ssi_dai_trigger(struct snd_pcm_substream *substream, int cmd, switch (cmd) { case SNDRV_PCM_TRIGGER_RESUME: + case SNDRV_PCM_TRIGGER_PAUSE_RELEASE: ret = rz_ssi_trigger_resume(ssi, strm); if (ret) return ret; @@ -889,6 +890,7 @@ static int rz_ssi_dai_trigger(struct snd_pcm_substream *substream, int cmd, break; case SNDRV_PCM_TRIGGER_SUSPEND: + case SNDRV_PCM_TRIGGER_PAUSE_PUSH: rz_ssi_stop(ssi, strm); break; @@ -1055,7 +1057,8 @@ static const struct snd_pcm_hardware rz_ssi_pcm_hardware = { .info = SNDRV_PCM_INFO_INTERLEAVED | SNDRV_PCM_INFO_MMAP | SNDRV_PCM_INFO_MMAP_VALID | - SNDRV_PCM_INFO_RESUME, + SNDRV_PCM_INFO_RESUME | + SNDRV_PCM_INFO_PAUSE, .buffer_bytes_max = PREALLOC_BUFFER, .period_bytes_min = 32, .period_bytes_max = 8192, -- 2.54.0 ^ permalink raw reply related [flat|nested] 15+ messages in thread
* [PATCH 6.1.y-cip 11/12] ASoC: renesas: rz-ssi: Use generic PCM dmaengine APIs 2026-11-26 15:53 [PATCH 6.1.y-cip 00/12] Renesas: Backport audio and serial support Tommaso Merciai ` (9 preceding siblings ...) 2026-11-26 15:53 ` [PATCH 6.1.y-cip 10/12] ASoC: renesas: rz-ssi: Add pause support Tommaso Merciai @ 2026-11-26 15:53 ` Tommaso Merciai 2026-11-26 15:53 ` [PATCH 6.1.y-cip 12/12] spi: rzv2h-rspi: Add suspend/resume support Tommaso Merciai ` (2 subsequent siblings) 13 siblings, 0 replies; 15+ messages in thread From: Tommaso Merciai @ 2026-11-26 15:53 UTC (permalink / raw) To: cip-dev, Nobuhiro Iwamatsu, Pavel Machek Cc: Biju Das, Lad Prabhakar, tomm.merciai From: Claudiu Beznea <claudiu.beznea.uj@bp.renesas.com> commit 9fcaec81ac56c9d2c5d779ffb5a76b622b4d0590 upstream. On Renesas RZ/G2L and RZ/G3S SoCs (where this was tested), captured audio files occasionally contained random spikes when viewed with a tool such as Audacity. These spikes were also audible as popping noises. Using cyclic DMA resolves this issue. The driver was reworked to use the existing support provided by the generic PCM dmaengine APIs. In addition to eliminating the random spikes, the following issues were addressed: - blank periods at the beginning of recorded files, which occurred intermittently, are no longer present - no overruns or underruns were observed when continuously recording short audio files (e.g. 5 seconds long) in a loop - concurrency issues in the SSI driver when enqueuing DMA requests were eliminated; previously, DMA requests could be prepared and submitted both from the DMA completion callback and the interrupt handler, which led to crashes after several hours of testing - the SSI driver logic is simplified - the number of generated interrupts is reduced by approximately 250% In the SSI platform driver probe function, the following changes were made: - the driver-specific DMA configuration was removed in favor of the generic PCM dmaengine APIs. As a result, explicit cleanup goto labels are no longer required and the driver remove callback was dropped, since resource management is now handled via devres helpers - special handling was added for IP variants operating in half-duplex mode, where the DMA channel name in the device tree is "rt"; this DMA channel name is taken into account and passed to the generic PCM dmaengine configuration data All code previously responsible for preparing and completing DMA transfers was removed, as this functionality is now handled entirely by the generic PCM dmaengine APIs. Since DMA channels must be paused and resumed during recovery paths (overruns and underruns reported by the hardware), the DMA channel references are stored in rz_ssi_hw_params(). The logic in rz_ssi_is_dma_enabled() was updated to reflect that the driver no longer manages DMA transfers directly. To avoid software reported underruns (e.g. when running aplay during consecutive suspend/resume cycles, or when the CPU is nearly 100% loaded), rz_ssi_pcm_hardware.buffer_bytes_max was increased to 192K. At the same time, rz_ssi_pcm_hardware.period_bytes_max was set to 48K to reduce interrupt overhead. Finally, rz_ssi_stream_is_play() was removed, as it had only a single remaining user after this rework, and its logic was inlined at the call site. Acked-by: Mark Brown <broonie@kernel.org> Tested-by: John Madieu <john.madieu.xa@bp.renesas.com> Signed-off-by: Claudiu Beznea <claudiu.beznea.uj@bp.renesas.com> Link: https://patch.msgid.link/20260526084710.3491480-18-claudiu.beznea@kernel.org Signed-off-by: Vinod Koul <vkoul@kernel.org> [tm: Removed .remove_new instead of .remove of the original upstream patch] Signed-off-by: Tommaso Merciai <tommaso.merciai.xr@bp.renesas.com> --- sound/soc/sh/Kconfig | 1 + sound/soc/sh/rz-ssi.c | 394 +++++++++++++++--------------------------- 2 files changed, 136 insertions(+), 259 deletions(-) diff --git a/sound/soc/sh/Kconfig b/sound/soc/sh/Kconfig index 97916e3ca9dd..1a72d7302a61 100644 --- a/sound/soc/sh/Kconfig +++ b/sound/soc/sh/Kconfig @@ -48,6 +48,7 @@ config SND_SOC_RCAR config SND_SOC_RZ tristate "RZ/G2L series SSIF-2 support" depends on ARCH_RZG2L || COMPILE_TEST + select SND_SOC_GENERIC_DMAENGINE_PCM help This option enables RZ/G2L SSIF-2 sound support. diff --git a/sound/soc/sh/rz-ssi.c b/sound/soc/sh/rz-ssi.c index d9922850cf5e..20f84c942aa0 100644 --- a/sound/soc/sh/rz-ssi.c +++ b/sound/soc/sh/rz-ssi.c @@ -14,6 +14,8 @@ #include <linux/of_device.h> #include <linux/pm_runtime.h> #include <linux/reset.h> +#include <sound/dmaengine_pcm.h> +#include <sound/pcm.h> #include <sound/pcm_params.h> #include <sound/soc.h> @@ -88,8 +90,6 @@ struct rz_ssi_stream { struct rz_ssi_priv *priv; struct snd_pcm_substream *substream; int fifo_sample_size; /* sample capacity of SSI FIFO */ - int dma_buffer_pos; /* The address for the next DMA descriptor */ - int completed_dma_buf_pos; /* The address of the last completed DMA descriptor. */ int period_counter; /* for keeping track of periods transferred */ int buffer_pos; /* current frame position in the buffer */ int running; /* 0=stopped, 1=running */ @@ -97,8 +97,6 @@ struct rz_ssi_stream { int uerr_num; int oerr_num; - struct dma_chan *dma_ch; - int (*transfer)(struct rz_ssi_priv *ssi, struct rz_ssi_stream *strm); }; @@ -109,7 +107,6 @@ struct rz_ssi_priv { struct clk *sfr_clk; struct clk *clk; - phys_addr_t phys; int irq_int; int irq_tx; int irq_rx; @@ -149,9 +146,10 @@ struct rz_ssi_priv { unsigned int sample_width; unsigned int sample_bits; } hw_params_cache; -}; -static void rz_ssi_dma_complete(void *data); + struct snd_dmaengine_dai_dma_data dma_dais[SNDRV_PCM_STREAM_LAST + 1]; + struct dma_chan *dmas[SNDRV_PCM_STREAM_LAST + 1]; +}; static void rz_ssi_reg_writel(struct rz_ssi_priv *priv, uint reg, u32 data) { @@ -173,11 +171,6 @@ static void rz_ssi_reg_mask_setl(struct rz_ssi_priv *priv, uint reg, writel(val, (priv->base + reg)); } -static inline bool rz_ssi_stream_is_play(struct snd_pcm_substream *substream) -{ - return substream->stream == SNDRV_PCM_STREAM_PLAYBACK; -} - static inline struct rz_ssi_stream * rz_ssi_stream_get(struct rz_ssi_priv *ssi, struct snd_pcm_substream *substream) { @@ -186,7 +179,7 @@ rz_ssi_stream_get(struct rz_ssi_priv *ssi, struct snd_pcm_substream *substream) static inline bool rz_ssi_is_dma_enabled(struct rz_ssi_priv *ssi) { - return (ssi->playback.dma_ch && (ssi->dma_rt || ssi->capture.dma_ch)); + return !ssi->playback.transfer && !ssi->capture.transfer; } static void rz_ssi_set_substream(struct rz_ssi_stream *strm, @@ -216,8 +209,6 @@ static void rz_ssi_stream_init(struct rz_ssi_stream *strm, struct snd_pcm_substream *substream) { rz_ssi_set_substream(strm, substream); - strm->dma_buffer_pos = 0; - strm->completed_dma_buf_pos = 0; strm->period_counter = 0; strm->buffer_pos = 0; @@ -243,12 +234,13 @@ static void rz_ssi_stream_quit(struct rz_ssi_priv *ssi, dev_info(dev, "underrun = %d\n", strm->uerr_num); } -static int rz_ssi_clk_setup(struct rz_ssi_priv *ssi, unsigned int rate, - unsigned int channels) +static int rz_ssi_clk_setup(struct rz_ssi_priv *ssi, struct snd_pcm_substream *substream, + unsigned int rate, unsigned int channels) { static u8 ckdv[] = { 1, 2, 4, 8, 16, 32, 64, 128, 6, 12, 24, 48, 96 }; unsigned int channel_bits = 32; /* System Word Length */ unsigned long bclk_rate = rate * channels * channel_bits; + struct snd_dmaengine_dai_dma_data *dma_dai; unsigned int div; unsigned int i; u32 ssicr = 0; @@ -291,6 +283,8 @@ static int rz_ssi_clk_setup(struct rz_ssi_priv *ssi, unsigned int rate, return -EINVAL; } + dma_dai = &ssi->dma_dais[substream->stream]; + /* * DWL: Data Word Length = {16, 24, 32} bits * SWL: System Word Length = 32 bits @@ -299,12 +293,15 @@ static int rz_ssi_clk_setup(struct rz_ssi_priv *ssi, unsigned int rate, switch (ssi->hw_params_cache.sample_width) { case 16: ssicr |= SSICR_DWL(1); + dma_dai->addr_width = DMA_SLAVE_BUSWIDTH_2_BYTES; break; case 24: ssicr |= SSICR_DWL(5) | SSICR_PDTA; + dma_dai->addr_width = DMA_SLAVE_BUSWIDTH_4_BYTES; break; case 32: ssicr |= SSICR_DWL(6); + dma_dai->addr_width = DMA_SLAVE_BUSWIDTH_4_BYTES; break; default: dev_err(ssi->dev, "Not support %u data width", @@ -345,7 +342,7 @@ static void rz_ssi_set_idle(struct rz_ssi_priv *ssi) static int rz_ssi_start(struct rz_ssi_priv *ssi, struct rz_ssi_stream *strm) { - bool is_play = rz_ssi_stream_is_play(strm->substream); + bool is_play = strm->substream->stream == SNDRV_PCM_STREAM_PLAYBACK; bool is_full_duplex; u32 ssicr, ssifcr; @@ -424,14 +421,6 @@ static int rz_ssi_stop(struct rz_ssi_priv *ssi, struct rz_ssi_stream *strm) /* Disable TX/RX */ rz_ssi_reg_mask_setl(ssi, SSICR, SSICR_TEN | SSICR_REN, 0); - /* Cancel all remaining DMA transactions */ - if (rz_ssi_is_dma_enabled(ssi)) { - if (ssi->playback.dma_ch) - dmaengine_terminate_async(ssi->playback.dma_ch); - if (ssi->capture.dma_ch) - dmaengine_terminate_async(ssi->capture.dma_ch); - } - rz_ssi_set_idle(ssi); return 0; @@ -459,10 +448,6 @@ static void rz_ssi_pointer_update(struct rz_ssi_stream *strm, int frames) snd_pcm_period_elapsed(strm->substream); strm->period_counter = current_period; } - - strm->completed_dma_buf_pos += runtime->period_size; - if (strm->completed_dma_buf_pos >= runtime->buffer_size) - strm->completed_dma_buf_pos = 0; } static int rz_ssi_pio_recv(struct rz_ssi_priv *ssi, struct rz_ssi_stream *strm) @@ -607,12 +592,6 @@ static irqreturn_t rz_ssi_interrupt(int irq, void *data) if (irq == ssi->irq_int) { /* error or idle */ bool is_stopped = !!(ssisr & (SSISR_RUIRQ | SSISR_ROIRQ | SSISR_TUIRQ | SSISR_TOIRQ)); - int i, count; - - if (rz_ssi_is_dma_enabled(ssi)) - count = 4; - else - count = 1; if (ssi->capture.substream && is_stopped) { if (ssisr & SSISR_RUIRQ) @@ -632,19 +611,41 @@ static irqreturn_t rz_ssi_interrupt(int irq, void *data) rz_ssi_stop(ssi, strm_playback); } + if (!rz_ssi_is_stream_running(&ssi->playback) && + !rz_ssi_is_stream_running(&ssi->capture) && + rz_ssi_is_dma_enabled(ssi) && is_stopped) { + if (ssi->playback.substream && + ssi->dmas[SNDRV_PCM_STREAM_PLAYBACK]) + dmaengine_pause(ssi->dmas[SNDRV_PCM_STREAM_PLAYBACK]); + if (ssi->capture.substream && + ssi->dmas[SNDRV_PCM_STREAM_CAPTURE] && + /* Avoid calling pause twice in case of half duplex. */ + ssi->dmas[SNDRV_PCM_STREAM_PLAYBACK] != + ssi->dmas[SNDRV_PCM_STREAM_CAPTURE]) + dmaengine_pause(ssi->dmas[SNDRV_PCM_STREAM_CAPTURE]); + } + /* Clear all flags */ rz_ssi_reg_mask_setl(ssi, SSISR, SSISR_TOIRQ | SSISR_TUIRQ | SSISR_ROIRQ | SSISR_RUIRQ, 0); /* Add/remove more data */ if (ssi->capture.substream && is_stopped) { - for (i = 0; i < count; i++) + if (rz_ssi_is_dma_enabled(ssi)) { + if (ssi->dmas[SNDRV_PCM_STREAM_CAPTURE]) + dmaengine_resume(ssi->dmas[SNDRV_PCM_STREAM_CAPTURE]); + } else { strm_capture->transfer(ssi, strm_capture); + } } if (ssi->playback.substream && is_stopped) { - for (i = 0; i < count; i++) + if (rz_ssi_is_dma_enabled(ssi)) { + if (ssi->dmas[SNDRV_PCM_STREAM_PLAYBACK]) + dmaengine_resume(ssi->dmas[SNDRV_PCM_STREAM_PLAYBACK]); + } else { strm_playback->transfer(ssi, strm_playback); + } } /* Resume */ @@ -680,153 +681,11 @@ static irqreturn_t rz_ssi_interrupt(int irq, void *data) return IRQ_HANDLED; } -static int rz_ssi_dma_slave_config(struct rz_ssi_priv *ssi, - struct dma_chan *dma_ch, bool is_play) -{ - struct dma_slave_config cfg; - - memset(&cfg, 0, sizeof(cfg)); - - cfg.direction = is_play ? DMA_MEM_TO_DEV : DMA_DEV_TO_MEM; - cfg.dst_addr = ssi->phys + SSIFTDR; - cfg.src_addr = ssi->phys + SSIFRDR; - if (ssi->hw_params_cache.sample_width == 16) { - cfg.src_addr_width = DMA_SLAVE_BUSWIDTH_2_BYTES; - cfg.dst_addr_width = DMA_SLAVE_BUSWIDTH_2_BYTES; - } else { - cfg.src_addr_width = DMA_SLAVE_BUSWIDTH_4_BYTES; - cfg.dst_addr_width = DMA_SLAVE_BUSWIDTH_4_BYTES; - } - - return dmaengine_slave_config(dma_ch, &cfg); -} - -static int rz_ssi_dma_transfer(struct rz_ssi_priv *ssi, - struct rz_ssi_stream *strm) -{ - struct snd_pcm_substream *substream = strm->substream; - struct dma_async_tx_descriptor *desc; - struct snd_pcm_runtime *runtime; - enum dma_transfer_direction dir; - u32 dma_paddr, dma_size; - int amount; - - if (!rz_ssi_stream_is_valid(ssi, strm)) - return -EINVAL; - - runtime = substream->runtime; - if (runtime->state == SNDRV_PCM_STATE_DRAINING) - /* - * Stream is ending, so do not queue up any more DMA - * transfers otherwise we play partial sound clips - * because we can't shut off the DMA quick enough. - */ - return 0; - - dir = rz_ssi_stream_is_play(substream) ? DMA_MEM_TO_DEV : DMA_DEV_TO_MEM; - - /* Always transfer 1 period */ - amount = runtime->period_size; - - /* DMA physical address and size */ - dma_paddr = runtime->dma_addr + frames_to_bytes(runtime, - strm->dma_buffer_pos); - dma_size = frames_to_bytes(runtime, amount); - desc = dmaengine_prep_slave_single(strm->dma_ch, dma_paddr, dma_size, - dir, - DMA_PREP_INTERRUPT | DMA_CTRL_ACK); - if (!desc) { - dev_err(ssi->dev, "dmaengine_prep_slave_single() fail\n"); - return -ENOMEM; - } - - desc->callback = rz_ssi_dma_complete; - desc->callback_param = strm; - - if (dmaengine_submit(desc) < 0) { - dev_err(ssi->dev, "dmaengine_submit() fail\n"); - return -EIO; - } - - /* Update DMA pointer */ - strm->dma_buffer_pos += amount; - if (strm->dma_buffer_pos >= runtime->buffer_size) - strm->dma_buffer_pos = 0; - - /* Start DMA */ - dma_async_issue_pending(strm->dma_ch); - - return 0; -} - -static void rz_ssi_dma_complete(void *data) -{ - struct rz_ssi_stream *strm = (struct rz_ssi_stream *)data; - - if (!strm->running || !strm->substream || !strm->substream->runtime) - return; - - /* Note that next DMA transaction has probably already started */ - rz_ssi_pointer_update(strm, strm->substream->runtime->period_size); - - /* Queue up another DMA transaction */ - rz_ssi_dma_transfer(strm->priv, strm); -} - -static void rz_ssi_release_dma_channels(struct rz_ssi_priv *ssi) -{ - if (ssi->playback.dma_ch) { - dma_release_channel(ssi->playback.dma_ch); - ssi->playback.dma_ch = NULL; - if (ssi->dma_rt) - ssi->dma_rt = false; - } - - if (ssi->capture.dma_ch) { - dma_release_channel(ssi->capture.dma_ch); - ssi->capture.dma_ch = NULL; - } -} - -static int rz_ssi_dma_request(struct rz_ssi_priv *ssi, struct device *dev) -{ - ssi->playback.dma_ch = dma_request_chan(dev, "tx"); - if (IS_ERR(ssi->playback.dma_ch)) - ssi->playback.dma_ch = NULL; - - ssi->capture.dma_ch = dma_request_chan(dev, "rx"); - if (IS_ERR(ssi->capture.dma_ch)) - ssi->capture.dma_ch = NULL; - - if (!ssi->playback.dma_ch && !ssi->capture.dma_ch) { - ssi->playback.dma_ch = dma_request_chan(dev, "rt"); - if (IS_ERR(ssi->playback.dma_ch)) { - ssi->playback.dma_ch = NULL; - goto no_dma; - } - - ssi->dma_rt = true; - } - - if (!rz_ssi_is_dma_enabled(ssi)) - goto no_dma; - - return 0; - -no_dma: - rz_ssi_release_dma_channels(ssi); - - return -ENODEV; -} - static int rz_ssi_trigger_resume(struct rz_ssi_priv *ssi, struct rz_ssi_stream *strm) { struct snd_pcm_substream *substream = strm->substream; - struct snd_pcm_runtime *runtime = substream->runtime; int ret; - strm->dma_buffer_pos = strm->completed_dma_buf_pos + runtime->period_size; - if (rz_ssi_is_stream_running(&ssi->playback) || rz_ssi_is_stream_running(&ssi->capture)) return 0; @@ -835,7 +694,7 @@ static int rz_ssi_trigger_resume(struct rz_ssi_priv *ssi, struct rz_ssi_stream * if (ret) return ret; - return rz_ssi_clk_setup(ssi, ssi->hw_params_cache.rate, + return rz_ssi_clk_setup(ssi, substream, ssi->hw_params_cache.rate, ssi->hw_params_cache.channels); } @@ -844,7 +703,7 @@ static int rz_ssi_dai_trigger(struct snd_pcm_substream *substream, int cmd, { struct rz_ssi_priv *ssi = snd_soc_dai_get_drvdata(dai); struct rz_ssi_stream *strm = rz_ssi_stream_get(ssi, substream); - int ret = 0, i, num_transfer = 1; + int ret = 0; switch (cmd) { case SNDRV_PCM_TRIGGER_RESUME: @@ -859,28 +718,7 @@ static int rz_ssi_dai_trigger(struct snd_pcm_substream *substream, int cmd, if (cmd == SNDRV_PCM_TRIGGER_START) rz_ssi_stream_init(strm, substream); - if (rz_ssi_is_dma_enabled(ssi)) { - bool is_playback = rz_ssi_stream_is_play(substream); - - if (ssi->dma_rt) - ret = rz_ssi_dma_slave_config(ssi, ssi->playback.dma_ch, - is_playback); - else - ret = rz_ssi_dma_slave_config(ssi, strm->dma_ch, - is_playback); - - /* Fallback to pio */ - if (ret < 0) { - ssi->playback.transfer = rz_ssi_pio_send; - ssi->capture.transfer = rz_ssi_pio_recv; - rz_ssi_release_dma_channels(ssi); - } else { - /* For DMA, queue up multiple DMA descriptors */ - num_transfer = 4; - } - } - - for (i = 0; i < num_transfer; i++) { + if (!rz_ssi_is_dma_enabled(ssi)) { ret = strm->transfer(ssi, strm); if (ret) return ret; @@ -976,6 +814,8 @@ static void rz_ssi_shutdown(struct snd_pcm_substream *substream, ssi->dup.tx_active = false; else ssi->dup.rx_active = false; + + ssi->dmas[substream->stream] = NULL; } static bool rz_ssi_is_valid_hw_params(struct rz_ssi_priv *ssi, unsigned int rate, @@ -1027,6 +867,12 @@ static int rz_ssi_dai_hw_params(struct snd_pcm_substream *substream, return -EINVAL; } + /* Save the DMA channels for recovery. */ + if (rz_ssi_is_dma_enabled(ssi)) + ssi->dmas[substream->stream] = snd_dmaengine_pcm_get_chan(substream); + else + ssi->dmas[substream->stream] = NULL; + if (rz_ssi_is_stream_running(&ssi->playback) || rz_ssi_is_stream_running(&ssi->capture)) { if (rz_ssi_is_valid_hw_params(ssi, rate, channels, sample_width, sample_bits)) @@ -1042,10 +888,21 @@ static int rz_ssi_dai_hw_params(struct snd_pcm_substream *substream, if (ret) return ret; - return rz_ssi_clk_setup(ssi, rate, channels); + return rz_ssi_clk_setup(ssi, substream, rate, channels); +} + +static int rz_ssi_dai_probe(struct snd_soc_dai *dai) +{ + struct rz_ssi_priv *ssi = snd_soc_dai_get_drvdata(dai); + + snd_soc_dai_init_dma_data(dai, &ssi->dma_dais[SNDRV_PCM_STREAM_PLAYBACK], + &ssi->dma_dais[SNDRV_PCM_STREAM_CAPTURE]); + + return 0; } static const struct snd_soc_dai_ops rz_ssi_dai_ops = { + .probe = rz_ssi_dai_probe, .startup = rz_ssi_startup, .shutdown = rz_ssi_shutdown, .trigger = rz_ssi_dai_trigger, @@ -1059,9 +916,9 @@ static const struct snd_pcm_hardware rz_ssi_pcm_hardware = { SNDRV_PCM_INFO_MMAP_VALID | SNDRV_PCM_INFO_RESUME | SNDRV_PCM_INFO_PAUSE, - .buffer_bytes_max = PREALLOC_BUFFER, + .buffer_bytes_max = 192 * 1024, .period_bytes_min = 32, - .period_bytes_max = 8192, + .period_bytes_max = 48 * 1024, .channels_min = SSI_CHAN_MIN, .channels_max = SSI_CHAN_MAX, .periods_min = 1, @@ -1069,8 +926,8 @@ static const struct snd_pcm_hardware rz_ssi_pcm_hardware = { .fifo_size = 32 * 2, }; -static int rz_ssi_pcm_open(struct snd_soc_component *component, - struct snd_pcm_substream *substream) +static int rz_ssi_pcm_open_pio(struct snd_soc_component *component, + struct snd_pcm_substream *substream) { snd_soc_set_runtime_hwparams(substream, &rz_ssi_pcm_hardware); @@ -1078,6 +935,13 @@ static int rz_ssi_pcm_open(struct snd_soc_component *component, SNDRV_PCM_HW_PARAM_PERIODS); } +static int rz_ssi_pcm_open_dma(struct snd_soc_component *component, + struct snd_pcm_substream *substream) +{ + return snd_pcm_hw_constraint_integer(substream->runtime, + SNDRV_PCM_HW_PARAM_PERIODS); +} + static snd_pcm_uframes_t rz_ssi_pcm_pointer(struct snd_soc_component *component, struct snd_pcm_substream *substream) { @@ -1094,7 +958,8 @@ static int rz_ssi_pcm_new(struct snd_soc_component *component, { snd_pcm_set_managed_buffer_all(rtd->pcm, SNDRV_DMA_TYPE_DEV, rtd->card->snd_card->dev, - PREALLOC_BUFFER, PREALLOC_BUFFER_MAX); + rz_ssi_pcm_hardware.buffer_bytes_max, + rz_ssi_pcm_hardware.buffer_bytes_max); return 0; } @@ -1117,16 +982,30 @@ static struct snd_soc_dai_driver rz_ssi_soc_dai[] = { }, }; -static const struct snd_soc_component_driver rz_ssi_soc_component = { +static const struct snd_soc_component_driver rz_ssi_soc_component_pio = { .name = "rz-ssi", - .open = rz_ssi_pcm_open, + .open = rz_ssi_pcm_open_pio, .pointer = rz_ssi_pcm_pointer, .pcm_construct = rz_ssi_pcm_new, .legacy_dai_naming = 1, }; +static const struct snd_soc_component_driver rz_ssi_soc_component_dma = { + .name = "rz-ssi", + .open = rz_ssi_pcm_open_dma, + .legacy_dai_naming = 1, +}; + +static const struct snd_dmaengine_pcm_config rz_ssi_dmaengine_pcm_conf = { + .pcm_hardware = &rz_ssi_pcm_hardware, + .prealloc_buffer_size = 192 * 1024, + .prepare_slave_config = snd_dmaengine_pcm_prepare_slave_config, +}; + static int rz_ssi_probe(struct platform_device *pdev) { + const struct snd_soc_component_driver *component_driver; + struct device_node *np = pdev->dev.of_node; struct device *dev = &pdev->dev; struct rz_ssi_priv *ssi; struct clk *audio_clk; @@ -1142,7 +1021,6 @@ static int rz_ssi_probe(struct platform_device *pdev) if (IS_ERR(ssi->base)) return PTR_ERR(ssi->base); - ssi->phys = res->start; ssi->clk = devm_clk_get(dev, "ssi"); if (IS_ERR(ssi->clk)) return PTR_ERR(ssi->clk); @@ -1166,16 +1044,43 @@ static int rz_ssi_probe(struct platform_device *pdev) ssi->audio_mck = ssi->audio_clk_1 ? ssi->audio_clk_1 : ssi->audio_clk_2; - /* Detect DMA support */ - ret = rz_ssi_dma_request(ssi, dev); - if (ret < 0) { + ssi->dma_dais[SNDRV_PCM_STREAM_PLAYBACK].addr = (dma_addr_t)res->start + SSIFTDR; + ssi->dma_dais[SNDRV_PCM_STREAM_CAPTURE].addr = (dma_addr_t)res->start + SSIFRDR; + + if (of_property_present(np, "dma-names")) { + struct snd_dmaengine_pcm_config *config; + unsigned int flags = 0; + + config = devm_kzalloc(dev, sizeof(*config), GFP_KERNEL); + if (!config) + return -ENOMEM; + + config->pcm_hardware = rz_ssi_dmaengine_pcm_conf.pcm_hardware; + config->prealloc_buffer_size = rz_ssi_dmaengine_pcm_conf.prealloc_buffer_size; + config->prepare_slave_config = rz_ssi_dmaengine_pcm_conf.prepare_slave_config; + + if (of_property_match_string(np, "dma-names", "rt") == 0) { + flags = SND_DMAENGINE_PCM_FLAG_HALF_DUPLEX; + config->chan_names[SNDRV_PCM_STREAM_PLAYBACK] = "rt"; + } else { + config->chan_names[SNDRV_PCM_STREAM_PLAYBACK] = "tx"; + config->chan_names[SNDRV_PCM_STREAM_CAPTURE] = "rx"; + } + ret = devm_snd_dmaengine_pcm_register(&pdev->dev, config, flags); + } else { + ret = -ENODEV; + } + + if (ret == -EPROBE_DEFER) { + return ret; + } else if (ret) { dev_warn(dev, "DMA not available, using PIO\n"); ssi->playback.transfer = rz_ssi_pio_send; ssi->capture.transfer = rz_ssi_pio_recv; + component_driver = &rz_ssi_soc_component_pio; } else { - dev_info(dev, "DMA enabled"); - ssi->playback.transfer = rz_ssi_dma_transfer; - ssi->capture.transfer = rz_ssi_dma_transfer; + dev_info(dev, "DMA enabled\n"); + component_driver = &rz_ssi_soc_component_dma; } ssi->playback.priv = ssi; @@ -1186,17 +1091,13 @@ static int rz_ssi_probe(struct platform_device *pdev) /* Error Interrupt */ ssi->irq_int = platform_get_irq_byname(pdev, "int_req"); - if (ssi->irq_int < 0) { - ret = ssi->irq_int; - goto err_release_dma_chs; - } + if (ssi->irq_int < 0) + return ssi->irq_int; ret = devm_request_irq(dev, ssi->irq_int, rz_ssi_interrupt, 0, dev_name(dev), ssi); - if (ret < 0) { - dev_err_probe(dev, ret, "irq request error (int_req)\n"); - goto err_release_dma_chs; - } + if (ret < 0) + return dev_err_probe(dev, ret, "irq request error (int_req)\n"); if (!rz_ssi_is_dma_enabled(ssi)) { /* Tx and Rx interrupts (pio only) */ @@ -1237,43 +1138,19 @@ static int rz_ssi_probe(struct platform_device *pdev) } ssi->rstc = devm_reset_control_get_exclusive(dev, NULL); - if (IS_ERR(ssi->rstc)) { - ret = PTR_ERR(ssi->rstc); - goto err_release_dma_chs; - } + if (IS_ERR(ssi->rstc)) + return dev_err_probe(dev, PTR_ERR(ssi->rstc), "Failed to get reset\n"); /* Default 0 for power saving. Can be overridden via sysfs. */ pm_runtime_set_autosuspend_delay(dev, 0); pm_runtime_use_autosuspend(dev); ret = devm_pm_runtime_enable(dev); - if (ret < 0) { - dev_err(dev, "Failed to enable runtime PM!\n"); - goto err_release_dma_chs; - } - - ret = devm_snd_soc_register_component(dev, &rz_ssi_soc_component, - rz_ssi_soc_dai, - ARRAY_SIZE(rz_ssi_soc_dai)); - if (ret < 0) { - dev_err(dev, "failed to register snd component\n"); - goto err_release_dma_chs; - } - - return 0; - -err_release_dma_chs: - rz_ssi_release_dma_channels(ssi); - - return ret; -} - -static void rz_ssi_remove(struct platform_device *pdev) -{ - struct rz_ssi_priv *ssi = dev_get_drvdata(&pdev->dev); - - rz_ssi_release_dma_channels(ssi); + if (ret < 0) + return dev_err_probe(dev, ret, "Failed to enable runtime PM!\n"); - reset_control_assert(ssi->rstc); + return devm_snd_soc_register_component(dev, component_driver, + rz_ssi_soc_dai, + ARRAY_SIZE(rz_ssi_soc_dai)); } static const struct of_device_id rz_ssi_of_match[] = { @@ -1308,7 +1185,6 @@ static struct platform_driver rz_ssi_driver = { .pm = pm_ptr(&rz_ssi_pm_ops), }, .probe = rz_ssi_probe, - .remove_new = rz_ssi_remove, }; module_platform_driver(rz_ssi_driver); -- 2.54.0 ^ permalink raw reply related [flat|nested] 15+ messages in thread
* [PATCH 6.1.y-cip 12/12] spi: rzv2h-rspi: Add suspend/resume support 2026-11-26 15:53 [PATCH 6.1.y-cip 00/12] Renesas: Backport audio and serial support Tommaso Merciai ` (10 preceding siblings ...) 2026-11-26 15:53 ` [PATCH 6.1.y-cip 11/12] ASoC: renesas: rz-ssi: Use generic PCM dmaengine APIs Tommaso Merciai @ 2026-11-26 15:53 ` Tommaso Merciai 2026-12-01 22:22 ` [PATCH 6.1.y-cip 00/12] Renesas: Backport audio and serial support Pavel Machek 2026-12-02 13:24 ` Pavel Machek 13 siblings, 0 replies; 15+ messages in thread From: Tommaso Merciai @ 2026-11-26 15:53 UTC (permalink / raw) To: cip-dev, Nobuhiro Iwamatsu, Pavel Machek Cc: Biju Das, Lad Prabhakar, tomm.merciai commit 2cf4ad412f90f54597be95a6ce297d016d2fbef9 upstream. Add suspend/resume support to the rzv2h-rspi driver by implementing suspend and resume callbacks that delegate to spi_controller_suspend() and spi_controller_resume() respectively. Signed-off-by: Tommaso Merciai <tommaso.merciai.xr@bp.renesas.com> Link: https://patch.msgid.link/20260608202509.3651345-1-tommaso.merciai.xr@bp.renesas.com Signed-off-by: Mark Brown <broonie@kernel.org> Signed-off-by: Tommaso Merciai <tommaso.merciai.xr@bp.renesas.com> --- drivers/spi/spi-rzv2h-rspi.c | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/drivers/spi/spi-rzv2h-rspi.c b/drivers/spi/spi-rzv2h-rspi.c index 3049521ec61f..cd49b85e0b0f 100644 --- a/drivers/spi/spi-rzv2h-rspi.c +++ b/drivers/spi/spi-rzv2h-rspi.c @@ -825,6 +825,23 @@ static int rzv2h_rspi_probe(struct platform_device *pdev) return ret; } +static int rzv2h_rspi_suspend(struct device *dev) +{ + struct rzv2h_rspi_priv *rspi = dev_get_drvdata(dev); + + return spi_controller_suspend(rspi->controller); +} + +static int rzv2h_rspi_resume(struct device *dev) +{ + struct rzv2h_rspi_priv *rspi = dev_get_drvdata(dev); + + return spi_controller_resume(rspi->controller); +} + +static DEFINE_SIMPLE_DEV_PM_OPS(rzv2h_rspi_pm_ops, rzv2h_rspi_suspend, + rzv2h_rspi_resume); + static const struct rzv2h_rspi_info rzv2h_info = { .find_tclk_rate = rzv2h_rspi_find_rate_fixed, .tclk_name = "tclk", @@ -852,6 +869,7 @@ static struct platform_driver rzv2h_rspi_drv = { .driver = { .name = "rzv2h_rspi", .of_match_table = rzv2h_rspi_match, + .pm = pm_sleep_ptr(&rzv2h_rspi_pm_ops), }, }; module_platform_driver(rzv2h_rspi_drv); -- 2.54.0 ^ permalink raw reply related [flat|nested] 15+ messages in thread
* Re: [PATCH 6.1.y-cip 00/12] Renesas: Backport audio and serial support 2026-11-26 15:53 [PATCH 6.1.y-cip 00/12] Renesas: Backport audio and serial support Tommaso Merciai ` (11 preceding siblings ...) 2026-11-26 15:53 ` [PATCH 6.1.y-cip 12/12] spi: rzv2h-rspi: Add suspend/resume support Tommaso Merciai @ 2026-12-01 22:22 ` Pavel Machek 2026-12-02 13:24 ` Pavel Machek 13 siblings, 0 replies; 15+ messages in thread From: Pavel Machek @ 2026-12-01 22:22 UTC (permalink / raw) To: Tommaso Merciai Cc: cip-dev, Nobuhiro Iwamatsu, Pavel Machek, Biju Das, Lad Prabhakar, tomm.merciai [-- Attachment #1: Type: text/plain, Size: 683 bytes --] Hi! > This series switches the rz-ssi driver to use cyclic DMA. Along with > it a DMA fix was added. This fix needs to be applied after the rz-ssi is > switched to use cyclic DMA, to avoid any regression. This series add also > rspi suspend/resume support. > > For bisectability reasons, this series needs to be applied on top of > series https://lore.kernel.org/all/20261126154747.3832917-1-tommaso.merciai.xr@bp.renesas.com/ This looks okay to me. Reviewed-by: Pavel Machek <pavel@nabladev.com> I can apply the series if it passes testing and there are no other comments. Best regards, Pavel [-- Attachment #2: signature.asc --] [-- Type: application/pgp-signature, Size: 195 bytes --] ^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [PATCH 6.1.y-cip 00/12] Renesas: Backport audio and serial support 2026-11-26 15:53 [PATCH 6.1.y-cip 00/12] Renesas: Backport audio and serial support Tommaso Merciai ` (12 preceding siblings ...) 2026-12-01 22:22 ` [PATCH 6.1.y-cip 00/12] Renesas: Backport audio and serial support Pavel Machek @ 2026-12-02 13:24 ` Pavel Machek 13 siblings, 0 replies; 15+ messages in thread From: Pavel Machek @ 2026-12-02 13:24 UTC (permalink / raw) To: Tommaso Merciai Cc: cip-dev, Nobuhiro Iwamatsu, Pavel Machek, Biju Das, Lad Prabhakar, tomm.merciai [-- Attachment #1: Type: text/plain, Size: 308 bytes --] Hi! > This series switches the rz-ssi driver to use cyclic DMA. Along with > it a DMA fix was added. This fix needs to be applied after the rz-ssi is > switched to use cyclic DMA, to avoid any regression. This series add also > rspi suspend/resume support. Thank you, applied. Best regards, Pavel [-- Attachment #2: signature.asc --] [-- Type: application/pgp-signature, Size: 195 bytes --] ^ permalink raw reply [flat|nested] 15+ messages in thread
end of thread, other threads:[~2026-12-02 13:24 UTC | newest] Thread overview: 15+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2026-11-26 15:53 [PATCH 6.1.y-cip 00/12] Renesas: Backport audio and serial support Tommaso Merciai 2026-11-26 15:53 ` [PATCH 6.1.y-cip 01/12] ASoC: sh: rz-ssi: Convert to platform remove callback returning void Tommaso Merciai 2026-11-26 15:53 ` [PATCH 6.1.y-cip 02/12] ASoC: sh: rz-ssi: Use SSIFCR_FIFO_RST macro Tommaso Merciai 2026-11-26 15:53 ` [PATCH 6.1.y-cip 03/12] ASoC: renesas: rz-ssi: Use guard() for spin locks Tommaso Merciai 2026-11-26 15:53 ` [PATCH 6.1.y-cip 04/12] ASoC: renesas: rz-ssi: Remove the rz_ssi_get_dai() function Tommaso Merciai 2026-11-26 15:53 ` [PATCH 6.1.y-cip 05/12] ASoC: renesas: rz-ssi: Simplify the logic in rz_ssi_stream_is_play() Tommaso Merciai 2026-11-26 15:53 ` [PATCH 6.1.y-cip 06/12] ASoC: renesas: rz-ssi: Drop unnecessary if condition Tommaso Merciai 2026-11-26 15:53 ` [PATCH 6.1.y-cip 07/12] ASoC: renesas: rz-ssi: Drop the & operator in front of function name Tommaso Merciai 2026-11-26 15:53 ` [PATCH 6.1.y-cip 08/12] ASoC: renesas: rz-ssi: Drop goto label Tommaso Merciai 2026-11-26 15:53 ` [PATCH 6.1.y-cip 09/12] ASoC: renesas: rz-ssi: Fix playback and capture Tommaso Merciai 2026-11-26 15:53 ` [PATCH 6.1.y-cip 10/12] ASoC: renesas: rz-ssi: Add pause support Tommaso Merciai 2026-11-26 15:53 ` [PATCH 6.1.y-cip 11/12] ASoC: renesas: rz-ssi: Use generic PCM dmaengine APIs Tommaso Merciai 2026-11-26 15:53 ` [PATCH 6.1.y-cip 12/12] spi: rzv2h-rspi: Add suspend/resume support Tommaso Merciai 2026-12-01 22:22 ` [PATCH 6.1.y-cip 00/12] Renesas: Backport audio and serial support Pavel Machek 2026-12-02 13:24 ` Pavel Machek
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox