From patchwork Sun Jul 28 10:08:27 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mauro Carvalho Chehab X-Patchwork-Id: 2834686 Return-Path: X-Original-To: patchwork-linux-input@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id DD8F8C0319 for ; Sun, 28 Jul 2013 10:08:35 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 158DF2012E for ; Sun, 28 Jul 2013 10:08:35 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id D430320122 for ; Sun, 28 Jul 2013 10:08:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753332Ab3G1KId (ORCPT ); Sun, 28 Jul 2013 06:08:33 -0400 Received: from bombadil.infradead.org ([198.137.202.9]:54330 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753242Ab3G1KIc (ORCPT ); Sun, 28 Jul 2013 06:08:32 -0400 Received: from [177.143.133.66] (helo=localhost.localdomain) by bombadil.infradead.org with esmtpsa (Exim 4.80.1 #2 (Red Hat Linux)) id 1V3Ntv-000703-U7 for linux-input@vger.kernel.org; Sun, 28 Jul 2013 10:08:32 +0000 Date: Sun, 28 Jul 2013 07:08:27 -0300 From: Mauro Carvalho Chehab To: linux-input@vger.kernel.org Subject: [PATCH] Fix key release for Fn keys with Samsung series 5 ultra Message-ID: <20130728070827.32e7cd31@infradead.org> X-Mailer: Claws Mail 3.9.2 (GTK+ 2.24.19; x86_64-redhat-linux-gnu) Mime-Version: 1.0 X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org See http://www.infradead.org/rpr.html Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org X-Spam-Status: No, score=-8.4 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Samsung series 5 ultra notebooks don't produce release events for certain keys (Fn+F1, Fn+F11, Fn+F12 and Fn Lock). Add those keys at the release fixup table. Note: Fn Lock actually produces two scancodes: 0xa8 and 0xa9. Signed-off-by: Mauro Carvalho Chehab Cheers, Mauro --- To unsubscribe from this list: send the line "unsubscribe linux-input" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/drivers/input/keyboard/atkbd.c b/drivers/input/keyboard/atkbd.c index 2626773..90c3113 100644 --- a/drivers/input/keyboard/atkbd.c +++ b/drivers/input/keyboard/atkbd.c @@ -943,6 +943,13 @@ static unsigned int atkbd_samsung_forced_release_keys[] = { }; /* + * Samsung 530U3C/530U4C/532U3C/540U3C Fn release keys not working + */ +static unsigned int atkbd_samsung_ultra_forced_release_keys[] = { + 0xa8, 0xa9, 0xb3, 0xce, 0xd5, -1U +}; + +/* * Amilo Pi 3525 key release for Fn+Volume keys not working */ static unsigned int atkbd_amilo_pi3525_forced_release_keys[] = { @@ -1732,6 +1739,15 @@ static const struct dmi_system_id atkbd_dmi_quirk_table[] __initconst = { .driver_data = atkbd_samsung_forced_release_keys, }, { + /* Samsung series 5 Ultra (530U3C/530U4C/532U3C/540U3C) */ + .matches = { + DMI_MATCH(DMI_SYS_VENDOR, "SAMSUNG ELECTRONICS CO., LTD."), + DMI_MATCH(DMI_PRODUCT_NAME, "530U3C"), + }, + .callback = atkbd_setup_forced_release, + .driver_data = atkbd_samsung_ultra_forced_release_keys, + }, + { /* Fujitsu Amilo PA 1510 */ .matches = { DMI_MATCH(DMI_SYS_VENDOR, "FUJITSU SIEMENS"),