From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:45421) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aoD8t-0003Xw-AA for qemu-devel@nongnu.org; Thu, 07 Apr 2016 12:50:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aoD8r-0001YW-Mm for qemu-devel@nongnu.org; Thu, 07 Apr 2016 12:50:51 -0400 Received: from mx1.redhat.com ([209.132.183.28]:39651) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aoD8r-0001YR-H2 for qemu-devel@nongnu.org; Thu, 07 Apr 2016 12:50:49 -0400 From: Paolo Bonzini Date: Thu, 7 Apr 2016 18:50:31 +0200 Message-Id: <1460047845-14488-2-git-send-email-pbonzini@redhat.com> In-Reply-To: <1460047845-14488-1-git-send-email-pbonzini@redhat.com> References: <1460047845-14488-1-git-send-email-pbonzini@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: [Qemu-devel] [PULL 01/15] 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: =?UTF-8?q?Herv=C3=A9=20Poussineau?= From: Herv=C3=A9 Poussineau 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=83=C2=A9 Poussineau Message-Id: <1458714100-28885-1-git-send-email-hpoussin@reactos.org> Signed-off-by: Paolo Bonzini --- 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.5.5