From patchwork Sat Oct 21 10:31:45 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Brown X-Patchwork-Id: 10021355 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id D6E6360375 for ; Sat, 21 Oct 2017 10:39:46 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C88AF28B7C for ; Sat, 21 Oct 2017 10:39:46 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id BBDAE28D3F; Sat, 21 Oct 2017 10:39:46 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.7 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, RCVD_IN_DNSWL_MED, RCVD_IN_SORBS_SPAM autolearn=unavailable version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 457FB28B7C for ; Sat, 21 Oct 2017 10:39:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Date:Message-Id: In-Reply-To:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: References:List-Owner; bh=83zdl5VZCVL2VjZibQdW4J9z1uGGsZv+0Q5KDPMPnbs=; b=An7 x04AhVZKdlMcWyqyP0FNqJ/ztsUxpkXk4zbFggTjMxZLAa9Lm/RjC3jxzt90P6iyMsID5JOiSNcAT A7HKEHaqIHQ/L/prKV7YjslxX1Lfo4dv8rEyTrErbcvJEGfy3DH66GQJtV0AobBOL2ksPG+5Vll+6 nrjXmEs8YXOwI3M1h1RCB939EGKlAiCeAFLU5Qd4s7OA8wnCws+OjdaMW2gs3xUqkMFzfPGSgEu1c VZ+R747mviJVc7g6s925Qa32hdE5wfe7m3slW8BqBp/9CoojrxofOUUALNJaVAPYrl8QPfXTBEbI5 hq1fb+A1b18qKexkdrCMMYEArOylFIg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1e5rBu-0003d2-PL; Sat, 21 Oct 2017 10:39:42 +0000 Received: from merlin.infradead.org ([2001:8b0:10b:1231::1]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1e5r5R-00013t-A4 for linux-arm-kernel@bombadil.infradead.org; Sat, 21 Oct 2017 10:33:01 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; 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=QmpNZ2EorcqF1lo++SGWHM5eyNmGg9twJ8EGmVkR/Eg=; b=uB/fSeMFwzS/AieITUTc2O/Kf3 NnuZ+3mhvNffsqIJrePPAWxJBebqRdZNe97IFB3sfXCvlqMndX4vS/d4X9UNayyIBrl6KYjTLwf3K 6IfD8S62pNdGkDrtKYu5fi2jpY3p0CoYAsfRHRznKuhH2H6lsT7wX+HciAd/lmoQDHcfNgzkNfzru 6oStzXDsro9Gx8CWE6/NOtwV4yD90+583rcVOptbwIPBt/f6QUxVybtWQ52XstQcH+w4UKs75Th6d JqsSxdlPpco+hHaqoY9nS3nFZbwpbn23pWof/JNR6LU7b4P8YLFeeSVeAwXuy6+h+9mPIC/z/0tOR B54sThUA==; Received: from heliosphere.sirena.org.uk ([2a01:7e01::f03c:91ff:fed4:a3b6]) by merlin.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1e5r5O-0004aS-Dm for linux-arm-kernel@lists.infradead.org; Sat, 21 Oct 2017 10:32:59 +0000 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=QmpNZ2EorcqF1lo++SGWHM5eyNmGg9twJ8EGmVkR/Eg=; b=qAJN8BdapXxx qEifAmG5ZngmQxkEXvJdQwFaQUPZMzLJXTVXsny9vcgvsLuiZg4WP2TpwXOSqzXeOEwMjpKE+8gAW xJRWCRmzA+y9laIQKa9qjwvWiIREIPmeMJDGvgTTVBeikheeRTZwELm/HfomugaRZeNeHBds+ehm6 zzZFs=; Received: from 188.29.164.97.threembb.co.uk ([188.29.164.97] helo=finisterre.ee.mobilebroadband) by heliosphere.sirena.org.uk with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1e5r4E-0003v7-6l; Sat, 21 Oct 2017 10:31:46 +0000 Received: by finisterre.ee.mobilebroadband (Postfix, from userid 1000) id 807AF440057; Sat, 21 Oct 2017 11:31:45 +0100 (BST) From: Mark Brown To: Olivier Moysan Subject: Applied "ASoC: stm32: sai: Remove spurious IRQs on stop" to the asoc tree In-Reply-To: <1508418203-16840-6-git-send-email-olivier.moysan@st.com> Message-Id: <20171021103145.807AF440057@finisterre.ee.mobilebroadband> Date: Sat, 21 Oct 2017 11:31:45 +0100 (BST) X-Bad-Reply: In-Reply-To but no 'Re:' in Subject. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: mark.rutland@arm.com, robh@kernel.org, alsa-devel@alsa-project.org, olivier.moysan@st.com, alexandre.torgue@st.com, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, arnaud.pouliquen@st.com, tiwai@suse.com, lgirdwood@gmail.com, broonie@kernel.org, mcoquelin.stm32@gmail.com, benjamin.gaignard@st.com, perex@perex.cz, linux-arm-kernel@lists.infradead.org, kernel@stlinux.com MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP The patch ASoC: stm32: sai: Remove spurious IRQs on stop has been applied to the asoc tree at git://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 47a8907d7c73fad81030655f09832fbb4446a2f5 Mon Sep 17 00:00:00 2001 From: Olivier Moysan Date: Thu, 19 Oct 2017 15:03:21 +0200 Subject: [PATCH] ASoC: stm32: sai: Remove spurious IRQs on stop Clear IRQ mask on stream stop to avoid spurious IRQs. Signed-off-by: Olivier Moysan Signed-off-by: Mark Brown --- sound/soc/stm/stm32_sai_sub.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sound/soc/stm/stm32_sai_sub.c b/sound/soc/stm/stm32_sai_sub.c index 815ef1036199..fd7dc7760f58 100644 --- a/sound/soc/stm/stm32_sai_sub.c +++ b/sound/soc/stm/stm32_sai_sub.c @@ -419,8 +419,6 @@ static int stm32_sai_startup(struct snd_pcm_substream *substream, } /* Enable ITs */ - regmap_update_bits(sai->regmap, STM_SAI_SR_REGX, - SAI_XSR_MASK, (unsigned int)~SAI_XSR_MASK); regmap_update_bits(sai->regmap, STM_SAI_CLRFR_REGX, SAI_XCLRFR_MASK, SAI_XCLRFR_MASK); @@ -693,6 +691,9 @@ static int stm32_sai_trigger(struct snd_pcm_substream *substream, int cmd, case SNDRV_PCM_TRIGGER_STOP: dev_dbg(cpu_dai->dev, "Disable DMA and SAI\n"); + regmap_update_bits(sai->regmap, STM_SAI_IMR_REGX, + SAI_XIMR_MASK, 0); + regmap_update_bits(sai->regmap, STM_SAI_CR1_REGX, SAI_XCR1_SAIEN, (unsigned int)~SAI_XCR1_SAIEN);