Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp627555yba; Fri, 3 May 2019 07:58:12 -0700 (PDT) X-Google-Smtp-Source: APXvYqwjeSuwyIH32bWsy9VkfDyINWrFHgYz96UEqCU5ytmY0zeGv+iD4DSwq6Pzq6s02PYi4uAH X-Received: by 2002:a17:902:2702:: with SMTP id c2mr10719496plb.277.1556895492325; Fri, 03 May 2019 07:58:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556895492; cv=none; d=google.com; s=arc-20160816; b=SRsNRQiruAyLJUVyG0SumH1TL/afviJ+2XQ0apA3wba9v0KZWtQpnsA6g1IvfoqxfZ Ge+hiwtMiEGLOdOPPZdVZL9c5pwZRLi/Fxhhe5B0NBW7KfRpIyBhXvW+1ZG2L238VnI9 s5K7I552ga6sMBV3vTFqLF0MMRy9CCxs+iRwzDGhgskMb2vR/y82vhQhH6y27vweOcmg pzmJfCHEprQvrzbL3MepTVoyFxrdgtcGBB3t56I81cL/Pu2W6mkSfG4h3XWV7+9rfZVj iUmmX587G79ZI1ERJ/Oz8X8zdUhPvVdNmOuxbZK4t5ObjX5K2kWk4Aug6OwoHyVLlXda rkLA== 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=uPo/cC1zinTCJY5l3tcha89rAj3nj6WzrtAyddWAyzs=; b=R4r6gIEoAWRxMs/8ujt3E3cPlSXZhwAEyqT2Y5ktd9rbQFc0BT6f4q6icb1SX8sMyL zlKAc4ZE+ElbVQw1vAhe7U1MwC4ZflOoHA1ktlZ+7hMjGYa6GtIERPew81NFXEwQjEaW 1sd9iZdc1OfWx/3qtisGR59jgoT/WCHZQy8UAYtmeCJKvD58ApZaIWnhNA1sUsyrAceK krcG19b2gnVLQJ89SUT0C1IkJGUvrLDFUDhJNtGkM8r9qqYngOGOJolnXDe5YodpW10V KM61MFVz4hhzM9Hg3Ke83eK5V9PIT4dg+VMkPDqpjdxS8OEnSYSXpUSFaJ0PTFHFBGpK iY7Q== 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 15si2530344pfp.44.2019.05.03.07.57.56; Fri, 03 May 2019 07:58:12 -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 S1728143AbfECOyo (ORCPT + 99 others); Fri, 3 May 2019 10:54:44 -0400 Received: from relay8-d.mail.gandi.net ([217.70.183.201]:46505 "EHLO relay8-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727032AbfECOyo (ORCPT ); Fri, 3 May 2019 10:54:44 -0400 X-Originating-IP: 90.88.149.145 Received: from localhost (aaubervilliers-681-1-29-145.w90-88.abo.wanadoo.fr [90.88.149.145]) (Authenticated sender: maxime.ripard@bootlin.com) by relay8-d.mail.gandi.net (Postfix) with ESMTPSA id C246D1BF20C; Fri, 3 May 2019 14:54:35 +0000 (UTC) Date: Fri, 3 May 2019 16:54:35 +0200 From: Maxime Ripard To: =?utf-8?B?Q2zDqW1lbnQgUMOpcm9u?= Cc: Chen-Yu Tsai , Takashi Iwai , Jaroslav Kysela , Liam Girdwood , Mark Brown , Rob Herring , Linux-ALSA , devicetree , linux-kernel , linux-arm-kernel , linux-sunxi Subject: Re: [PATCH v2 2/5] ASoC: sun4i-spdif: Add support for H6 SoC Message-ID: <20190503145435.jziomr3sqxp6jbpd@flea> References: <20190419191730.9437-1-peron.clem@gmail.com> <20190419191730.9437-3-peron.clem@gmail.com> <20190502082526.c5zo4uzceqzizbxo@flea> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="f5z2x6ysmbssgmgl" 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 --f5z2x6ysmbssgmgl Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, May 02, 2019 at 11:39:24AM +0200, Cl=E9ment P=E9ron wrote: > > > @@ -169,16 +181,25 @@ struct sun4i_spdif_dev { > > > struct snd_soc_dai_driver cpu_dai_drv; > > > struct regmap *regmap; > > > struct snd_dmaengine_dai_dma_data dma_params_tx; > > > + const struct sun4i_spdif_quirks *quirks; > > > > I guess this will generate a warning since the structure hasn't been > > defined yet? > > It's a pointer to a structure so no warning from the compiler. Damn, I was convinced just declaring a pointer to a structure would result to a gcc warning. Nevermind then. > > > @@ -405,22 +426,26 @@ static struct snd_soc_dai_driver sun4i_spdif_da= i =3D { > > > .name =3D "spdif", > > > }; > > > > > > -struct sun4i_spdif_quirks { > > > - unsigned int reg_dac_txdata; /* TX FIFO offset for DMA confi= g */ > > > - bool has_reset; > > > -}; > > > - > > > static const struct sun4i_spdif_quirks sun4i_a10_spdif_quirks =3D { > > > .reg_dac_txdata =3D SUN4I_SPDIF_TXFIFO, > > > + .reg_fctl_ftx =3D SUN4I_SPDIF_FCTL_FTX, > > > }; > > > > > > static const struct sun4i_spdif_quirks sun6i_a31_spdif_quirks =3D { > > > .reg_dac_txdata =3D SUN4I_SPDIF_TXFIFO, > > > + .reg_fctl_ftx =3D SUN4I_SPDIF_FCTL_FTX, > > > .has_reset =3D true, > > > }; > > > > > > static const struct sun4i_spdif_quirks sun8i_h3_spdif_quirks =3D { > > > .reg_dac_txdata =3D SUN8I_SPDIF_TXFIFO, > > > + .reg_fctl_ftx =3D SUN4I_SPDIF_FCTL_FTX, > > > + .has_reset =3D true, > > > +}; > > > > > > +static const struct sun4i_spdif_quirks sun50i_h6_spdif_quirks =3D { > > > + .reg_dac_txdata =3D SUN8I_SPDIF_TXFIFO, > > > + .reg_fctl_ftx =3D SUN50I_H6_SPDIF_FCTL_FTX, > > > .has_reset =3D true, > > > > The reg_dac_txdata and reg_fctl_ftx changes here should also be part > > of a separate patch. > > You mean the reg_fctl_ftx quirk and the H6 introduction should be split ? Yep Maxime -- Maxime Ripard, Bootlin Embedded Linux and Kernel engineering https://bootlin.com --f5z2x6ysmbssgmgl Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRcEzekXsqa64kGDp7j7w1vZxhRxQUCXMxWKwAKCRDj7w1vZxhR xTheAQD9sE7A0WEHij5Wf1qBjNLpFuz3ZidjjR2KW3BxB9EWSgD/fmxUP0w8djKy bpfpawxYsCpDiDgb1b2tfBSFbXO87wE= =ry69 -----END PGP SIGNATURE----- --f5z2x6ysmbssgmgl--