]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
ASoC: sh: rz-ssi: Drop calling rz_ssi_pio_recv() recursively
authorLad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
Mon, 10 Jan 2022 09:47:07 +0000 (09:47 +0000)
committerStefan Bader <stefan.bader@canonical.com>
Wed, 27 Apr 2022 09:57:06 +0000 (11:57 +0200)
commit84f9c4e592a8c8a8f00be09f44f159ed17f16591
tree8161e7eb66a87831e4817c02b3598b80ff1e1905
parente67f2ef74ae6a4ac087108d43f829a83dc4f1a35
ASoC: sh: rz-ssi: Drop calling rz_ssi_pio_recv() recursively

BugLink: https://bugs.launchpad.net/bugs/1969110
[ Upstream commit 6570f991582e32b7992601d0497c61962a2c5dcc ]

Instead of recursively calling rz_ssi_pio_recv() use a while loop
to read the samples from RX fifo.

This also fixes an issue where the return value of rz_ssi_pio_recv()
was ignored when called recursively.

Fixes: 03e786bd4341 ("ASoC: sh: Add RZ/G2L SSIF-2 driver")
Reported-by: Pavel Machek <pavel@denx.de>
Signed-off-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
Reviewed-by: Biju Das <biju.das.jz@bp.renesas.com>
Link: https://lore.kernel.org/r/20220110094711.8574-2-prabhakar.mahadev-lad.rj@bp.renesas.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
(cherry picked from commit e48b189799d3e39cd94453eabb22b0c49f31107c)
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
sound/soc/sh/rz-ssi.c