]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ASoC: xilinx: formatter_pcm: pass aud_drv_data to irq handlers
authorRosen Penev <rosenp@gmail.com>
Thu, 6 Aug 2026 23:32:31 +0000 (16:32 -0700)
committerMark Brown <broonie@kernel.org>
Tue, 11 Aug 2026 14:41:29 +0000 (15:41 +0100)
commitf12afefb7b01f94d6d66d397f323a9914edbf70e
treec40f07468ad8bfd153aaf0be687eea8a3a711951
parent78983d82dc4c677c5cd2941ef828b1903ca51c9e
ASoC: xilinx: formatter_pcm: pass aud_drv_data to irq handlers

The irq handlers take a struct device pointer and call
dev_get_drvdata() to obtain the driver data.  However, the driver
data is only set at the end of probe, after devm_request_irq(),
so an interrupt taken in between causes the handlers to pass a
NULL pointer to readl() and crash.

Pass the private data directly as the devm_request_irq() argument
instead of the device pointer, matching what the handlers expect.

Fixes: 6f6c3c36f091 ("ASoC: xlnx: add pcm formatter platform driver")
Assisted-by: opencode:deepseek-v4-flash-free
Signed-off-by: Rosen Penev <rosenp@gmail.com>
Reviewed-by: Michal Simek <michal.simek@amd.com>
Link: https://patch.msgid.link/20260806233231.30631-1-rosenp@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/xilinx/xlnx_formatter_pcm.c