Re: [PATCH] soundwire: fail slave probe if IRQ cleanup cannot be registered
From: Jizhou Tong
Date: Mon Nov 30 2026 - 23:09:16 EST
Hi Jiawen, Pierre-Louis and Charles,
Thanks, Jiawen. This covers the probe issue from my RFC. I agree with
the explicit dispose on devm_add_action() failure. Keeping IRQ 0 usable
also preserves the CS35L56 probe path.
Pierre-Louis, I checked CS35L56 on afd88e7ad781. On remove it masks the
source, reads and clears the latched status, then frees the codec IRQ.
The outstanding case is a manager thread that has already sampled
SDW_SCP_INT1_IMPL_DEF. The bus dispatches the domain IRQ before checking
slave->probed. Masking prevents new events, and free_irq() waits for a
running handler, but neither drains a pending dispatch that has already
read the IRQ number. Clearing slave->irq on release helps later readers.
That's the mapping lifetime I was trying to protect. The codec's
disable_irq_lock covers codec-local state. I haven't seen this race on
hardware, and I think Jiawen's probe fix can go ahead independently.
Thanks,
Jizhou