From patchwork Mon Oct 3 18:18:28 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matti Kurkela X-Patchwork-Id: 9360787 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 476B2601C0 for ; Mon, 3 Oct 2016 18:28:33 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 248A6287CB for ; Mon, 3 Oct 2016 18:28:33 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 170AD288E3; Mon, 3 Oct 2016 18:28:33 +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=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI 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 06FDF287CB for ; Mon, 3 Oct 2016 18:28:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752597AbcJCS2a (ORCPT ); Mon, 3 Oct 2016 14:28:30 -0400 Received: from sirokuusama2.dnainternet.net ([83.102.40.153]:38513 "EHLO sirokuusama2.dnainternet.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752514AbcJCS23 (ORCPT ); Mon, 3 Oct 2016 14:28:29 -0400 X-Greylist: delayed 594 seconds by postgrey-1.27 at vger.kernel.org; Mon, 03 Oct 2016 14:28:29 EDT Received: from localhost (localhost [127.0.0.1]) by sirokuusama2.dnainternet.net (Postfix) with ESMTP id AACD31242; Mon, 3 Oct 2016 21:18:32 +0300 (EEST) X-Virus-Scanned: DNA Internet at dnainternet.net Received: from sirokuusama2.dnainternet.net ([83.102.40.153]) by localhost (sirokuusama2.dnainternet.net [127.0.0.1]) (DNA Internet, port 10040) with ESMTP id SlxVqvyNytMm; Mon, 3 Oct 2016 21:18:32 +0300 (EEST) Received: from oliivipuu2.dnainternet.net (oliivipuu2.dnainternet.net [83.102.40.53]) by sirokuusama2.dnainternet.net (Postfix) with ESMTP id 66D3312AA; Mon, 3 Oct 2016 21:18:32 +0300 (EEST) Received: from 82-181-179-138.bb.dnainternet.fi (81-175-215-94.bb.dnainternet.fi [81.175.215.94]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by oliivipuu2.dnainternet.net (Postfix) with ESMTPS id C55587B; Mon, 3 Oct 2016 21:18:28 +0300 (EEST) Received: by 82-181-179-138.bb.dnainternet.fi (Postfix, from userid 1000) id 4AA868C3; Mon, 3 Oct 2016 21:18:28 +0300 (EEST) Received: from localhost (localhost [127.0.0.1]) by 82-181-179-138.bb.dnainternet.fi (Postfix) with ESMTP id 4371F36E; Mon, 3 Oct 2016 21:18:28 +0300 (EEST) Date: Mon, 3 Oct 2016 21:18:28 +0300 (EEST) From: Matti Kurkela To: dmitry.torokhov@gmail.com cc: linux-input@vger.kernel.org, linux-kernel@vger.kernel.org Subject: input: elantech - force needed quirks on Fujitsu H760 Message-ID: User-Agent: Alpine 2.11 (DEB 23 2013-08-11) MIME-Version: 1.0 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 Just like Fujitsu CELSIUS H730, the H760 also has an Elantech touchpad with the same quirks. Without this patch, the touchpad is useless out-of-the-box as the mouse pointer won't move. This patch makes the driver aware of both the crc_enabled=1 requirement and the middle button, making the touchpad fully functional out-of-the-box. Signed-off-by: Matti Kurkela --- This patch will also apply without changes to older kernel versions: I made this originally on 4.4.19 and am currently using it on my work laptop with 4.4.22. Backporting to any version that includes commit f386474e12a560e005ec7899e78f51f6bdc3cf41 should be trivial. -- 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 --- linux-4.8/drivers/input/mouse/elantech.c.orig 2016-10-03 02:24:33.000000000 +0300 +++ linux-4.8/drivers/input/mouse/elantech.c 2016-10-03 20:19:17.175141070 +0300 @@ -1159,6 +1159,13 @@ static const struct dmi_system_id elante DMI_MATCH(DMI_PRODUCT_NAME, "CELSIUS H730"), }, }, + { + /* Fujitsu H760 also has a middle button */ + .matches = { + DMI_MATCH(DMI_SYS_VENDOR, "FUJITSU"), + DMI_MATCH(DMI_PRODUCT_NAME, "CELSIUS H760"), + }, + }, #endif { } }; @@ -1503,6 +1510,13 @@ static const struct dmi_system_id elante }, }, { + /* Fujitsu H760 does not work with crc_enabled == 0 */ + .matches = { + DMI_MATCH(DMI_SYS_VENDOR, "FUJITSU"), + DMI_MATCH(DMI_PRODUCT_NAME, "CELSIUS H760"), + }, + }, + { /* Fujitsu LIFEBOOK E554 does not work with crc_enabled == 0 */ .matches = { DMI_MATCH(DMI_SYS_VENDOR, "FUJITSU"),