Received: by 10.223.185.116 with SMTP id b49csp2207857wrg; Thu, 15 Feb 2018 08:07:16 -0800 (PST) X-Google-Smtp-Source: AH8x226dK6iqK7ncttLa/27mltQQPFlp2FHw87NXU+ZVVG6MOYVVlW4Np708pgZm5drfCYaad3a8 X-Received: by 2002:a17:902:9342:: with SMTP id g2-v6mr3000764plp.34.1518710836639; Thu, 15 Feb 2018 08:07:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518710836; cv=none; d=google.com; s=arc-20160816; b=CLAaA3+qjXiDZWdddSkjhmvK6EaVCgKYVvwrYi+eg0RV0Xq2eO/mJ6QeAfphZiyNau qgmDJOZ8I71GKjhW0WLpb5JtnAK7qBlCbOCZ5bXsXipT9LTQ7JRhzCGUXAiTWseInKN/ M3JCAOD2bQDGusEstVzLxXRMN5buRBWTdnO8qlAwPB4TVtqQ7HYVf0rkT8f8ywnf6MED uVyHKClUXgEWTATrsGRI1+g1jiwaX+33pz78o4XiW8Iv8HLlNWm2KS4ha0N7wJjbMMC+ c6xfcSbiKexdQ67OLNnQEkH4LfCbbnoeg/KI7xXM9WzkA9PXG+FL4pUEW0d6VVmlgST4 RjtA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=3k7PTG5q5ZLe3i5k55Z2q2qQ+VRFuRqHlGewlwKxF9E=; b=MLBoHhnm1Jy/wri/DoalBJqCQs7OULgRAxwEMlcgepeSWqqi+2gmRp+4cDAKKwYyuU yzDbZuq9L7uHWwKNB2+/I7bmUMQXUMmjB2SAgpnZ9Fwlf7bO26oCRM5dLe4G3a4v2g0u 6ozSNQKPjtP60xf5qKP9URf3bpRVPZGs2wh5WMDJdT6+RHhB2FNm9Dl/WN7O29ed8Sdi c94HhU9LYjpsnvVWJ460LzhnfSLlaChqxNQKBmEd9EHigPV/eAjN1zn4AsTWl+Y71/iA 5/hwo0AkPiElwm+PodzzXI8uT4NSOwIdy1xoqj/ThUlpeIU46TtL5rT7xyHSifNu+n2X mKCg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d8si1578642pgc.583.2018.02.15.08.06.48; Thu, 15 Feb 2018 08:07:16 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1424632AbeBOPqM (ORCPT + 99 others); Thu, 15 Feb 2018 10:46:12 -0500 Received: from mail.linuxfoundation.org ([140.211.169.12]:35228 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1424599AbeBOPqE (ORCPT ); Thu, 15 Feb 2018 10:46:04 -0500 Received: from localhost (LFbn-1-12258-90.w90-92.abo.wanadoo.fr [90.92.71.90]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id DC21311D8; Thu, 15 Feb 2018 15:46:03 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Hans de Goede , Jiri Kosina Subject: [PATCH 4.15 161/202] HID: quirks: Fix keyboard + touchpad on Toshiba Click Mini not working Date: Thu, 15 Feb 2018 16:17:41 +0100 Message-Id: <20180215151721.304163229@linuxfoundation.org> X-Mailer: git-send-email 2.16.1 In-Reply-To: <20180215151712.768794354@linuxfoundation.org> References: <20180215151712.768794354@linuxfoundation.org> User-Agent: quilt/0.65 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.15-stable review patch. If anyone has any objections, please let me know. ------------------ From: Hans de Goede commit edfc3722cfef4217c7fe92b272cbe0288ba1ff57 upstream. The Toshiba Click Mini uses an i2c attached keyboard/touchpad combo (single i2c_hid device for both) which has a vid:pid of 04F3:0401, which is also used by a bunch of Elan touchpads which are handled by the drivers/input/mouse/elan_i2c driver, but that driver deals with pure touchpads and does not work for a combo device such as the one on the Toshiba Click Mini. The combo on the Mini has an ACPI id of ELAN0800, which is not claimed by the elan_i2c driver, so check for that and if it is found do not ignore the device. This fixes the keyboard/touchpad combo on the Mini not working (although with the touchpad in mouse emulation mode). Signed-off-by: Hans de Goede Signed-off-by: Jiri Kosina Signed-off-by: Greg Kroah-Hartman --- drivers/hid/hid-core.c | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) --- a/drivers/hid/hid-core.c +++ b/drivers/hid/hid-core.c @@ -2643,7 +2643,6 @@ static const struct hid_device_id hid_ig { HID_USB_DEVICE(USB_VENDOR_ID_DELORME, USB_DEVICE_ID_DELORME_EARTHMATE) }, { HID_USB_DEVICE(USB_VENDOR_ID_DELORME, USB_DEVICE_ID_DELORME_EM_LT20) }, { HID_I2C_DEVICE(USB_VENDOR_ID_ELAN, 0x0400) }, - { HID_I2C_DEVICE(USB_VENDOR_ID_ELAN, 0x0401) }, { HID_USB_DEVICE(USB_VENDOR_ID_ESSENTIAL_REALITY, USB_DEVICE_ID_ESSENTIAL_REALITY_P5) }, { HID_USB_DEVICE(USB_VENDOR_ID_ETT, USB_DEVICE_ID_TC5UH) }, { HID_USB_DEVICE(USB_VENDOR_ID_ETT, USB_DEVICE_ID_TC4UM) }, @@ -2913,6 +2912,17 @@ bool hid_ignore(struct hid_device *hdev) strncmp(hdev->name, "www.masterkit.ru MA901", 22) == 0) return true; break; + case USB_VENDOR_ID_ELAN: + /* + * Many Elan devices have a product id of 0x0401 and are handled + * by the elan_i2c input driver. But the ACPI HID ELAN0800 dev + * is not (and cannot be) handled by that driver -> + * Ignore all 0x0401 devs except for the ELAN0800 dev. + */ + if (hdev->product == 0x0401 && + strncmp(hdev->name, "ELAN0800", 8) != 0) + return true; + break; } if (hdev->type == HID_TYPE_USBMOUSE &&