Re: [PATCH v2] mtd: rawnand: atmel: keep the HSMC clock on until the NFC IRQ is freed
From: Miquel Raynal
Date: Fri Dec 04 2026 - 16:34:00 EST
On Fri, 20 Nov 2026 09:00:53 -0700, James Hilliard wrote:
> When the Atmel NAND driver is unbound on a system using the legacy DT
> binding, another device on the shared interrupt line can still cause the
> NFC handler to read registers after the HSMC clock has been disabled.
> The remove callback turns off the clock, but devres releases the IRQ
> only after the callback returns.
>
> Register a clock cleanup action before requesting the IRQ. Devres then
> drains the handler before disabling and releasing the clock, both on
> removal and when probe fails after requesting the IRQ.
>
> [...]
Applied to nand/next, thanks!
[1/1] mtd: rawnand: atmel: keep the HSMC clock on until the NFC IRQ is freed
commit: 9ac2b2ea83e06e586341c94bb7f41765db7d623f
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