From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.0 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_PASS,USER_AGENT_NEOMUTT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 59E17C43219 for ; Fri, 3 May 2019 14:54:45 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 35F272087F for ; Fri, 3 May 2019 14:54:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728152AbfECOyo (ORCPT ); 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-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: Maxime Ripard Subject: Re: [PATCH v2 2/5] ASoC: sun4i-spdif: Add support for H6 SoC Date: Fri, 3 May 2019 16:54:35 +0200 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/mixed; boundary="===============3672828247969754182==" Return-path: In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: "Alsa-devel" To: =?utf-8?B?Q2zDqW1lbnQgUMOpcm9u?= Cc: devicetree , Linux-ALSA , linux-kernel , linux-sunxi , Liam Girdwood , Rob Herring , Takashi Iwai , Chen-Yu Tsai , Mark Brown , linux-arm-kernel List-Id: devicetree@vger.kernel.org --===============3672828247969754182== Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="f5z2x6ysmbssgmgl" Content-Disposition: inline --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-- --===============3672828247969754182== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline --===============3672828247969754182==-- From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.0 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_PASS,T_DKIMWL_WL_HIGH, URIBL_BLOCKED,USER_AGENT_NEOMUTT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3AD5FC43219 for ; Fri, 3 May 2019 14:54:56 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 0DCEA2087F for ; Fri, 3 May 2019 14:54:55 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="OUEI5E3/" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 0DCEA2087F Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=bootlin.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender:Content-Type:Cc: List-Subscribe:List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id: In-Reply-To:MIME-Version:References:Message-ID:Subject:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=MDXm/fiHMf7VdGQh6bJQ6XmMVMvLB2aq/Vsm0T0Z2qs=; b=OUEI5E3/a8m/Shnuw8C888t4S lg5mg9/NAEGflVnX4p9B56JrbnDC0LNQf0IpMxyo3xBgDNaupuqMdyeJDvp587gLtqilqCck+ZHP4 uhXNbUtvsjRGe2DOyJPRxbm3ayYPzgpJd/bT9fmJEUTk8ucYaWhKMIZwhXvo7vcXWKIER3C62ZsDo TR4WbY1meikuboZdCUvpIH4zTiQa8OzHbBrpecPWDyb5ezzUHlpe0KPWpbEUSMVa4+tEibc/11TOH VlhdYK2EgeXrEk1nN5X6ivMG0K+wSCmWF+NY4genDZaY6W7ee/GVMbPHafxBXo7PYGzsx1ubgBoZp zFye7Re3A==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1hMZaO-0004DE-OF; Fri, 03 May 2019 14:54:52 +0000 Received: from relay8-d.mail.gandi.net ([217.70.183.201]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1hMZaL-0004CB-1Z for linux-arm-kernel@lists.infradead.org; Fri, 03 May 2019 14:54:50 +0000 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?= 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 In-Reply-To: User-Agent: NeoMutt/20180716 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190503_075449_399898_4F9BF6D7 X-CRM114-Status: GOOD ( 15.41 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree , Linux-ALSA , linux-kernel , linux-sunxi , Liam Girdwood , Rob Herring , Takashi Iwai , Chen-Yu Tsai , Mark Brown , Jaroslav Kysela , linux-arm-kernel Content-Type: multipart/mixed; boundary="===============3969856802440280084==" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org --===============3969856802440280084== Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="f5z2x6ysmbssgmgl" Content-Disposition: inline --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-- --===============3969856802440280084== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel --===============3969856802440280084==--