Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3455957imu; Fri, 18 Jan 2019 10:40:37 -0800 (PST) X-Google-Smtp-Source: ALg8bN5YxTmcOEz+kg5KIvcZWxMzGYDzkZ+Kj537QaDrldxjW5tB9WY3cGOsd3JeR6cnVn5tLMIT X-Received: by 2002:a62:8add:: with SMTP id o90mr20283300pfk.210.1547836837509; Fri, 18 Jan 2019 10:40:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547836837; cv=none; d=google.com; s=arc-20160816; b=uZi6u5BTkNrUKvQwuqBSX0g5NjB3k4wfIjHCyCrglJWvPO5AbPu3vQ5VC/zKPXBc6Z A1Hup3Ui/3OX557ttxr7G5UCV2Hyj53EL4pad/EITAnM7T/EKLsQDndhTAsQcTb8CzGv SyjRFNiCFvzPSy9mFLUCdpOjMr+J/fdsH0PkRU4qX7/sIOkFy7HYH5tUZDXVAXujeEw6 Xj3TMxWMcNG5BKpxRGIuIRFoYcWZ2x0WCMaGJqwOuWOm1k23apsUjGiFKCsgKCUMYBCp 9vgL+06duaeUvCF+viLbIMAiqp+vcmOCx0HgWcKQx97yCbxNECqNciEkEmLuWxGzmUoC y+yg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:date:message-id:in-reply-to:subject:cc:to :from:dkim-signature; bh=9UNSHtRuci4KSnGoEUyqO/pL52dBoZeZX8e6vDT7oSw=; b=LB5OCUeittAckxqdXdQUWY0LNFAkymMs4TiAufXqSkfN2LySe7XWs9YWSPNFVX6XWH IDt1spUXHxFPwz1plDjt0OBISWHUitZMmeL/YmrhTogBPoLA3DDMwzEWmkIQnw/SqGZg vRtTwy9b96f+NogffOOL9kimCUFdEQgvK58E9LiPRBatoCVucS0pN7hPOrWkkTwg4OOa qDNtoyVvUeV0XRPPjKgQiLmbjEwRh97wRbWPjzSoePdD4meM+5j5it+8lNbCNDYzxBMH i6roEBNL9ri7Xo0PT+tI//C5kaIN+sNqHtOBrPzMawouQjzm1Tuffi8iCdzMAeYm0HAb V8Qw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@sirena.org.uk header.s=20170815-heliosphere header.b=v6cbDwpb; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a26si5327524pgl.282.2019.01.18.10.40.22; Fri, 18 Jan 2019 10:40:37 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@sirena.org.uk header.s=20170815-heliosphere header.b=v6cbDwpb; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729047AbfARSid (ORCPT + 99 others); Fri, 18 Jan 2019 13:38:33 -0500 Received: from heliosphere.sirena.org.uk ([172.104.155.198]:57200 "EHLO heliosphere.sirena.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728457AbfARSic (ORCPT ); Fri, 18 Jan 2019 13:38:32 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sirena.org.uk; s=20170815-heliosphere; h=Date:Message-Id:In-Reply-To: Subject:Cc:To:From:Sender:Reply-To:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:References: List-Id:List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner: List-Archive; bh=9UNSHtRuci4KSnGoEUyqO/pL52dBoZeZX8e6vDT7oSw=; b=v6cbDwpbFZJs m5z8lnffc2huRp1OmU7leSccx8zmUFZivi6dEAT4cxP1z3KV/kOo/0tGH5kK+WWrcLklcnQmj0RX5 R8HmYkkHpwdbOB05jOrQVDkSkjODpHoqV/LUIUho+7i5F98ZvG+A7JPmrioj7ZXnw4hTUhXspaEL0 BX9mQ=; Received: from cpc102320-sgyl38-2-0-cust46.18-2.cable.virginm.net ([82.37.168.47] helo=debutante.sirena.org.uk) by heliosphere.sirena.org.uk with esmtpa (Exim 4.89) (envelope-from ) id 1gkZ2B-0005M0-Ki; Fri, 18 Jan 2019 18:38:27 +0000 Received: by debutante.sirena.org.uk (Postfix, from userid 1000) id 3D8ED11276E7; Fri, 18 Jan 2019 18:38:27 +0000 (GMT) From: Mark Brown To: Shengjiu Wang Cc: Daniel Baluta , Mark Brown , "broonie@kernel.org" , "alsa-devel@alsa-project.org" , "Xiubo.Lee@gmail.com" , "S.j. Wang" , "linux-kernel@vger.kernel.org" , "nicoleotsuka@gmail.com" , dl-linux-imx , Fabio Estevam , Daniel Baluta , alsa-devel@alsa-project.org Subject: Applied "ASoC: fsl_sai: Remove expensive print in irq handler" to the asoc tree In-Reply-To: <20190118142623.17720-1-daniel.baluta@nxp.com> X-Patchwork-Hint: ignore Message-Id: <20190118183827.3D8ED11276E7@debutante.sirena.org.uk> Date: Fri, 18 Jan 2019 18:38:27 +0000 (GMT) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The patch ASoC: fsl_sai: Remove expensive print in irq handler has been applied to the asoc tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted. You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed. If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced. Please add any relevant lists and maintainers to the CCs when replying to this mail. Thanks, Mark From e412fcb0db5c44a3450ca678b281ea9332e6bf82 Mon Sep 17 00:00:00 2001 From: Shengjiu Wang Date: Fri, 18 Jan 2019 14:26:46 +0000 Subject: [PATCH] ASoC: fsl_sai: Remove expensive print in irq handler When stopping audio, ASoC will first stop DMA then CPU DAI. Sometimes there is a delay between DMA stop and CPU DAI stop, which triggers an underrun error. Now, because of the delay introduced by dev_err another underrun error will occur causing a vicious circle making impossible to stop CPU DAI. Signed-off-by: Shengjiu Wang Signed-off-by: Daniel Baluta Signed-off-by: Mark Brown --- sound/soc/fsl/fsl_sai.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sound/soc/fsl/fsl_sai.c b/sound/soc/fsl/fsl_sai.c index 4163f2cfc06f..db9e0872f73d 100644 --- a/sound/soc/fsl/fsl_sai.c +++ b/sound/soc/fsl/fsl_sai.c @@ -62,10 +62,10 @@ static irqreturn_t fsl_sai_isr(int irq, void *devid) dev_dbg(dev, "isr: Start of Tx word detected\n"); if (flags & FSL_SAI_CSR_SEF) - dev_warn(dev, "isr: Tx Frame sync error detected\n"); + dev_dbg(dev, "isr: Tx Frame sync error detected\n"); if (flags & FSL_SAI_CSR_FEF) { - dev_warn(dev, "isr: Transmit underrun detected\n"); + dev_dbg(dev, "isr: Transmit underrun detected\n"); /* FIFO reset for safety */ xcsr |= FSL_SAI_CSR_FR; } @@ -96,10 +96,10 @@ static irqreturn_t fsl_sai_isr(int irq, void *devid) dev_dbg(dev, "isr: Start of Rx word detected\n"); if (flags & FSL_SAI_CSR_SEF) - dev_warn(dev, "isr: Rx Frame sync error detected\n"); + dev_dbg(dev, "isr: Rx Frame sync error detected\n"); if (flags & FSL_SAI_CSR_FEF) { - dev_warn(dev, "isr: Receive overflow detected\n"); + dev_dbg(dev, "isr: Receive overflow detected\n"); /* FIFO reset for safety */ xcsr |= FSL_SAI_CSR_FR; } -- 2.20.1