I somehow let a whitespace-only change sneak into that diff.... This one should be better:

ff --git a/src/ps2port.c b/src/ps2port.c
index 58335af..4ed25bf 100644
--- a/src/ps2port.c
+++ b/src/ps2port.c
@@ -20,7 +20,7 @@
 // Timeout value.
 #define I8042_CTL_TIMEOUT       10000
 
-#define I8042_BUFFER_SIZE       16
+#define I8042_BUFFER_SIZE       256
 
 static int
 i8042_wait_read(void)
@@ -409,13 +409,17 @@ done:
 static void
 keyboard_init(void *data)
 {
+    int ret;
+    u8 param[2];
     /* flush incoming keys */
-    int ret = i8042_flush();
+    ret = ps2_kbd_command(ATKBD_CMD_RESET_BAT, param);
+    if (ret)
+        return;
+    ret = i8042_flush();
     if (ret)
         return;
 
     // Controller self-test.
-    u8 param[2];
     ret = i8042_command(I8042_CMD_CTL_TEST, param);
     if (ret)
         return;

_______________________________________________
SeaBIOS mailing list
[email protected]
http://www.seabios.org/mailman/listinfo/seabios

Reply via email to