Merge "asoc: Ratelimit error logs"

This commit is contained in:
qctecmdr
2019-05-18 03:03:10 -07:00
committed by Gerrit - the friendly Code Review server
5 changed files with 10 additions and 8 deletions

View File

@@ -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;
}