]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
mtd: rawnand: brcmnand: skip DMA during panic write
authorKamal Dasu <kamal.dasu@broadcom.com>
Thu, 5 Mar 2026 20:21:57 +0000 (15:21 -0500)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Wed, 11 Mar 2026 15:32:40 +0000 (16:32 +0100)
commitda9ba4dcc01e7cf52b7676f0ee9607b8358c2171
treee37e5c109d8e0931a793d4af286e667a6b17321e
parentbab2bc6e850a697a23b9e5f0e21bb8c187615e95
mtd: rawnand: brcmnand: skip DMA during panic write

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@broadcom.com>
Reviewed-by: William Zhang <william.zhang@broadcom.com>
Reviewed-by: Florian Fainelli <florian.fainelli@broadcom.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
drivers/mtd/nand/raw/brcmnand/brcmnand.c