mirror of
https://github.com/openwrt/openwrt.git
synced 2025-02-18 16:40:29 +00:00
bcm53xx: make NAND flash timeouts non-interruptible to fix corruption issues
Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 45464
This commit is contained in:
parent
93fb3cac1b
commit
f6cbbe1332
@ -662,7 +662,7 @@
|
|||||||
+ if (irq_off != NANDC_IRQ_CONTROLLER_RDY ||
|
+ if (irq_off != NANDC_IRQ_CONTROLLER_RDY ||
|
||||||
+ 0 == bcmnand_reg_aread(ctrl, NANDC_IDM_IO_CTRL_RDY)) {
|
+ 0 == bcmnand_reg_aread(ctrl, NANDC_IDM_IO_CTRL_RDY)) {
|
||||||
+
|
+
|
||||||
+ timeout_jiffies = wait_for_completion_interruptible_timeout(
|
+ timeout_jiffies = wait_for_completion_timeout(
|
||||||
+ &ctrl->op_completion, timeout_jiffies);
|
+ &ctrl->op_completion, timeout_jiffies);
|
||||||
+
|
+
|
||||||
+ if (timeout_jiffies < 0)
|
+ if (timeout_jiffies < 0)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user