Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp2573573ybz; Sun, 26 Apr 2020 23:33:58 -0700 (PDT) X-Google-Smtp-Source: APiQypIlKqb9UMKvADYVKfVddXl4q4qEDTcKi0y5QrfguXA64ZpwC1M8HLionuqcRMJpexbOIFGy X-Received: by 2002:aa7:c306:: with SMTP id l6mr11506823edq.356.1587969238134; Sun, 26 Apr 2020 23:33:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587969238; cv=none; d=google.com; s=arc-20160816; b=SLPLoBYnL6GjjGwDhIhOoDHxbUPtKCr7AU8lDg+awHlgMkv3NwP1Mm8v49zVaI4QSw b//g8KLnRFDk/tdc64nXleBS4SXppjLgZRcBiiZ5bdRoFOhfqcnQs6VikflzoOA7LPVd mFsGGPqM271l0bnvpaW9/HG3JkHUUVKRUXlUltNRJn+vF/3gEYQEngLj+DqnxzfA9bhy ASSwFmXG74BLqqy9s1EXvdNb8fqzPAJXk5qKJPEKug6MFqhx0bCFNEmeGdxSR/qopWSj sbFaUNxp7xopyKDwMWbP63zXCAlFEAWzFuaqsJwyvKSN8k2i5++rYJWbynM+EYDBYTrd OHWg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=agw4K17y2Yk+jMFU+Fh8hnyItgiamFcIDQUxJA4zqck=; b=JjX/2dHhmTlk9bNNjEOZTkvy6RklPN+Dle6kpFqHEIO8nzK8dobL+Iw28MwI7Le8Yw zPuiUn+R/u7xLJAARW56skaIR02Ns4q4uFAnEXshNX8EOajTSuZncycpTBp+pTnI8yAO 3LVQ2on0DhbzOK7SOhdG1MQYxCyvkF16e+z0ZBjGQc97CY/G6qA3uYjThq+K1vjeA86g yVy85vwtGeL8MVFP7Qmq1FtcWBeiHWtpfxPsYR7xDcW/AwpdUngBcZgcLaLctmBKbgF/ nXznvk0glXRZL1mFsYz/cpyHFweHwanj6R3veZrIr12XtDoEwVkzEdEp2n66F7ti4pql FSAQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p31si7113947edb.495.2020.04.26.23.33.34; Sun, 26 Apr 2020 23:33:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726496AbgD0GcK (ORCPT + 99 others); Mon, 27 Apr 2020 02:32:10 -0400 Received: from inva021.nxp.com ([92.121.34.21]:56606 "EHLO inva021.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726221AbgD0GcK (ORCPT ); Mon, 27 Apr 2020 02:32:10 -0400 Received: from inva021.nxp.com (localhost [127.0.0.1]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id CC6CE200E40; Mon, 27 Apr 2020 08:32:08 +0200 (CEST) Received: from invc005.ap-rdc01.nxp.com (invc005.ap-rdc01.nxp.com [165.114.16.14]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id A391F200F97; Mon, 27 Apr 2020 08:32:04 +0200 (CEST) Received: from localhost.localdomain (shlinux2.ap.freescale.net [10.192.224.44]) by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id 881D4402E6; Mon, 27 Apr 2020 14:31:59 +0800 (SGT) From: Shengjiu Wang To: timur@kernel.org, nicoleotsuka@gmail.com, Xiubo.Lee@gmail.com, festevam@gmail.com, broonie@kernel.org, perex@perex.cz, tiwai@suse.com, alsa-devel@alsa-project.org Cc: linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org Subject: [PATCH v2] ASoC: fsl_esai: Disable exception interrupt before scheduling tasklet Date: Mon, 27 Apr 2020 14:23:21 +0800 Message-Id: X-Mailer: git-send-email 2.7.4 X-Virus-Scanned: ClamAV using ClamSMTP Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Disable exception interrupt before scheduling tasklet, otherwise if the tasklet isn't handled immediately, there will be endless xrun interrupt. Fixes: 7ccafa2b3879 ("ASoC: fsl_esai: recover the channel swap after xrun") Signed-off-by: Shengjiu Wang --- changes in v2 - Disable exception interrupt instead of remove tasklet. sound/soc/fsl/fsl_esai.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sound/soc/fsl/fsl_esai.c b/sound/soc/fsl/fsl_esai.c index c7a49d03463a..84290be778f0 100644 --- a/sound/soc/fsl/fsl_esai.c +++ b/sound/soc/fsl/fsl_esai.c @@ -87,6 +87,10 @@ static irqreturn_t esai_isr(int irq, void *devid) if ((saisr & (ESAI_SAISR_TUE | ESAI_SAISR_ROE)) && esai_priv->reset_at_xrun) { dev_dbg(&pdev->dev, "reset module for xrun\n"); + regmap_update_bits(esai_priv->regmap, REG_ESAI_TCR, + ESAI_xCR_xEIE_MASK, 0); + regmap_update_bits(esai_priv->regmap, REG_ESAI_RCR, + ESAI_xCR_xEIE_MASK, 0); tasklet_schedule(&esai_priv->task); } -- 2.21.0