mtd: rawnand: marvell: Support panic_write for mtdoops
authorChris Packham <chris.packham@alliedtelesis.co.nz>
Fri, 28 Aug 2020 01:12:37 +0000 (13:12 +1200)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Wed, 30 Sep 2020 14:44:16 +0000 (16:44 +0200)
commit85a3ebbb7fe869188644498c49bf3719d9cb054d
tree88b0b7440e5e82121feecde4d77ed538096e4912
parent302d8a2288529c44401d946de09526009e4f7124
mtd: rawnand: marvell: Support panic_write for mtdoops

Under a panic context we can't get an interrupt. Actively poll for the
RB status when performing a panic_write.

Signed-off-by: Chris Packham <chris.packham@alliedtelesis.co.nz>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/20200828011237.22066-1-chris.packham@alliedtelesis.co.nz
drivers/mtd/nand/raw/marvell_nand.c