From patchwork Thu Sep 8 21:44:35 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Patrick Scheuring X-Patchwork-Id: 9322153 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 7561B607D3 for ; Thu, 8 Sep 2016 21:44:57 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 66B2129A0A for ; Thu, 8 Sep 2016 21:44:57 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5951029A0C; Thu, 8 Sep 2016 21:44:57 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.4 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 668FA29A0B for ; Thu, 8 Sep 2016 21:44:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S938723AbcIHVoy (ORCPT ); Thu, 8 Sep 2016 17:44:54 -0400 Received: from mail-wm0-f65.google.com ([74.125.82.65]:33056 "EHLO mail-wm0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751672AbcIHVox (ORCPT ); Thu, 8 Sep 2016 17:44:53 -0400 Received: by mail-wm0-f65.google.com with SMTP id b187so81893wme.0; Thu, 08 Sep 2016 14:44:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=nxzXI5dfFt4GJ4xm2Y9hvaTtkdpi+mDSIj/fko9mv1g=; b=lE8RojgxUjq+X6V9mY3SNtG8qxTl32g1FESnIsz5jD8PEZQoVYLvBRG2Yuu2wheBim p+cmPbdfep1jENyS0tuE22wlAmGiQmvo5fYjSPDU6gK3p5y6aVFXrNgznB2juP/UveI8 /+kB/WNqvNYfYIagseSME2L2Sjuf0Mapd4YtbvIpWszPfyQs65u/P1ACpKSgu9Rfn1eM tIovb9Zui9Cui4wUeWxXHlgnY91ghFrrA27zigbaWPAypqQRIlxyu6A6HJ/TS0vei34N eFa4cExEEYGsp/OWtFlmhtmThZwlEhV5/5CvcEA/eeT+gZBHPH68GcbbLpa4t0X4OmRz Yl1w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=nxzXI5dfFt4GJ4xm2Y9hvaTtkdpi+mDSIj/fko9mv1g=; b=mlf0JdGrDKIKR5//yhthMbkXC5ou3ktLJ86iILY8AazdBElcKyk4lkesZeKiIicins 1wU+wtLPP2peuY2wEWn324AwRhNjaW3MtOYoj8a9+kgBYMsVa1T5QD6G/spUF6Yeg6lQ 7FlazcwdtcK9yWFpsWNk9pA1eoDRGZSqhK2BeswO5vhCX0La41zeiTewoc73V/d/jPWk +sKDg6nXD0ljsQSeirzYpE+jKk8/EsMmOH4z8eK3IwK5Kw57vrYI99BW3BJMaTUgEW2A hbl4QfSbOv17wVQomTSW3Q+AgLihA7mUy6ItbMY3t20yIXt59InNEINE7vRiUJqUHqx1 B0/g== X-Gm-Message-State: AE9vXwPo7Ht2Hx6okodfcji8bjW+XKYJxdsmxAY7Yqhw1+vHW+jLso9ZGgwaF4UuDDa9iA== X-Received: by 10.28.238.212 with SMTP id j81mr502786wmi.10.1473371091440; Thu, 08 Sep 2016 14:44:51 -0700 (PDT) Received: from pi-C504.home ([2a02:810d:91c0:1620:5103:2374:a21c:cadc]) by smtp.gmail.com with ESMTPSA id ub8sm94086wjc.39.2016.09.08.14.44.50 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 08 Sep 2016 14:44:51 -0700 (PDT) From: Patrick Scheuring X-Google-Original-From: Patrick Scheuring < patrick.scheuring.dev@gmail.com > To: dmitry.torokhov@gmail.com Cc: aurelien@francillon.net, linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, Patrick Scheuring Subject: [PATCH] Input: i8042 - add XMG C504 to keyboard reset table Date: Thu, 8 Sep 2016 23:44:35 +0200 Message-Id: <20160908214435.15972-1-patrick.scheuring.dev@gmail.com> X-Mailer: git-send-email 2.9.3 Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Patrick Scheuring The Schenker XMG C504 is a rebranded Gigabyte P35 v2 laptop. Therefore it also needs a keyboard reset to detect the Elantech touchpad. Otherwise the touchpad appears to be dead. With this patch the touchpad is detected: $ dmesg | grep -E "(i8042|Elantech|elantech)" [ 2.675399] i8042: PNP: PS/2 Controller [PNP0303:PS2K,PNP0f13:PS2M] at 0x60,0x64 irq 1,12 [ 2.680372] i8042: Attempting to reset device connected to KBD port [ 2.789037] serio: i8042 KBD port at 0x60,0x64 irq 1 [ 2.791586] serio: i8042 AUX port at 0x60,0x64 irq 12 [ 2.813840] input: AT Translated Set 2 keyboard as /devices/platform/i8042/serio0/input/input4 [ 3.811431] psmouse serio1: elantech: assuming hardware version 4 (with firmware version 0x361f0e) [ 3.825424] psmouse serio1: elantech: Synaptics capabilities query result 0x00, 0x15, 0x0f. [ 3.839424] psmouse serio1: elantech: Elan sample query result 03, 58, 74 [ 3.911349] input: ETPS/2 Elantech Touchpad as /devices/platform/i8042/serio1/input/input6 Signed-off-by: Patrick Scheuring --- drivers/input/serio/i8042-x86ia64io.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/drivers/input/serio/i8042-x86ia64io.h b/drivers/input/serio/i8042-x86ia64io.h index 68f5f4a..4187019 100644 --- a/drivers/input/serio/i8042-x86ia64io.h +++ b/drivers/input/serio/i8042-x86ia64io.h @@ -793,6 +793,13 @@ static const struct dmi_system_id __initconst i8042_dmi_kbdreset_table[] = { DMI_MATCH(DMI_PRODUCT_NAME, "P34"), }, }, + { + /* Schenker XMG C504 - Elantech touchpad */ + .matches = { + DMI_MATCH(DMI_SYS_VENDOR, "XMG"), + DMI_MATCH(DMI_PRODUCT_NAME, "C504"), + }, + }, { } };