ASoC: dwc: limit the number of overrun messages
authorMaxim Kochetkov <fido_max@inbox.ru>
Fri, 5 May 2023 06:28:20 +0000 (09:28 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 9 Jun 2023 08:34:10 +0000 (10:34 +0200)
commitc03dd939051403cb81bc33f397d47d0bde5e2aee
tree40c121662bb75e708cda8c0dd787ccfadc99b09e
parent0960fb87cdaf9629f14dea8c7dc62f883c93c72d
ASoC: dwc: limit the number of overrun messages

[ Upstream commit ab6ecfbf40fccf74b6ec2ba7ed6dd2fc024c3af2 ]

On slow CPU (FPGA/QEMU emulated) printing overrun messages from
interrupt handler to uart console may leads to more overrun errors.
So use dev_err_ratelimited to limit the number of error messages.

Signed-off-by: Maxim Kochetkov <fido_max@inbox.ru
Link: https://lore.kernel.org/r/20230505062820.21840-1-fido_max@inbox.ru
Signed-off-by: Mark Brown <broonie@kernel.org
Signed-off-by: Sasha Levin <sashal@kernel.org>
sound/soc/dwc/dwc-i2s.c