From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?UTF-8?B?TWljaGHFgg==?= Pecio Subject: [PATCH] input: libps2: add ID of IBM terminal keyboards Date: Mon, 14 Oct 2013 20:49:17 +0200 Message-ID: <20131014204917.23564874@gmail.com> References: <20120907204510.74418ae7@students.mimuw.edu.pl> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Return-path: Received: from mail-ea0-f171.google.com ([209.85.215.171]:55391 "EHLO mail-ea0-f171.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755590Ab3JNSt1 (ORCPT ); Mon, 14 Oct 2013 14:49:27 -0400 Received: by mail-ea0-f171.google.com with SMTP id n15so3601052ead.16 for ; Mon, 14 Oct 2013 11:49:26 -0700 (PDT) In-Reply-To: <20120907204510.74418ae7@students.mimuw.edu.pl> Sender: linux-input-owner@vger.kernel.org List-Id: linux-input@vger.kernel.org To: Dmitry Torokhov Cc: linux-input@vger.kernel.org From: Michal Pecio Keyboards of several IBM terminals from 1980's and 1990's are compatible with the PS/2 protocol. Add their ID (0xBF) to the whitelist of supported keyboards. Only untranslated ID needs to be added because atkbd doesn't support translated scancode set 3 anyway. Signed-off-by: Michal Pecio --- drivers/input/serio/libps2.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/input/serio/libps2.c b/drivers/input/serio/libps2.c index 07a8363..f946544 100644 --- a/drivers/input/serio/libps2.c +++ b/drivers/input/serio/libps2.c @@ -114,6 +114,7 @@ int ps2_is_keyboard_id(char id_byte) 0x5d, /* Trust keyboard */ 0x60, /* NMB SGI keyboard, translated */ 0x47, /* NMB SGI keyboard */ + 0xbf, /* IBM terminal keyboards */ }; return memchr(keyboard_ids, id_byte, sizeof(keyboard_ids)) != NULL;