From: Maxim Kochetkov Date: Fri, 5 May 2023 06:28:20 +0000 (+0300) Subject: ASoC: dwc: limit the number of overrun messages X-Git-Tag: v6.4-rc3~20^2~4^2~16 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=ab6ecfbf40fccf74b6ec2ba7ed6dd2fc024c3af2;p=linux-2.6-block.git 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 dev, "TX overrun (ch_id=%d)\n", i); + dev_err_ratelimited(dev->dev, "TX overrun (ch_id=%d)\n", i); irq_valid = true; } /* Error Handling: TX */ if (isr[i] & ISR_RXFO) { - dev_err(dev->dev, "RX overrun (ch_id=%d)\n", i); + dev_err_ratelimited(dev->dev, "RX overrun (ch_id=%d)\n", i); irq_valid = true; } }