Re: [PATCH v2] mtd: rawnand: tegra: drain the IRQ before disabling the clock

From: Miquel Raynal

Date: Fri Dec 04 2026 - 16:34:38 EST


On Sun, 29 Nov 2026 00:56:38 -0700, James Hilliard wrote:
> On unbind or a late probe failure, the NAND clock is disabled before
> devres releases the IRQ. The handler signals command and DMA completion
> before its final write to the interrupt-status register, so it can still
> access the controller after the clock has stopped.
>
> Register the runtime PM cleanup before requesting the IRQ. Devres then
> frees the exclusive IRQ and waits for any running handler before dropping
> the PM reference, on both removal and probe failure.
>
> [...]

Applied to nand/next, thanks!

[1/1] mtd: rawnand: tegra: drain the IRQ before disabling the clock
commit: d12bef3b9649bfe73cbd250c3a7a3764835abe8f

Patche(s) should be available on mtd/linux.git and will be
part of the next PR (provided that no robot complains by then).

Kind regards,
Miquèl