linux-mediatek.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] ASoC: SOF: mediatek: Fix error code in probe
@ 2022-06-15  8:19 Dan Carpenter
  2022-06-15  9:52 ` Tinghan Shen
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Dan Carpenter @ 2022-06-15  8:19 UTC (permalink / raw)
  To: Pierre-Louis Bossart, Tinghan Shen
  Cc: Liam Girdwood, Ranjani Sridharan, Kai Vehmanen, Daniel Baluta,
	Mark Brown, Jaroslav Kysela, Takashi Iwai, Matthias Brugger,
	YC Hung, Péter Ujfalusi, Yang Yingliang, Allen-KH Cheng,
	sound-open-firmware, alsa-devel, linux-mediatek, kernel-janitors

This should return PTR_ERR() instead of IS_ERR().

Fixes: e0100bfd383c ("ASoC: SOF: mediatek: Add mt8186 ipc support")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
---
 sound/soc/sof/mediatek/mt8186/mt8186.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sound/soc/sof/mediatek/mt8186/mt8186.c b/sound/soc/sof/mediatek/mt8186/mt8186.c
index 3333a0634e29..e006532caf2f 100644
--- a/sound/soc/sof/mediatek/mt8186/mt8186.c
+++ b/sound/soc/sof/mediatek/mt8186/mt8186.c
@@ -392,7 +392,7 @@ static int mt8186_dsp_probe(struct snd_sof_dev *sdev)
 						      PLATFORM_DEVID_NONE,
 						      pdev, sizeof(*pdev));
 	if (IS_ERR(priv->ipc_dev)) {
-		ret = IS_ERR(priv->ipc_dev);
+		ret = PTR_ERR(priv->ipc_dev);
 		dev_err(sdev->dev, "failed to create mtk-adsp-ipc device\n");
 		goto err_adsp_off;
 	}
-- 
2.35.1


_______________________________________________
Linux-mediatek mailing list
Linux-mediatek@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-mediatek

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

* Re: [PATCH] ASoC: SOF: mediatek: Fix error code in probe
  2022-06-15  8:19 [PATCH] ASoC: SOF: mediatek: Fix error code in probe Dan Carpenter
@ 2022-06-15  9:52 ` Tinghan Shen
  2022-06-15 10:56 ` Pierre-Louis Bossart
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: Tinghan Shen @ 2022-06-15  9:52 UTC (permalink / raw)
  To: Dan Carpenter, Pierre-Louis Bossart
  Cc: Liam Girdwood, Ranjani Sridharan, Kai Vehmanen, Daniel Baluta,
	Mark Brown, Jaroslav Kysela, Takashi Iwai, Matthias Brugger,
	YC Hung, Péter Ujfalusi, Yang Yingliang, Allen-KH Cheng,
	sound-open-firmware, alsa-devel, linux-mediatek, kernel-janitors

Hi Dan,

On Wed, 2022-06-15 at 11:19 +0300, Dan Carpenter wrote:
> This should return PTR_ERR() instead of IS_ERR().
> 
> Fixes: e0100bfd383c ("ASoC: SOF: mediatek: Add mt8186 ipc support")
> Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
> ---
>  sound/soc/sof/mediatek/mt8186/mt8186.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/sound/soc/sof/mediatek/mt8186/mt8186.c b/sound/soc/sof/mediatek/mt8186/mt8186.c
> index 3333a0634e29..e006532caf2f 100644
> --- a/sound/soc/sof/mediatek/mt8186/mt8186.c
> +++ b/sound/soc/sof/mediatek/mt8186/mt8186.c
> @@ -392,7 +392,7 @@ static int mt8186_dsp_probe(struct snd_sof_dev *sdev)
>  						      PLATFORM_DEVID_NONE,
>  						      pdev, sizeof(*pdev));
>  	if (IS_ERR(priv->ipc_dev)) {
> -		ret = IS_ERR(priv->ipc_dev);
> +		ret = PTR_ERR(priv->ipc_dev);
>  		dev_err(sdev->dev, "failed to create mtk-adsp-ipc device\n");
>  		goto err_adsp_off;
>  	}

Thank you for finding this bug.


Best regards,
TingHan



_______________________________________________
Linux-mediatek mailing list
Linux-mediatek@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-mediatek

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

* Re: [PATCH] ASoC: SOF: mediatek: Fix error code in probe
  2022-06-15  8:19 [PATCH] ASoC: SOF: mediatek: Fix error code in probe Dan Carpenter
  2022-06-15  9:52 ` Tinghan Shen
@ 2022-06-15 10:56 ` Pierre-Louis Bossart
  2022-06-15 12:01 ` Péter Ujfalusi
  2022-06-15 17:08 ` Mark Brown
  3 siblings, 0 replies; 5+ messages in thread
From: Pierre-Louis Bossart @ 2022-06-15 10:56 UTC (permalink / raw)
  To: Dan Carpenter, Tinghan Shen
  Cc: alsa-devel, Allen-KH Cheng, Kai Vehmanen, Péter Ujfalusi,
	Takashi Iwai, kernel-janitors, Liam Girdwood, Yang Yingliang,
	Mark Brown, linux-mediatek, Ranjani Sridharan, YC Hung,
	Matthias Brugger, Daniel Baluta, sound-open-firmware



On 6/15/22 03:19, Dan Carpenter wrote:
> This should return PTR_ERR() instead of IS_ERR().
> 
> Fixes: e0100bfd383c ("ASoC: SOF: mediatek: Add mt8186 ipc support")
> Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>

Nice catch, thanks!

Acked-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>

> ---
>  sound/soc/sof/mediatek/mt8186/mt8186.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/sound/soc/sof/mediatek/mt8186/mt8186.c b/sound/soc/sof/mediatek/mt8186/mt8186.c
> index 3333a0634e29..e006532caf2f 100644
> --- a/sound/soc/sof/mediatek/mt8186/mt8186.c
> +++ b/sound/soc/sof/mediatek/mt8186/mt8186.c
> @@ -392,7 +392,7 @@ static int mt8186_dsp_probe(struct snd_sof_dev *sdev)
>  						      PLATFORM_DEVID_NONE,
>  						      pdev, sizeof(*pdev));
>  	if (IS_ERR(priv->ipc_dev)) {
> -		ret = IS_ERR(priv->ipc_dev);
> +		ret = PTR_ERR(priv->ipc_dev);
>  		dev_err(sdev->dev, "failed to create mtk-adsp-ipc device\n");
>  		goto err_adsp_off;
>  	}


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

* Re: [PATCH] ASoC: SOF: mediatek: Fix error code in probe
  2022-06-15  8:19 [PATCH] ASoC: SOF: mediatek: Fix error code in probe Dan Carpenter
  2022-06-15  9:52 ` Tinghan Shen
  2022-06-15 10:56 ` Pierre-Louis Bossart
@ 2022-06-15 12:01 ` Péter Ujfalusi
  2022-06-15 17:08 ` Mark Brown
  3 siblings, 0 replies; 5+ messages in thread
From: Péter Ujfalusi @ 2022-06-15 12:01 UTC (permalink / raw)
  To: Dan Carpenter, Pierre-Louis Bossart, Tinghan Shen
  Cc: alsa-devel, Allen-KH Cheng, Kai Vehmanen, Takashi Iwai,
	kernel-janitors, Liam Girdwood, Yang Yingliang, Mark Brown,
	linux-mediatek, Ranjani Sridharan, YC Hung, Matthias Brugger,
	Daniel Baluta, sound-open-firmware



On 15/06/2022 11:19, Dan Carpenter wrote:
> This should return PTR_ERR() instead of IS_ERR().

Acked-by: Peter Ujfalusi <peter.ujfalusi@linux.intel.com>

> Fixes: e0100bfd383c ("ASoC: SOF: mediatek: Add mt8186 ipc support")
> Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
> ---
>  sound/soc/sof/mediatek/mt8186/mt8186.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/sound/soc/sof/mediatek/mt8186/mt8186.c b/sound/soc/sof/mediatek/mt8186/mt8186.c
> index 3333a0634e29..e006532caf2f 100644
> --- a/sound/soc/sof/mediatek/mt8186/mt8186.c
> +++ b/sound/soc/sof/mediatek/mt8186/mt8186.c
> @@ -392,7 +392,7 @@ static int mt8186_dsp_probe(struct snd_sof_dev *sdev)
>  						      PLATFORM_DEVID_NONE,
>  						      pdev, sizeof(*pdev));
>  	if (IS_ERR(priv->ipc_dev)) {
> -		ret = IS_ERR(priv->ipc_dev);
> +		ret = PTR_ERR(priv->ipc_dev);
>  		dev_err(sdev->dev, "failed to create mtk-adsp-ipc device\n");
>  		goto err_adsp_off;
>  	}

-- 
Péter


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

* Re: [PATCH] ASoC: SOF: mediatek: Fix error code in probe
  2022-06-15  8:19 [PATCH] ASoC: SOF: mediatek: Fix error code in probe Dan Carpenter
                   ` (2 preceding siblings ...)
  2022-06-15 12:01 ` Péter Ujfalusi
@ 2022-06-15 17:08 ` Mark Brown
  3 siblings, 0 replies; 5+ messages in thread
From: Mark Brown @ 2022-06-15 17:08 UTC (permalink / raw)
  To: dan.carpenter, tinghan.shen, pierre-louis.bossart
  Cc: sound-open-firmware, daniel.baluta, kernel-janitors,
	linux-mediatek, tiwai, lgirdwood, perex, ranjani.sridharan,
	kai.vehmanen, yc.hung, matthias.bgg, Allen-KH.Cheng,
	peter.ujfalusi, yangyingliang, alsa-devel

On Wed, 15 Jun 2022 11:19:44 +0300, Dan Carpenter wrote:
> This should return PTR_ERR() instead of IS_ERR().
> 
> 

Applied to

   https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next

Thanks!

[1/1] ASoC: SOF: mediatek: Fix error code in probe
      commit: 62257638170eee07926c9df5a4c9059ec69a3734

All being well this means that it will be integrated into the linux-next
tree (usually sometime in the next 24 hours) and sent to Linus during
the next merge window (or sooner if it is a bug fix), however if
problems are discovered then the patch may be dropped or reverted.

You may get further e-mails resulting from automated or manual testing
and review of the tree, please engage with people reporting problems and
send followup patches addressing any issues that are reported if needed.

If any updates are required or you are submitting further changes they
should be sent as incremental updates against current git, existing
patches will not be replaced.

Please add any relevant lists and maintainers to the CCs when replying
to this mail.

Thanks,
Mark


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

end of thread, other threads:[~2022-06-15 17:09 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-15  8:19 [PATCH] ASoC: SOF: mediatek: Fix error code in probe Dan Carpenter
2022-06-15  9:52 ` Tinghan Shen
2022-06-15 10:56 ` Pierre-Louis Bossart
2022-06-15 12:01 ` Péter Ujfalusi
2022-06-15 17:08 ` Mark Brown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).