Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1115782imu; Wed, 28 Nov 2018 04:59:55 -0800 (PST) X-Google-Smtp-Source: AFSGD/WY5OuS3Uw6NH1hwK4cqLlyCdMZ72zpzHSO22Ifh1lJ2dh0yp1bAPWREDghADzfc/KFnS2h X-Received: by 2002:a63:585c:: with SMTP id i28mr33296727pgm.178.1543409995184; Wed, 28 Nov 2018 04:59:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543409995; cv=none; d=google.com; s=arc-20160816; b=CIo+ogIj16Ya67TyKDh7FXDkfg7hvx184x5LPvLpStmLi7jS2fb9FkJfS4e8Ta6UDb zW0Uas4OHbOrziTjEBubskfo7cmVMJl0cJnmEb3kxHhHMubgsmwUyThm51IoPmB3i/fJ gNxdJFLoX2hQbBVmV8wWVL0rq5MEnWqdIhMzMsZXBCNff0IBXwq5EqGm97YYUC8hPn3C NJ0FvwIvhaiEgrv9BG1//wmhB8DVOqRPT50Gv3A8kBiLpm9DsMox4N7tBj+/8oQ0krEW lPba6s82AhiNQoZCNYL15ZTGH/MNBOSmmTsuNzpsQfM1Adb8UwBnLxNQxOP9Xt0AzDpi rR/g== 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=xONnH7a2KA8gnGHRhy+522zVdfwQNqYF9nBiA0DDxiQ=; b=B8GkvQjt/l3x+wKMRrPpljDbGMQhavD3tsejdCZrtpSgPUsUI7m5Uiobp2sUYeGLV5 +yv/hgpaZLutbFcuG+m0FJFe2pXc1U2wESiv3NwJM/dz8dT1B1Q7iVtv5qiGcE0zVu14 nC9xKBTj3Jai/+qqSUHflfihyEuwBqjAX+uNXMRV7Jb/qVhVr7Q/0iI+Vp+Zq27+D1qS 6RIK1GweGKv295nHTO8Fg7cQ6ALaBDfjQYJkW2vMLDu4neC2eifhDMbsOAUOsp8FBI+g mv7HcbOqpi09QUUBToFU3BLZF32wNEoGx9pyUxapCxuYs8DNyf5cYtQy0FgF0KdabkuQ XCIQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@sirena.org.uk header.s=20170815-heliosphere header.b=NNCjeB8b; 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 k30si7125691pgb.113.2018.11.28.04.59.40; Wed, 28 Nov 2018 04:59:55 -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=NNCjeB8b; 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 S1728483AbeK1X7Q (ORCPT + 99 others); Wed, 28 Nov 2018 18:59:16 -0500 Received: from heliosphere.sirena.org.uk ([172.104.155.198]:32908 "EHLO heliosphere.sirena.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727823AbeK1X7P (ORCPT ); Wed, 28 Nov 2018 18:59:15 -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=xONnH7a2KA8gnGHRhy+522zVdfwQNqYF9nBiA0DDxiQ=; b=NNCjeB8bvxy6 GuZNo85JfQ5HMQblaAeZU2KQVzhraFMh3rSpgk8+JRXp/GZvtYiqTfThp4Sj5tNHERzEzmoA70QwK Glv56Vn++uqH6RbABUCMt3ON1novOSms39/pqpGX/fBAjxerfguuUG0bTY5FIVM+H3HYCUyyNUgNK 03c74=; Received: from 92.40.248.202.threembb.co.uk ([92.40.248.202] 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 1gRzPN-0005H6-0Z; Wed, 28 Nov 2018 12:57:37 +0000 Received: by finisterre.ee.mobilebroadband (Postfix, from userid 1000) id CEE36440078; Wed, 28 Nov 2018 12:57:35 +0000 (GMT) From: Mark Brown To: Peter Ujfalusi Cc: Mark Brown , Mark Brown , Liam Girdwood , devicetree@vger.kernel.org, alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, jsarha@ti.com, robh+dt@kernel.org, misael.lopez@ti.com, alsa-devel@alsa-project.org Subject: Applied "ASoC: davinci-mcasp: Clear TXSTAT register before activating serializers" to the asoc tree In-Reply-To: <20181116134141.17396-2-peter.ujfalusi@ti.com> Message-Id: <20181128125735.CEE36440078@finisterre.ee.mobilebroadband> Date: Wed, 28 Nov 2018 12:57:35 +0000 (GMT) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The patch ASoC: davinci-mcasp: Clear TXSTAT register before activating serializers 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 1003c27acfc2174558b2a0803bd6974e19be2738 Mon Sep 17 00:00:00 2001 From: Peter Ujfalusi Date: Fri, 16 Nov 2018 15:41:38 +0200 Subject: [PATCH] ASoC: davinci-mcasp: Clear TXSTAT register before activating serializers Follow the guideline from the TRM: Before starting, clear the respective transmitter and receiver status registers To avoid stale state stored in the status registers. Signed-off-by: Peter Ujfalusi Signed-off-by: Mark Brown --- sound/soc/davinci/davinci-mcasp.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sound/soc/davinci/davinci-mcasp.c b/sound/soc/davinci/davinci-mcasp.c index 267aee776b2d..740030b4d37a 100644 --- a/sound/soc/davinci/davinci-mcasp.c +++ b/sound/soc/davinci/davinci-mcasp.c @@ -192,6 +192,7 @@ static void mcasp_start_rx(struct davinci_mcasp *mcasp) } /* Activate serializer(s) */ + mcasp_set_reg(mcasp, DAVINCI_MCASP_RXSTAT_REG, 0xFFFFFFFF); mcasp_set_ctl_reg(mcasp, DAVINCI_MCASP_GBLCTLR_REG, RXSERCLR); /* Release RX state machine */ mcasp_set_ctl_reg(mcasp, DAVINCI_MCASP_GBLCTLR_REG, RXSMRST); @@ -220,6 +221,7 @@ static void mcasp_start_tx(struct davinci_mcasp *mcasp) mcasp_set_ctl_reg(mcasp, DAVINCI_MCASP_GBLCTLX_REG, TXHCLKRST); mcasp_set_ctl_reg(mcasp, DAVINCI_MCASP_GBLCTLX_REG, TXCLKRST); /* Activate serializer(s) */ + mcasp_set_reg(mcasp, DAVINCI_MCASP_TXSTAT_REG, 0xFFFFFFFF); mcasp_set_ctl_reg(mcasp, DAVINCI_MCASP_GBLCTLX_REG, TXSERCLR); /* wait for XDATA to be cleared */ -- 2.19.1