The patch titled
     i386: fix reboot with no keyboard attached
has been added to the -mm tree.  Its filename is
     i386-fix-reboot-with-no-keyboard-attached.patch

*** Remember to use Documentation/SubmitChecklist when testing your code ***

See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find
out what to do about this

------------------------------------------------------
Subject: i386: fix reboot with no keyboard attached
From: Truxton Fulton <[EMAIL PROTECTED]>

Attempt to fix http://bugzilla.kernel.org/show_bug.cgi?id=8378

Hiroto Shibuya wrote to tell me that he has a VIA EPIA-EK10000 which
suffers from the reboot problem when no keyboard is attached.  My first
patch works for him:

  
http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=59f4e7d572980a521b7bdba74ab71b21f5995538

But the latest patch does not work for him :

  
http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=8b93789808756bcc1e5c90c99f1b1ef52f839a51

We found that it was necessary to also set the "disable keyboard" flag in
the command byte, as the first patch was doing.  The second patch tries to
minimally modify the command byte, but it is not enough.

Please consider this simple one-line patch to help people with low end VIA
motherboards reboot when no keyboard is attached.  Hiroto Shibuya has
verified that this works for him (as I no longer have an afflicted
machine).

Cc: Lee Garrett <[EMAIL PROTECTED]>
Cc: "Hiroto Shibuya" <[EMAIL PROTECTED]>
Cc: Natalie Protasevich <[EMAIL PROTECTED]>
Cc: Dmitry Torokhov <[EMAIL PROTECTED]>
Cc: Thomas Gleixner <[EMAIL PROTECTED]>
Cc: Ingo Molnar <[EMAIL PROTECTED]>
Cc: "H. Peter Anvin" <[EMAIL PROTECTED]>
Signed-off-by: Andrew Morton <[EMAIL PROTECTED]>
---

 include/asm-x86/mach-default/mach_reboot.h |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff -puN 
include/asm-x86/mach-default/mach_reboot.h~i386-fix-reboot-with-no-keyboard-attached
 include/asm-x86/mach-default/mach_reboot.h
--- 
a/include/asm-x86/mach-default/mach_reboot.h~i386-fix-reboot-with-no-keyboard-attached
+++ a/include/asm-x86/mach-default/mach_reboot.h
@@ -49,7 +49,7 @@ static inline void mach_reboot(void)
                udelay(50);
                kb_wait();
                udelay(50);
-               outb(cmd | 0x04, 0x60); /* set "System flag" */
+               outb(cmd | 0x14, 0x60); /* set "System flag" and "Keyboard 
Disabled" */
                udelay(50);
                kb_wait();
                udelay(50);
_

Patches currently in -mm which might be from [EMAIL PROTECTED] are

i386-fix-reboot-with-no-keyboard-attached.patch

-
To unsubscribe from this list: send the line "unsubscribe mm-commits" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to