From patchwork Mon Mar 8 17:41:48 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?0L3QsNCx?= X-Patchwork-Id: 12123083 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-10.1 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0D8A2C433E6 for ; Mon, 8 Mar 2021 17:42:50 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id BEA87652AD for ; Mon, 8 Mar 2021 17:42:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230075AbhCHRmQ (ORCPT ); Mon, 8 Mar 2021 12:42:16 -0500 Received: from [139.28.40.42] ([139.28.40.42]:54246 "EHLO tarta.nabijaczleweli.xyz" rhost-flags-FAIL-FAIL-OK-OK) by vger.kernel.org with ESMTP id S229650AbhCHRlx (ORCPT ); Mon, 8 Mar 2021 12:41:53 -0500 Received: from tarta.nabijaczleweli.xyz (unknown [192.168.1.250]) by tarta.nabijaczleweli.xyz (Postfix) with ESMTPSA id A69BF360009; Mon, 8 Mar 2021 18:41:49 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=nabijaczleweli.xyz; s=202006; t=1615225309; bh=WM/er/09msN1vhiF5jfwRbeNISZL5mlxkqvwhWf+jfU=; h=Date:From:Cc:Subject:From; b=ViTK9v5qPOquowA7WXNujmklDScXpjSOKPhUhUwXO15naHhVZ1yedX7/BnPKuLeFJ 0iqTOY33VClSlTzyG45LcCXKuCbbSQICVJr0GvHqStpM4hND4xSUeYZr9FvhDPVYTC ZML6m+zu27366OrDrGXNAvQXeq9NrJzTwbn75UR+xcmZr5svk+lX7iqKnjAR1p2Rdl BmAKNGhUoc06T/2Yu3X6/wxYaOVB5W9w5vb1nmZtWQeOoplxZWrM1fY8+7TxLkDhuQ 7Uj1P1rvWn97AkoFSmuFXkRPx1HiixGzHrafRdKu21PWi33q1EUZtW/yemHsdSBdGP bWQl3VOv2WKdA== Date: Mon, 8 Mar 2021 18:41:48 +0100 From: =?utf-8?b?0L3QsNCx?= Cc: Benjamin Tissoires , Peter Hutterer , Jiri Kosina , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 0/4] Stylus-on-touchscreen device support Message-ID: MIME-Version: 1.0 Content-Disposition: inline User-Agent: NeoMutt/20210205 To: unlisted-recipients:; (no To-header on input) Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org This patchset adds support for stylus-on-touchscreen devices as found on the OneMix 3 Pro and Dell Inspiron 15 7000 2-in-1 (7591), among others; with it, they properly behave like a drawing tablet. Patches 2 and 4 funxionally depend on patch 1. Patch 4 needs patch 3 to apply. The output of this patchset and the need for a kernel, rather than userspace, patch was previously discussed here: https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/558#note_792834 Changes in v2: Patch 4 now ANDs the secondary button with the tip switch, since it's otherwise borderline useless to the user. Ahelenia ZiemiaƄska (4): HID: multitouch: require Finger field to mark Win8 reports as MT HID: multitouch: set Stylus suffix for Stylus-application devices, too HID: input: replace outdated HID numbers+comments with macros HID: input: work around Win8 stylus-on-touchscreen reporting drivers/hid/hid-input.c | 54 ++++++++++++++++++++++++++++++++++-- drivers/hid/hid-multitouch.c | 18 +++++++----- 2 files changed, 62 insertions(+), 10 deletions(-)