Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp3754076ybi; Mon, 27 May 2019 05:31:35 -0700 (PDT) X-Google-Smtp-Source: APXvYqxIf/flXXzzXk0Y0EV7sfl24F/PugcFklO6bovd6f1d1uP/OtWqyuWRgqccqFPimB0GS0z5 X-Received: by 2002:a17:902:6bc2:: with SMTP id m2mr125261794plt.24.1558960295462; Mon, 27 May 2019 05:31:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558960295; cv=none; d=google.com; s=arc-20160816; b=nd8H2Id5xqltMYMBBxZmrUb7XwL+5ShHWZy5YIJ5WJ9LuZU2gOa7x0UA0h5Uat0/eX yxfdVFjJG8tako6I6b+lKuDrTVd0KMM4x0E0wzW9WVVMmLdy+VzAtPFomUtXzz1ebbMF Bz7tZiXqPFtnclTQsIIej5euIEC5ADVmMEE1eP4nfwssRd9fBdk1vr07BwSMhGvewhim yfoXq1yWgfKbGiHkFAeQxAOIJkf158v37b/8sasJATFI40iZwz+Za8uLMWXtYgo3fgvW 3KL02yO60TNOYgpdSfH1cSwHHOSWbHYYZE4krZzNo5fsvNQIea89AGxe/GKuHe4zntNH 5BFA== 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=rcSObc5nd5kjspSjBtLx/z0YR6WAKzlFxEaQqUs+9Kg=; b=XfvCdBdBuXiXiy+IDtzoh6MMetsRsh48A6Zl7MjbgTdBEi8A6iR6uDV/SUuNQGHJiE SSdocpFsQfjCvos2DGnwRFo3Yun7ueA+8UZeugmGePuLANDoIDZ8ApJ2xKxZxmNd0h6m Hkkshbzo2fhZii56+dqVFIzBivh+wMZOwWI5jUqJiaE+PIaO0lbSPnT56H0+ff0G5TjU jqSZxe+rEBmZbITtUXzt0KquW6MMXP789tID8YDKmL/V/P2dKxCUkuDevp5N7zCVoYgq +GJZb4CyRdzwhO2QVRg0ONvoDJDaKQuiIQaBEV7O9OMLGAlR8juK/yj/HFsIuHDf4xUU 9HzA== 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 o102si17239423pje.42.2019.05.27.05.31.18; Mon, 27 May 2019 05:31:35 -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 S1727064AbfE0M3F (ORCPT + 99 others); Mon, 27 May 2019 08:29:05 -0400 Received: from relay6-d.mail.gandi.net ([217.70.183.198]:55307 "EHLO relay6-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726071AbfE0M3F (ORCPT ); Mon, 27 May 2019 08:29:05 -0400 X-Originating-IP: 90.88.147.134 Received: from localhost (aaubervilliers-681-1-27-134.w90-88.abo.wanadoo.fr [90.88.147.134]) (Authenticated sender: maxime.ripard@bootlin.com) by relay6-d.mail.gandi.net (Postfix) with ESMTPSA id B5136C0003; Mon, 27 May 2019 12:28:57 +0000 (UTC) Date: Mon, 27 May 2019 14:28:57 +0200 From: Maxime Ripard To: =?utf-8?B?Q2zDqW1lbnQgUMOpcm9u?= Cc: Liam Girdwood , Mark Brown , Rob Herring , Mark Rutland , Chen-Yu Tsai , Jaroslav Kysela , Takashi Iwai , Jagan Teki , Linux-ALSA , devicetree , linux-arm-kernel , linux-kernel Subject: Re: [PATCH v3 3/7] ASoC: sun4i-spdif: Add TX fifo bit flush quirks Message-ID: <20190527122857.lphlgr7dc5z4f5o3@flea> References: <20190525162323.20216-1-peron.clem@gmail.com> <20190525162323.20216-4-peron.clem@gmail.com> <20190526182410.soqb6bne6w66d5j6@flea> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="5fgdhizk55u3fsr6" Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20180716 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --5fgdhizk55u3fsr6 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, May 26, 2019 at 09:00:30PM +0200, Cl=E9ment P=E9ron wrote: > Hi Maxime, > > On Sun, 26 May 2019 at 20:24, Maxime Ripard w= rote: > > > > On Sat, May 25, 2019 at 06:23:19PM +0200, Cl=E9ment P=E9ron wrote: > > > Allwinner H6 has a different bit to flush the TX FIFO. > > > > > > Add a quirks to prepare introduction of H6 SoC. > > > > > > Signed-off-by: Cl=E9ment P=E9ron > > > --- > > > sound/soc/sunxi/sun4i-spdif.c | 11 ++++++++++- > > > 1 file changed, 10 insertions(+), 1 deletion(-) > > > > > > diff --git a/sound/soc/sunxi/sun4i-spdif.c b/sound/soc/sunxi/sun4i-sp= dif.c > > > index b6c66a62e915..8317bbee0712 100644 > > > --- a/sound/soc/sunxi/sun4i-spdif.c > > > +++ b/sound/soc/sunxi/sun4i-spdif.c > > > @@ -166,10 +166,12 @@ > > > * > > > * @reg_dac_tx_data: TX FIFO offset for DMA config. > > > * @has_reset: SoC needs reset deasserted. > > > + * @reg_fctl_ftx: TX FIFO flush bitmask. > > > > It's a bit weird to use the same prefix for a register offset > > (reg_dac_tx_data) and a value (reg_fctl_ftx). > > I just look at sun4i-codec and they use a regmap, But I think it's a > bit overkill no? For a single value, yeah > What do you think about val_fctl_ftx ? Looks good, thanks! Maxime -- Maxime Ripard, Bootlin Embedded Linux and Kernel engineering https://bootlin.com --5fgdhizk55u3fsr6 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRcEzekXsqa64kGDp7j7w1vZxhRxQUCXOvYCQAKCRDj7w1vZxhR xWpYAQDonSAGR8IIIJfCwN6P7pyQ5D2rskJl7lfFfD4Mo5WZ8QD/aAaog6/za5ta r3GfRL559CHukEIi7he29P416ycIjw0= =3d9d -----END PGP SIGNATURE----- --5fgdhizk55u3fsr6--