mtd: rawnand: brcmnand: When oops in progress use pio and interrupt polling
authorKamal Dasu <kdasu.kdev@gmail.com>
Thu, 16 May 2019 16:41:47 +0000 (12:41 -0400)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Thu, 27 Jun 2019 18:06:40 +0000 (20:06 +0200)
commitc1ac2dc34b51a9d2191067bbf2aebc8e8ddada70
tree40670febf23c30c78e86936a4be58d71be1d5545
parent9f897bfdd89f5f08a12fa263a7f57fbf8ad9292f
mtd: rawnand: brcmnand: When oops in progress use pio and interrupt polling

If mtd_oops is in progress, switch to polling during NAND command
completion instead of relying on DMA/interrupts so that the mtd_oops
buffer can be completely written in the assigned NAND partition.

Signed-off-by: Kamal Dasu <kdasu.kdev@gmail.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
drivers/mtd/nand/raw/brcmnand/brcmnand.c