Skip to content

Commit ab6ecfb

Browse files
fidomaxbroonie
authored andcommitted
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 <[email protected] Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mark Brown <[email protected]
1 parent 7b9891a commit ab6ecfb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sound/soc/dwc/dwc-i2s.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,13 +132,13 @@ static irqreturn_t i2s_irq_handler(int irq, void *dev_id)
132132

133133
/* Error Handling: TX */
134134
if (isr[i] & ISR_TXFO) {
135-
dev_err(dev->dev, "TX overrun (ch_id=%d)\n", i);
135+
dev_err_ratelimited(dev->dev, "TX overrun (ch_id=%d)\n", i);
136136
irq_valid = true;
137137
}
138138

139139
/* Error Handling: TX */
140140
if (isr[i] & ISR_RXFO) {
141-
dev_err(dev->dev, "RX overrun (ch_id=%d)\n", i);
141+
dev_err_ratelimited(dev->dev, "RX overrun (ch_id=%d)\n", i);
142142
irq_valid = true;
143143
}
144144
}

0 commit comments

Comments
 (0)