linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH -next] ASoC: amd: acp5x-pcm-dma: Fix signedness bug
@ 2022-03-05 12:37 YueHaibing
  2022-03-08 17:20 ` Mark Brown
  0 siblings, 1 reply; 2+ messages in thread
From: YueHaibing @ 2022-03-05 12:37 UTC (permalink / raw)
  To: lgirdwood, broonie, perex, tiwai, Vijendar.Mukunda,
	pierre-louis.bossart, tangmeng
  Cc: alsa-devel, linux-kernel, YueHaibing

In acp5x_audio_probe() platform_get_irq() may return error, but i2s_irq now
is unsigned int so the error handling is never triggered.

Fixes: 87d71a128771 ("ASoC: amd: pcm-dma: Use platform_get_irq() to get the interrupt")
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
---
 sound/soc/amd/vangogh/acp5x.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sound/soc/amd/vangogh/acp5x.h b/sound/soc/amd/vangogh/acp5x.h
index b85d3ee369a3..bd9f1c5684d1 100644
--- a/sound/soc/amd/vangogh/acp5x.h
+++ b/sound/soc/amd/vangogh/acp5x.h
@@ -85,7 +85,7 @@
 struct i2s_dev_data {
 	bool tdm_mode;
 	bool master_mode;
-	unsigned int i2s_irq;
+	int i2s_irq;
 	u16 i2s_instance;
 	u32 tdm_fmt;
 	void __iomem *acp5x_base;
-- 
2.17.1


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

* Re: [PATCH -next] ASoC: amd: acp5x-pcm-dma: Fix signedness bug
  2022-03-05 12:37 [PATCH -next] ASoC: amd: acp5x-pcm-dma: Fix signedness bug YueHaibing
@ 2022-03-08 17:20 ` Mark Brown
  0 siblings, 0 replies; 2+ messages in thread
From: Mark Brown @ 2022-03-08 17:20 UTC (permalink / raw)
  To: tiwai, perex, tangmeng, YueHaibing, lgirdwood, Vijendar.Mukunda,
	pierre-louis.bossart
  Cc: linux-kernel, alsa-devel

On Sat, 5 Mar 2022 20:37:05 +0800, YueHaibing wrote:
> In acp5x_audio_probe() platform_get_irq() may return error, but i2s_irq now
> is unsigned int so the error handling is never triggered.
> 
> 

Applied to

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

Thanks!

[1/1] ASoC: amd: acp5x-pcm-dma: Fix signedness bug
      commit: 954e615497cc95cd918bdfe6590abdfbaa068842

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] 2+ messages in thread

end of thread, other threads:[~2022-03-08 17:24 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-03-05 12:37 [PATCH -next] ASoC: amd: acp5x-pcm-dma: Fix signedness bug YueHaibing
2022-03-08 17:20 ` 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).