Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp5119408ybi; Tue, 4 Jun 2019 01:23:02 -0700 (PDT) X-Google-Smtp-Source: APXvYqyJNO9fF9cxzrUVG7fl8Vr5Oyg7ov/uRGi7j5NUSn3RjYGxkRO/HYAZNwIymUzUecVKNWhH X-Received: by 2002:a63:2260:: with SMTP id t32mr3499267pgm.222.1559636581942; Tue, 04 Jun 2019 01:23:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559636581; cv=none; d=google.com; s=arc-20160816; b=CyzMBadSFi1zyXSZQRhUfgg89jLgq46u6qRgrq0Di/oALlwTj0VEVpQNAZmISnJnwu e9niQKWZuvXa0+dzwUNLYJGbJzy4j3H40uQYAsjW6r/bPI2e3EtZBtKvQDrL+zmQpdim gsya2XCWmHQ4h/lXeeKCwiteaMwQSc82+NhUBTzBQboXEnBdKAS8yfbLiNtqDxvKKFuN 3SHj2em46GaoONDMOnEjA7rWmkvBR/jiUwKXaXfdaY7n/kTz9Yg6NrV5y0kIIy+v0Yxm 9dxswrKz6QHz98GDyLK18nOlkKuz8Fcw1puPFBs+lFoqiJdS4uykfuJ2Bw354gXLirW2 UuCQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=Pn6gUOxDgMH9IaINN4ClIJ/naQ9+cKXSmPEhZuCg4Ow=; b=LyvmqSfwXaWzHKCuDOs6Nl2b5Bd/apPqZsZCMMHfR7kdTmTDS/bQhxrFs3CEcc3AaL HgATxHvpydLJdkkbV4pU2P0KsTWLbeSZylJDi0VOhl15ROLTKv/m/0tn5qyKx6gj4qyh JYITM3sn4qrZaITiAjNragJwDvph+by/KOqsDouprqsjcy36SRqL5bJDARq+44x1w2x7 yTMSiMXyCtwi0aYzh1fYSAr+6KHmojyz/PmRdZbbEDcUzMcxOPME9Do0bPTy+5lTx0J/ uWVN8I7b29oT5ogYKlyNLmOPkZvo3mi9XuXR4M9nJWX/a1YUYplB0sFHgnvOCLUzj/bz 6M7g== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m19si20811894pgl.241.2019.06.04.01.22.44; Tue, 04 Jun 2019 01:23:01 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726877AbfFDIVc (ORCPT + 99 others); Tue, 4 Jun 2019 04:21:32 -0400 Received: from relay7-d.mail.gandi.net ([217.70.183.200]:54567 "EHLO relay7-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726809AbfFDIVc (ORCPT ); Tue, 4 Jun 2019 04:21:32 -0400 X-Originating-IP: 90.88.144.139 Received: from localhost (aaubervilliers-681-1-24-139.w90-88.abo.wanadoo.fr [90.88.144.139]) (Authenticated sender: maxime.ripard@bootlin.com) by relay7-d.mail.gandi.net (Postfix) with ESMTPSA id 21F3820010; Tue, 4 Jun 2019 08:21:26 +0000 (UTC) Date: Tue, 4 Jun 2019 10:21:26 +0200 From: Maxime Ripard To: codekipper@gmail.com Cc: wens@csie.org, linux-sunxi@googlegroups.com, linux-arm-kernel@lists.infradead.org, lgirdwood@gmail.com, broonie@kernel.org, linux-kernel@vger.kernel.org, alsa-devel@alsa-project.org, be17068@iperbole.bo.it Subject: Re: [PATCH v4 9/9] ASoC: sun4i-i2s: Adjust regmap settings Message-ID: <20190604082126.7jgk2cn2u253nmr2@flea> References: <20190603174735.21002-1-codekipper@gmail.com> <20190603174735.21002-10-codekipper@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="id3655fnez2gqvnw" Content-Disposition: inline In-Reply-To: <20190603174735.21002-10-codekipper@gmail.com> User-Agent: NeoMutt/20180716 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --id3655fnez2gqvnw Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Mon, Jun 03, 2019 at 07:47:35PM +0200, codekipper@gmail.com wrote: > From: Marcus Cooper > > Bypass the regmap cache when flushing the i2s FIFOs and modify the tables > to reflect this. > > Signed-off-by: Marcus Cooper > --- > sound/soc/sunxi/sun4i-i2s.c | 29 +++++++++-------------------- > 1 file changed, 9 insertions(+), 20 deletions(-) > > diff --git a/sound/soc/sunxi/sun4i-i2s.c b/sound/soc/sunxi/sun4i-i2s.c > index 351b8021173b..92828a84902d 100644 > --- a/sound/soc/sunxi/sun4i-i2s.c > +++ b/sound/soc/sunxi/sun4i-i2s.c > @@ -595,9 +595,11 @@ static int sun4i_i2s_set_fmt(struct snd_soc_dai *dai, unsigned int fmt) > static void sun4i_i2s_start_capture(struct sun4i_i2s *i2s) > { > /* Flush RX FIFO */ > + regcache_cache_bypass(i2s->regmap, true); > regmap_update_bits(i2s->regmap, SUN4I_I2S_FIFO_CTRL_REG, > SUN4I_I2S_FIFO_CTRL_FLUSH_RX, > SUN4I_I2S_FIFO_CTRL_FLUSH_RX); > + regcache_cache_bypass(i2s->regmap, false); Your commit log should say why you need to do this in the first place. > @@ -771,13 +775,7 @@ static const struct snd_soc_component_driver sun4i_i2s_component = { > > static bool sun4i_i2s_rd_reg(struct device *dev, unsigned int reg) > { > - switch (reg) { > - case SUN4I_I2S_FIFO_TX_REG: > - return false; > - > - default: > - return true; > - } > + return true; That doesn't seem related? Maxime -- Maxime Ripard, Bootlin Embedded Linux and Kernel engineering https://bootlin.com --id3655fnez2gqvnw Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRcEzekXsqa64kGDp7j7w1vZxhRxQUCXPYqBgAKCRDj7w1vZxhR xaI9AP9kw/Dxrjf+ydEaoUMyGCeuWG+T3q9mRR+01bsMCLwC4gD/Vw5P/+LzUpDY JRMk0P27lfshoHsSOv0tmj90hGxF+QU= =QlRr -----END PGP SIGNATURE----- --id3655fnez2gqvnw--