Re: [PATCH] mtd: rawnand: r852: prevent card work from being requeued during shutdown

From: Miquel Raynal

Date: Fri Nov 20 2026 - 10:08:11 EST


On Sun, 08 Nov 2026 14:04:21 -0700, James Hilliard wrote:
> The card interrupt can queue card_detect_work after shutdown cancels it
> but before interrupts are disabled. The worker can then access the
> controller after pci_disable_device(), and can enable card interrupts
> again while processing the event.
>
> Disable and drain the delayed work before turning off interrupts and the
> PCI device. Later queue attempts are rejected while the IRQ handler can
> still acknowledge events until interrupt teardown completes.
>
> [...]

Applied to nand/next, thanks!

[1/1] mtd: rawnand: r852: prevent card work from being requeued during shutdown
commit: ec1e844b9486302a488abc03ea918db60709766e

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