Linux-ARM-Kernel Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ASoC: uniphier: aio-dma: pass chip to irq handler
@ 2026-08-14 20:45 Rosen Penev
  2026-08-30 22:10 ` Mark Brown
  0 siblings, 1 reply; 2+ messages in thread
From: Rosen Penev @ 2026-08-14 20:45 UTC (permalink / raw)
  To: linux-sound
  Cc: Liam Girdwood, Mark Brown, Jaroslav Kysela, Takashi Iwai,
	Kunihiko Hayashi, Masami Hiramatsu,
	moderated list:ARM/UNIPHIER ARCHITECTURE, open list

The irq handler takes the platform device and calls
platform_get_drvdata() to recover the chip.  Pass the chip directly
as the devm_request_irq() argument instead, dropping the
platform_get_drvdata() call.

Assisted-by: opencode:deepseek-v4-flash-free
Signed-off-by: Rosen Penev <rosenp@gmail.com>
---
 sound/soc/uniphier/aio-dma.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/sound/soc/uniphier/aio-dma.c b/sound/soc/uniphier/aio-dma.c
index c01eae55d4fc..389a45319dfc 100644
--- a/sound/soc/uniphier/aio-dma.c
+++ b/sound/soc/uniphier/aio-dma.c
@@ -66,8 +66,7 @@ static void aiodma_compr_irq(struct uniphier_aio_sub *sub)
 
 static irqreturn_t aiodma_irq(int irq, void *p)
 {
-	struct platform_device *pdev = p;
-	struct uniphier_aio_chip *chip = platform_get_drvdata(pdev);
+	struct uniphier_aio_chip *chip = p;
 	irqreturn_t ret = IRQ_NONE;
 	int i, j;
 
@@ -263,7 +262,7 @@ int uniphier_aiodma_soc_register_platform(struct platform_device *pdev)
 		return irq;
 
 	ret = devm_request_irq(dev, irq, aiodma_irq,
-			       IRQF_SHARED, dev_name(dev), pdev);
+			       IRQF_SHARED, dev_name(dev), chip);
 	if (ret)
 		return ret;
 
-- 
2.55.0



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

* Re: [PATCH] ASoC: uniphier: aio-dma: pass chip to irq handler
  2026-08-14 20:45 [PATCH] ASoC: uniphier: aio-dma: pass chip to irq handler Rosen Penev
@ 2026-08-30 22:10 ` Mark Brown
  0 siblings, 0 replies; 2+ messages in thread
From: Mark Brown @ 2026-08-30 22:10 UTC (permalink / raw)
  To: linux-sound, Rosen Penev
  Cc: Liam Girdwood, Jaroslav Kysela, Takashi Iwai, Kunihiko Hayashi,
	Masami Hiramatsu, linux-arm-kernel, linux-kernel

On Fri, 14 Aug 2026 13:45:36 -0700, Rosen Penev wrote:
> ASoC: uniphier: aio-dma: pass chip to irq handler

Applied to

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

Thanks!

[1/1] ASoC: uniphier: aio-dma: pass chip to irq handler
      https://git.kernel.org/broonie/sound/c/a3521b02ff0e

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:[~2026-08-31 13:40 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-08-14 20:45 [PATCH] ASoC: uniphier: aio-dma: pass chip to irq handler Rosen Penev
2026-08-30 22:10 ` Mark Brown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox