[PATCH] mtd: rawnand: brcmnand: skip DMA during panic write
Florian Fainelli
florian.fainelli at broadcom.com
Thu Mar 5 15:12:40 PST 2026
On 3/5/26 12:21, Kamal Dasu wrote:
> When oops_panic_write is set, the driver disables interrupts and
> switches to PIO polling mode but still falls through into the DMA
> path. DMA cannot be used reliably in panic context, so make the
> DMA path an else branch to ensure only PIO is used during panic
> writes.
>
> Fixes: c1ac2dc34b51 ("mtd: rawnand: brcmnand: When oops in progress use pio and interrupt polling")
> Signed-off-by: Kamal Dasu <kamal.dasu at broadcom.com>
Reviewed-by: Florian Fainelli <florian.fainelli at broadcom.com>
--
Florian
More information about the linux-mtd
mailing list