Merge "asoc: Ratelimit error logs"
This commit is contained in:

committed by
Gerrit - the friendly Code Review server

commit
4a0cf5086c
@@ -249,7 +249,7 @@ static int swrm_clk_request(struct swr_mstr_ctrl *swrm, bool enable)
|
||||
if (swrm->clk_ref_count == 1) {
|
||||
ret = swrm->clk(swrm->handle, true);
|
||||
if (ret) {
|
||||
dev_err(swrm->dev,
|
||||
dev_err_ratelimited(swrm->dev,
|
||||
"%s: clock enable req failed",
|
||||
__func__);
|
||||
--swrm->clk_ref_count;
|
||||
@@ -1277,6 +1277,8 @@ static irqreturn_t swr_mstr_interrupt(int irq, void *dev)
|
||||
|
||||
mutex_lock(&swrm->reslock);
|
||||
if (swrm_clk_request(swrm, true)) {
|
||||
dev_err_ratelimited(swrm->dev, "%s:clk request failed\n",
|
||||
__func__);
|
||||
mutex_unlock(&swrm->reslock);
|
||||
goto exit;
|
||||
}
|
||||
|
Reference in New Issue
Block a user