mvebu: prevent crash in the flash driver in case of a spurious interrupt
authorFelix Fietkau <nbd@nbd.name>
Sat, 21 May 2016 13:16:09 +0000 (15:16 +0200)
committerFelix Fietkau <nbd@nbd.name>
Sat, 21 May 2016 13:16:38 +0000 (15:16 +0200)
Signed-off-by: Felix Fietkau <nbd@nbd.name>
target/linux/mvebu/patches-4.4/103-remove-nand-driver-bug.patch [new file with mode: 0644]

diff --git a/target/linux/mvebu/patches-4.4/103-remove-nand-driver-bug.patch b/target/linux/mvebu/patches-4.4/103-remove-nand-driver-bug.patch
new file mode 100644 (file)
index 0000000..e9cc027
--- /dev/null
@@ -0,0 +1,13 @@
+Remove a BUG() call that would crash on a race condition that should
+otherwise be harmless.
+
+--- a/drivers/mtd/nand/pxa3xx_nand.c
++++ b/drivers/mtd/nand/pxa3xx_nand.c
+@@ -701,7 +701,6 @@ static void handle_data_pio(struct pxa3x
+       default:
+               dev_err(&info->pdev->dev, "%s: invalid state %d\n", __func__,
+                               info->state);
+-              BUG();
+       }
+       /* Update buffer pointers for multi-page read/write */