diff options
author | Kevin Hao <haokexin@gmail.com> | 2007-10-02 16:56:04 -0400 |
---|---|---|
committer | David Woodhouse <dwmw2@infradead.org> | 2007-10-13 09:36:18 -0400 |
commit | c4a9f88daf6c382fedde4cdddef0b30f1d0a20db (patch) | |
tree | d2a3b5a336d55ce7c584eff43429662fb2c4c25d /include/linux/mtd | |
parent | f96880d1e859e3937eb691da8293700b8eec17b3 (diff) |
[MTD] [NOR] fix ctrl-alt-del can't reboot for intel flash bug
When we press ctrl-alt-del,kernel_restart_prepare will invoke
cfi_intelext_reboot which will set flash to read array mode, but later
when device_shutdown is invoked which may put current work queue to
sleep and other process may be scheduled to running and programming
flash in not FL_READY mode again. So we can't boot up if this flash is
used for bootloader.
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
Diffstat (limited to 'include/linux/mtd')
-rw-r--r-- | include/linux/mtd/flashchip.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/mtd/flashchip.h b/include/linux/mtd/flashchip.h index a293a3b78e05..39e7d2a1be9a 100644 --- a/include/linux/mtd/flashchip.h +++ b/include/linux/mtd/flashchip.h | |||
@@ -40,6 +40,7 @@ typedef enum { | |||
40 | FL_POINT, | 40 | FL_POINT, |
41 | FL_XIP_WHILE_ERASING, | 41 | FL_XIP_WHILE_ERASING, |
42 | FL_XIP_WHILE_WRITING, | 42 | FL_XIP_WHILE_WRITING, |
43 | FL_SHUTDOWN, | ||
43 | FL_UNKNOWN | 44 | FL_UNKNOWN |
44 | } flstate_t; | 45 | } flstate_t; |
45 | 46 | ||