All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] DAI driver for new XCVR IP
@ 2020-09-16  9:17 ` Viorel Suman (OSS)
  0 siblings, 0 replies; 33+ messages in thread
From: Viorel Suman (OSS) @ 2020-09-16  9:17 UTC (permalink / raw)
  To: Liam Girdwood, Mark Brown, Rob Herring, Jaroslav Kysela,
	Takashi Iwai, Timur Tabi, Nicolin Chen, Xiubo Li, Fabio Estevam,
	Shengjiu Wang, Philipp Zabel, Matthias Schiffer,
	Cosmin-Gabriel Samoila, Viorel Suman, alsa-devel, devicetree,
	linux-kernel, linuxppc-dev
  Cc: Viorel Suman, NXP Linux Team

From: Viorel Suman <viorel.suman@nxp.com>

DAI driver for new XCVR IP found in i.MX8MP.

Viorel Suman (2):
  ASoC: fsl_xcvr: Add XCVR ASoC CPU DAI driver
  ASoC: dt-bindings: fsl_xcvr: Add document for XCVR

 .../devicetree/bindings/sound/fsl,xcvr.yaml        |  104 ++
 sound/soc/fsl/Kconfig                              |   10 +
 sound/soc/fsl/Makefile                             |    2 +
 sound/soc/fsl/fsl_xcvr.c                           | 1352 ++++++++++++++++++++
 sound/soc/fsl/fsl_xcvr.h                           |  266 ++++
 5 files changed, 1734 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/sound/fsl,xcvr.yaml
 create mode 100644 sound/soc/fsl/fsl_xcvr.c
 create mode 100644 sound/soc/fsl/fsl_xcvr.h

-- 
2.7.4


^ permalink raw reply	[flat|nested] 33+ messages in thread
* Re: [PATCH 1/2] ASoC: fsl_xcvr: Add XCVR ASoC CPU DAI driver
@ 2020-09-17  8:14 kernel test robot
  0 siblings, 0 replies; 33+ messages in thread
From: kernel test robot @ 2020-09-17  8:14 UTC (permalink / raw)
  To: kbuild

[-- Attachment #1: Type: text/plain, Size: 5523 bytes --]

CC: kbuild-all(a)lists.01.org
In-Reply-To: <1600247876-8013-2-git-send-email-viorel.suman@oss.nxp.com>
References: <1600247876-8013-2-git-send-email-viorel.suman@oss.nxp.com>
TO: "Viorel Suman (OSS)" <viorel.suman@oss.nxp.com>
TO: Liam Girdwood <lgirdwood@gmail.com>
TO: Mark Brown <broonie@kernel.org>
TO: Rob Herring <robh+dt@kernel.org>
TO: Jaroslav Kysela <perex@perex.cz>
TO: Takashi Iwai <tiwai@suse.com>
TO: Timur Tabi <timur@kernel.org>
TO: Nicolin Chen <nicoleotsuka@gmail.com>
TO: Xiubo Li <Xiubo.Lee@gmail.com>
TO: Fabio Estevam <festevam@gmail.com>
TO: Shengjiu Wang <shengjiu.wang@gmail.com>

Hi "Viorel,

Thank you for the patch! Perhaps something to improve:

[auto build test WARNING on asoc/for-next]
[also build test WARNING on robh/for-next v5.9-rc5 next-20200916]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]

url:    https://github.com/0day-ci/linux/commits/Viorel-Suman-OSS/DAI-driver-for-new-XCVR-IP/20200916-171921
base:   https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next
:::::: branch date: 23 hours ago
:::::: commit date: 23 hours ago
config: i386-randconfig-m021-20200917 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>

smatch warnings:
sound/soc/fsl/fsl_xcvr.c:381 fsl_xcvr_en_aud_pll() warn: 'xcvr->phy_clk' not released on lines: 361.

# https://github.com/0day-ci/linux/commit/87299d2c9ad1b82091b3c273c7b393595a3325ab
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Viorel-Suman-OSS/DAI-driver-for-new-XCVR-IP/20200916-171921
git checkout 87299d2c9ad1b82091b3c273c7b393595a3325ab
vim +381 sound/soc/fsl/fsl_xcvr.c

87299d2c9ad1b82 Viorel Suman 2020-09-16  338  
87299d2c9ad1b82 Viorel Suman 2020-09-16  339  static int fsl_xcvr_en_aud_pll(struct fsl_xcvr *xcvr, u32 freq)
87299d2c9ad1b82 Viorel Suman 2020-09-16  340  {
87299d2c9ad1b82 Viorel Suman 2020-09-16  341  	struct device *dev = &xcvr->pdev->dev;
87299d2c9ad1b82 Viorel Suman 2020-09-16  342  	int ret;
87299d2c9ad1b82 Viorel Suman 2020-09-16  343  
87299d2c9ad1b82 Viorel Suman 2020-09-16  344  	clk_disable_unprepare(xcvr->phy_clk);
87299d2c9ad1b82 Viorel Suman 2020-09-16  345  	ret = clk_set_rate(xcvr->phy_clk, freq);
87299d2c9ad1b82 Viorel Suman 2020-09-16  346  	if (ret < 0) {
87299d2c9ad1b82 Viorel Suman 2020-09-16  347  		dev_err(dev, "Error while setting AUD PLL rate: %d\n", ret);
87299d2c9ad1b82 Viorel Suman 2020-09-16  348  		return ret;
87299d2c9ad1b82 Viorel Suman 2020-09-16  349  	}
87299d2c9ad1b82 Viorel Suman 2020-09-16  350  	ret = clk_prepare_enable(xcvr->phy_clk);
87299d2c9ad1b82 Viorel Suman 2020-09-16  351  	if (ret) {
87299d2c9ad1b82 Viorel Suman 2020-09-16  352  		dev_err(dev, "failed to start PHY clock: %d\n", ret);
87299d2c9ad1b82 Viorel Suman 2020-09-16  353  		return ret;
87299d2c9ad1b82 Viorel Suman 2020-09-16  354  	}
87299d2c9ad1b82 Viorel Suman 2020-09-16  355  
87299d2c9ad1b82 Viorel Suman 2020-09-16  356  	/* Release AI interface from reset */
87299d2c9ad1b82 Viorel Suman 2020-09-16  357  	ret = regmap_write(xcvr->regmap, FSL_XCVR_PHY_AI_CTRL_SET,
87299d2c9ad1b82 Viorel Suman 2020-09-16  358  			   FSL_XCVR_PHY_AI_CTRL_AI_RESETN);
87299d2c9ad1b82 Viorel Suman 2020-09-16  359  	if (ret < 0) {
87299d2c9ad1b82 Viorel Suman 2020-09-16  360  		dev_err(dev, "Error while setting IER0: %d\n", ret);
87299d2c9ad1b82 Viorel Suman 2020-09-16  361  		return ret;
87299d2c9ad1b82 Viorel Suman 2020-09-16  362  	}
87299d2c9ad1b82 Viorel Suman 2020-09-16  363  
87299d2c9ad1b82 Viorel Suman 2020-09-16  364  	if (xcvr->mode == FSL_XCVR_MODE_EARC) { /* eARC mode */
87299d2c9ad1b82 Viorel Suman 2020-09-16  365  		/* PHY: CTRL_SET: TX_DIFF_OE, PHY_EN */
87299d2c9ad1b82 Viorel Suman 2020-09-16  366  		fsl_xcvr_ai_write(xcvr, FSL_XCVR_PHY_CTRL_SET,
87299d2c9ad1b82 Viorel Suman 2020-09-16  367  				  FSL_XCVR_PHY_CTRL_TSDIFF_OE |
87299d2c9ad1b82 Viorel Suman 2020-09-16  368  				  FSL_XCVR_PHY_CTRL_PHY_EN, 1);
87299d2c9ad1b82 Viorel Suman 2020-09-16  369  		/* PHY: CTRL2_SET: EARC_TX_MODE */
87299d2c9ad1b82 Viorel Suman 2020-09-16  370  		fsl_xcvr_ai_write(xcvr, FSL_XCVR_PHY_CTRL2_SET,
87299d2c9ad1b82 Viorel Suman 2020-09-16  371  				  FSL_XCVR_PHY_CTRL2_EARC_TXMS, 1);
87299d2c9ad1b82 Viorel Suman 2020-09-16  372  	} else { /* SPDIF mode */
87299d2c9ad1b82 Viorel Suman 2020-09-16  373  		/* PHY: CTRL_SET: TX_CLK_AUD_SS | SPDIF_EN */
87299d2c9ad1b82 Viorel Suman 2020-09-16  374  		fsl_xcvr_ai_write(xcvr, FSL_XCVR_PHY_CTRL_SET,
87299d2c9ad1b82 Viorel Suman 2020-09-16  375  				  FSL_XCVR_PHY_CTRL_TX_CLK_AUD_SS |
87299d2c9ad1b82 Viorel Suman 2020-09-16  376  				  FSL_XCVR_PHY_CTRL_SPDIF_EN, 1);
87299d2c9ad1b82 Viorel Suman 2020-09-16  377  	}
87299d2c9ad1b82 Viorel Suman 2020-09-16  378  
87299d2c9ad1b82 Viorel Suman 2020-09-16  379  	dev_dbg(dev, "PLL Fexp: %u\n", freq);
87299d2c9ad1b82 Viorel Suman 2020-09-16  380  
87299d2c9ad1b82 Viorel Suman 2020-09-16 @381  	return 0;
87299d2c9ad1b82 Viorel Suman 2020-09-16  382  }
87299d2c9ad1b82 Viorel Suman 2020-09-16  383  

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 34024 bytes --]

^ permalink raw reply	[flat|nested] 33+ messages in thread

end of thread, other threads:[~2020-09-18 17:25 UTC | newest]

Thread overview: 33+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-09-16  9:17 [PATCH 0/2] DAI driver for new XCVR IP Viorel Suman (OSS)
2020-09-16  9:17 ` Viorel Suman (OSS)
2020-09-16  9:17 ` [PATCH 1/2] ASoC: fsl_xcvr: Add XCVR ASoC CPU DAI driver Viorel Suman (OSS)
2020-09-16  9:17   ` Viorel Suman (OSS)
2020-09-17  7:14   ` Nicolin Chen
2020-09-17  7:14     ` Nicolin Chen
2020-09-17  7:14     ` Nicolin Chen
2020-09-18 14:21     ` Viorel Suman (OSS)
2020-09-18 14:21       ` Viorel Suman (OSS)
2020-09-18 14:21       ` Viorel Suman (OSS)
2020-09-18 16:06       ` Timur Tabi
2020-09-18 16:06         ` Timur Tabi
2020-09-18 16:06         ` Timur Tabi
2020-09-17 10:00   ` Dan Carpenter
2020-09-17 10:00     ` Dan Carpenter
2020-09-17 13:53   ` Mark Brown
2020-09-17 13:53     ` Mark Brown
2020-09-17 13:53     ` Mark Brown
2020-09-18 15:02     ` Viorel Suman (OSS)
2020-09-18 15:02       ` Viorel Suman (OSS)
2020-09-18 15:02       ` Viorel Suman (OSS)
2020-09-18 15:20       ` Mark Brown
2020-09-18 15:20         ` Mark Brown
2020-09-18 15:20         ` Mark Brown
2020-09-18 15:33         ` Viorel Suman (OSS)
2020-09-18 15:33           ` Viorel Suman (OSS)
2020-09-18 15:33           ` Viorel Suman (OSS)
2020-09-16  9:17 ` [PATCH 2/2] ASoC: dt-bindings: fsl_xcvr: Add document for XCVR Viorel Suman (OSS)
2020-09-16  9:17   ` Viorel Suman (OSS)
2020-09-18 17:23   ` Rob Herring
2020-09-18 17:23     ` Rob Herring
2020-09-18 17:23     ` Rob Herring
  -- strict thread matches above, loose matches on Subject: below --
2020-09-17  8:14 [PATCH 1/2] ASoC: fsl_xcvr: Add XCVR ASoC CPU DAI driver kernel test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.