From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:55089) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aicB9-0006y8-NI for qemu-devel@nongnu.org; Wed, 23 Mar 2016 02:22:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aicB6-00009i-Fa for qemu-devel@nongnu.org; Wed, 23 Mar 2016 02:22:03 -0400 From: =?UTF-8?q?Herv=C3=A9=20Poussineau?= Date: Wed, 23 Mar 2016 07:21:40 +0100 Message-Id: <1458714100-28885-1-git-send-email-hpoussin@reactos.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: [Qemu-devel] [PATCH] ps2kbd: default to scancode_set 2, as with KBD_CMD_RESET List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: qemu-trivial@nongnu.org, Paolo Bonzini , =?UTF-8?q?Herv=C3=A9=20Poussineau?= , Eduardo Habkost , Richard Henderson This line has been added in commit ef74679a810fe6858f625b9d52b68cc3fc61eb= 3d with other initializations. However, scancode set 0 doesn't exist (only 1, 2, = 3). This works well as long as operating system is resetting keyboard, or ove= rwriting the current scancode set with the one it wants. This fixes IBM 40p firmware, which doesn't bother sending KBD_CMD_RESET o= r KBD_CMD_SCANCODE. Signed-off-by: Herv=C3=A9 Poussineau --- hw/input/ps2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/input/ps2.c b/hw/input/ps2.c index 58892d5..a8aa36f 100644 --- a/hw/input/ps2.c +++ b/hw/input/ps2.c @@ -628,7 +628,7 @@ static void ps2_kbd_reset(void *opaque) ps2_common_reset(&s->common); s->scan_enabled =3D 0; s->translate =3D 0; - s->scancode_set =3D 0; + s->scancode_set =3D 2; } =20 static void ps2_mouse_reset(void *opaque) --=20 2.1.4