linux/sound/soc/xilinx
Rosen Penev f12afefb7b
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: 6f6c3c36f0 ("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>
History 2026-08-11 15:41:29 +01:00
..
Kconfig ASoC: xilinx: Standardize ASoC menu 2025-06-24 01:01:33 +01:00
Makefile ASoC: xilinx: Use *-y instead of *-objs in Makefile 2024-05-08 11:39:38 +09:00
xlnx_formatter_pcm.c ASoC: xilinx: formatter_pcm: pass aud_drv_data to irq handlers 2026-08-11 15:41:29 +01:00
xlnx_i2s.c ASoC: xilinx: Add missing module descriptions 2024-05-08 20:51:12 +09:00
xlnx_spdif.c ASoC: xilinx: xlnx_spdif: Simpify using devm_clk_get_enabled() 2025-01-16 15:20:41 +00:00