Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp966496yba; Thu, 4 Apr 2019 01:17:31 -0700 (PDT) X-Google-Smtp-Source: APXvYqxLBh7Jenp5uil3hr5Xv4g5ZfnOftlTKgxemr+00Xxg8qKh43NYS07dYMzxAGHkdKtrLLsx X-Received: by 2002:a17:902:290b:: with SMTP id g11mr4989661plb.269.1554365851919; Thu, 04 Apr 2019 01:17:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554365851; cv=none; d=google.com; s=arc-20160816; b=SDlGHBuCr4VUx66A4h7d0aIuG31+rybk3BVmLRAXc/dq8FKO5kTL4v892Iddiu8Uxr VLv+j27IINCSVeub3RvLGeZMjLb9lB8xfG+bsyviBR9u0SlZ80N708iPke1+jVRQSVAj xPXJH5x/Fk0TutSRFayHzQzUtFGr49NdjTrRWf6Ru+5M9oGoOzM/HmjbQ6ZtQTqjd1y/ 2q0ryM0XcbdhsmTqJ5JGNwUKKjirTXTv/BJiUczshVO6kAzJCNrwCfuRCbarSRgxbwDN 1ifPqM5wqplZNfj9zkSc32HyazwPvVxwL4C4SlsUd3EWQhTin1y+gUyWn/uNe7Y/BFor j4hg== 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=Yspq768DlQfVYwj04VKUX+8/YMnbCfpjvYSLs4e4syc=; b=d7vLFoJuDx2qn63BxGxSdIs2RCHQHisawN7QNPM01Xjv8R5l4MFagE5paDVOjFlGn1 KkGgs2krRTYHDSuYmg0zmkvRSg1h++jSNkLC1uwZLFvYs0YgrXP0lBSHoo43/3NRAHMt gHtqaNqJWGedi8pnlVvU673dZO8cK1/EEffwYgS95AfYqUJO9ugqzpbFIK4TFj2S4WE7 wnhNBwALv4BL4BGCtks+54CxWZwqhbhkwHwtED+MCuVZY0FkN3KcuT5M0GY8TMEhJvFs QV2yZSO0DF3uDJ2YMpoET/74QXyTypi0np3Cm1j4iZnoXMIMyXxRYYunNKOPwSRsUsko SFvw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@sirena.org.uk header.s=20170815-heliosphere header.b=QLhYaJ2j; 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 n22si15581675plp.296.2019.04.04.01.17.16; Thu, 04 Apr 2019 01:17:31 -0700 (PDT) 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=QLhYaJ2j; 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 S1727445AbfDDIQd (ORCPT + 99 others); Thu, 4 Apr 2019 04:16:33 -0400 Received: from heliosphere.sirena.org.uk ([172.104.155.198]:49924 "EHLO heliosphere.sirena.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725904AbfDDIQd (ORCPT ); Thu, 4 Apr 2019 04:16:33 -0400 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=Yspq768DlQfVYwj04VKUX+8/YMnbCfpjvYSLs4e4syc=; b=QLhYaJ2jTvaf F9GyNe90Po5Bins1Soo6G3efKWPX0rVXS+1Pkf0i0+reomul27e77qHlvZnF9pYdY254I3ibLsxvJ PiWmR26/DhRVfJGoLPxxityVAOuP7JkS60x2dL082S5MLYocQUjpbZiS1Iatmk0NF+cFbgScK4Cs0 aJclo=; Received: from [147.50.13.10] (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 1hBxXq-000516-Sp; Thu, 04 Apr 2019 08:16:23 +0000 Received: by finisterre.ee.mobilebroadband (Postfix, from userid 1000) id 75DA7441D3C; Thu, 4 Apr 2019 15:16:19 +0700 (+07) From: Mark Brown To: Sugar Zhang Cc: Mark Brown , heiko@sntech.de, broonie@kernel.org, alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, Takashi Iwai , Liam Girdwood , linux-rockchip@lists.infradead.org, linux-arm-kernel@lists.infradead.org, alsa-devel@alsa-project.org Subject: Applied "ASoC: rockchip: pdm: Mark RXFIFO_DATA as volatile and precious" to the asoc tree In-Reply-To: <1554350228-24440-1-git-send-email-sugar.zhang@rock-chips.com> X-Patchwork-Hint: ignore Message-Id: <20190404081619.75DA7441D3C@finisterre.ee.mobilebroadband> Date: Thu, 4 Apr 2019 15:16:19 +0700 (+07) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The patch ASoC: rockchip: pdm: Mark RXFIFO_DATA as volatile and precious 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 b126fc07328749269021ac53173f9afdd6947248 Mon Sep 17 00:00:00 2001 From: Sugar Zhang Date: Thu, 4 Apr 2019 11:57:08 +0800 Subject: [PATCH] ASoC: rockchip: pdm: Mark RXFIFO_DATA as volatile and precious This patch marks RXFIFO_DATA as precious to avoid being read outside a call from the driver, such as regmap debugfs Signed-off-by: Sugar Zhang Signed-off-by: Mark Brown --- sound/soc/rockchip/rockchip_pdm.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/sound/soc/rockchip/rockchip_pdm.c b/sound/soc/rockchip/rockchip_pdm.c index 068453596470..6c0f242db5ef 100644 --- a/sound/soc/rockchip/rockchip_pdm.c +++ b/sound/soc/rockchip/rockchip_pdm.c @@ -417,6 +417,7 @@ static bool rockchip_pdm_rd_reg(struct device *dev, unsigned int reg) case PDM_INT_CLR: case PDM_INT_ST: case PDM_DATA_VALID: + case PDM_RXFIFO_DATA: case PDM_VERSION: return true; default: @@ -431,6 +432,17 @@ static bool rockchip_pdm_volatile_reg(struct device *dev, unsigned int reg) case PDM_FIFO_CTRL: case PDM_INT_CLR: case PDM_INT_ST: + case PDM_RXFIFO_DATA: + return true; + default: + return false; + } +} + +static bool rockchip_pdm_precious_reg(struct device *dev, unsigned int reg) +{ + switch (reg) { + case PDM_RXFIFO_DATA: return true; default: return false; @@ -453,6 +465,7 @@ static const struct regmap_config rockchip_pdm_regmap_config = { .writeable_reg = rockchip_pdm_wr_reg, .readable_reg = rockchip_pdm_rd_reg, .volatile_reg = rockchip_pdm_volatile_reg, + .precious_reg = rockchip_pdm_precious_reg, .cache_type = REGCACHE_FLAT, }; -- 2.20.1