From patchwork Mon Feb 10 03:46:08 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Aaron Ma X-Patchwork-Id: 1235609 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.ubuntu.com (client-ip=91.189.94.19; helo=huckleberry.canonical.com; envelope-from=kernel-team-bounces@lists.ubuntu.com; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=canonical.com Received: from huckleberry.canonical.com (huckleberry.canonical.com [91.189.94.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 48GBfH4FMbz9sRY; Mon, 10 Feb 2020 14:46:28 +1100 (AEDT) Received: from localhost ([127.0.0.1] helo=huckleberry.canonical.com) by huckleberry.canonical.com with esmtp (Exim 4.86_2) (envelope-from ) id 1j101d-0003QJ-6O; Mon, 10 Feb 2020 03:46:21 +0000 Received: from youngberry.canonical.com ([91.189.89.112]) by huckleberry.canonical.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1j101b-0003QC-Th for kernel-team@lists.ubuntu.com; Mon, 10 Feb 2020 03:46:19 +0000 Received: from [61.149.197.42] (helo=localhost.localdomain) by youngberry.canonical.com with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1j101a-0005Mb-QX for kernel-team@lists.ubuntu.com; Mon, 10 Feb 2020 03:46:19 +0000 From: Aaron Ma To: kernel-team@lists.ubuntu.com Subject: [PATCH 0/4] [SRU][B/OEM-B] Fix multitouch support on some devices Date: Mon, 10 Feb 2020 11:46:08 +0800 Message-Id: <20200210034612.3261-1-aaron.ma@canonical.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 X-BeenThere: kernel-team@lists.ubuntu.com X-Mailman-Version: 2.1.20 Precedence: list List-Id: Kernel team discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: kernel-team-bounces@lists.ubuntu.com Sender: "kernel-team" BugLink: https://bugs.launchpad.net/bugs/1862567 SRU justification: [Impact] Some LG touchscreens reported themselves as generic touch devices, actually it is multitouch devices. Even after adding IDs in hid-multitouch, hid-generic will bind the device still. multitouch features are not supported. [Fix] commit e04a0442 make hid-generic work nicely with other drivers like hid-multitouch. If other drivers match the devices, hid-generic will step back. This patch will benefit many devices to support their own drivers without adding IDs. [Test] Verified on LG/ELAN/RAYDIUM touchscreens with positive results. [Regression Potential] Medium. commit e04a0442 is included by 4.16 kernel, only bionic kernel should be applied. This commit is based on the other 3 patches, mostly changes are moving codes to hid-quirk.c. Backports are during to the other backports patches, these changes are moved to hid-quirk.c too. Benjamin Tissoires (4): HID: core: move the dynamic quirks handling in core HID: quirks: move the list of special devices into a quirk HID: core: move the list of ignored devices in hid-quirks.c HID: core: remove the absolute need of hid_have_special_driver[] drivers/hid/Makefile | 2 +- drivers/hid/hid-core.c | 951 ++--------------------- drivers/hid/hid-generic.c | 68 +- drivers/hid/hid-quirks.c | 1267 +++++++++++++++++++++++++++++++ drivers/hid/usbhid/Makefile | 2 +- drivers/hid/usbhid/hid-core.c | 10 +- drivers/hid/usbhid/hid-quirks.c | 405 ---------- include/linux/hid.h | 21 +- net/bluetooth/hidp/core.c | 2 +- 9 files changed, 1414 insertions(+), 1314 deletions(-) create mode 100644 drivers/hid/hid-quirks.c delete mode 100644 drivers/hid/usbhid/hid-quirks.c Acked-by: Sultan Alsawaf Acked-by: Kleber Sacilotto de Souza