]> git.baikalelectronics.ru Git - kernel.git/commit
[MTD] [NOR] fix ctrl-alt-del can't reboot for intel flash bug
authorKevin Hao <haokexin@gmail.com>
Tue, 2 Oct 2007 20:56:04 +0000 (13:56 -0700)
committerDavid Woodhouse <dwmw2@infradead.org>
Sat, 13 Oct 2007 13:36:18 +0000 (14:36 +0100)
commit357366c9caab6929fb74acb5cce073bc10b7d3f8
treed2a3b5a336d55ce7c584eff43429662fb2c4c25d
parent1d569e4b04e2e4e8e711f1d8cbc0080d265d6a1e
[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>
drivers/mtd/chips/cfi_cmdset_0001.c
include/linux/mtd/flashchip.h