Re: [PATCH] m68k: dmasound: Keep the Q40 IRQ handler registered

From: Takashi Iwai

Date: Tue Sep 29 2026 - 11:10:09 EST


On Tue, 29 Sep 2026 10:54:00 +0200,
Runyu Xiao wrote:
>
> Q40PlayNextFrame() re-registers the sample IRQ after stopping it. This
> function can be called with dmasound.lock held and from the sample IRQ
> handler, so free_irq() and request_irq() can sleep or deadlock. A failed
> re-registration can also leave playback without an IRQ.
>
> Register one handler for the lifetime of the driver and select mono or
> stereo sample handling inside that handler. Call the frame completion
> path after releasing dmasound.lock so it can refill the queue safely.
>
> Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2")
> Cc: stable@xxxxxxxxxxxxxxx
> Assisted-by: LLM
> Signed-off-by: Runyu Xiao <runyu.xiao@xxxxxxxxxx>

Applied to for-next branch. Thanks.


Takashi