Gitweb: http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=a546b0ac5988348446e4fd5987df699b4c9b1f2a Commit: a546b0ac5988348446e4fd5987df699b4c9b1f2a Parent: 7cc1c4b2c44d7807f55da6a36f5b2e49977c67b7 Author: Michael Hennerich <[EMAIL PROTECTED]> AuthorDate: Mon Dec 24 20:19:51 2007 +0800 Committer: Bryan Wu <[EMAIL PROTECTED]> CommitDate: Mon Dec 24 20:19:51 2007 +0800
[Blackfin] arch: Fix BUG - kernel sometimes would stuck with KEYBOARD_GPIO on Make sure the SYSTEM reset completes before we issue the CORE reset Signed-off-by: Michael Hennerich <[EMAIL PROTECTED]> Signed-off-by: Bryan Wu <[EMAIL PROTECTED]> --- arch/blackfin/kernel/reboot.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/arch/blackfin/kernel/reboot.c b/arch/blackfin/kernel/reboot.c index ae28aac..06501a5 100644 --- a/arch/blackfin/kernel/reboot.c +++ b/arch/blackfin/kernel/reboot.c @@ -34,9 +34,11 @@ void bfin_reset(void) while (1) { /* initiate system soft reset with magic 0x7 */ bfin_write_SWRST(0x7); + bfin_read_SWRST(); asm("ssync;"); /* clear system soft reset */ bfin_write_SWRST(0); + bfin_read_SWRST(); asm("ssync;"); /* issue core reset */ asm("raise 1"); - To unsubscribe from this list: send the line "unsubscribe git-commits-head" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html