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)
committerMark Brown <broonie@kernel.org>
Mon, 8 May 2023 00:07:43 +0000 (09:07 +0900)
commitab6ecfbf40fccf74b6ec2ba7ed6dd2fc024c3af2
tree68a26a2181acb7b4640d0ab91b8138065a9ddaec
parent7b9891ad25246b18b5ccc19518da7abc7763aa0a
ASoC: dwc: limit the number of overrun messages

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
sound/soc/dwc/dwc-i2s.c