Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp1335448imm; Thu, 23 Aug 2018 01:02:04 -0700 (PDT) X-Google-Smtp-Source: AA+uWPx7+FVOHa6aT39/uVfEOLR6AkojeuO6AUoalGDUPp7y5XSsPyrUipiugYu8ouEzz6zbcq2o X-Received: by 2002:a63:ea49:: with SMTP id l9-v6mr54767478pgk.427.1535011324081; Thu, 23 Aug 2018 01:02:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535011324; cv=none; d=google.com; s=arc-20160816; b=Qx4HMugHvsQ4ImU7ba7ZghPggum6RejeHrcpfPkFe3QmyiQRZ686tPbmBlJPaT4/8V suGDiXeB6/IIPLO4JMQB+XBj4Ni6xy0+CV/Au8BPU7chawjSdjm/XOSLVtoHxZKAfg7b O9f+RpEIy/YvxTMCcBE0ldpEL41ULDYxYEveVlLq9oura2pe6aE1F5oDP0iX14jq7Iwb qn9L7nEbzSEBseUtNMB2vzbx/s/gulKIPJeUUt0IG6k1IQeBkgoU7WCrDdADOlGtZLAI iZdwL/S9WF/YQX07nmZSTg4RpQMBu30ZhGvRNlWzAlOerufaeFPPdKHFyl4icziWH6w4 pnag== 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=eVjZfB8hDWrFCbniAQ3o1l0g4G36jpdonS4Thcik3E4=; b=t+zVSGAmWu8toYrh5UaU/0jz/SoaYqKI0qaqErfA0qkW6HaXZeuVqXElcPCa7jlZak ZY94Tj3zBfvQWeq3mMyUqLfCL340+ZhIKoY2au/20y4K+XzyF8c70Qt4kp6qEwNhA0Pz f2n+N+6/M4Zwi+QOOeW6YgZFiKtk3UGlDOLnIDRj3c9oqsnO6E+evBzPPva3sARP2iO5 tyVTiiFdyvKxDazxq0/SSYr3UGQvSvU93+Gya97uLZXesDAuwEhuwZ17tNnmZbeheG1e pvzW9oJaP69NBKL77ZWOykdE59+WTSP8T0pviYp6ULcJ6XLE0ZTusuugvNQTje77Bu4q MUVg== 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 f89-v6si3653827plf.20.2018.08.23.01.01.48; Thu, 23 Aug 2018 01:02:04 -0700 (PDT) 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 S1728631AbeHWL2Z (ORCPT + 99 others); Thu, 23 Aug 2018 07:28:25 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:42126 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726836AbeHWL2Z (ORCPT ); Thu, 23 Aug 2018 07:28:25 -0400 Received: from localhost (5355525A.cm-6-6b.dynamic.ziggo.nl [83.85.82.90]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id B3F38BB6; Thu, 23 Aug 2018 08:00:01 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Jason Gerecke , Jiri Kosina , Sasha Levin Subject: [PATCH 4.4 39/79] HID: wacom: Correct touch maximum XY of 2nd-gen Intuos Date: Thu, 23 Aug 2018 09:53:15 +0200 Message-Id: <20180823074921.620626842@linuxfoundation.org> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180823074918.641878835@linuxfoundation.org> References: <20180823074918.641878835@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review 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.4-stable review patch. If anyone has any objections, please let me know. ------------------ From: Jason Gerecke [ Upstream commit 3b8d573586d1b9dee33edf6cb6f2ca05f4bca568 ] The touch sensors on the 2nd-gen Intuos tablets don't use a 4096x4096 sensor like other similar tablets (3rd-gen Bamboo, Intuos5, etc.). The incorrect maximum XY values don't normally affect userspace since touch input from these devices is typically relative rather than absolute. It does, however, cause problems when absolute distances need to be measured, e.g. for gesture recognition. Since the resolution of the touch sensor on these devices is 10 units / mm (versus 100 for the pen sensor), the proper maximum values can be calculated by simply dividing by 10. Fixes: b5fd2a3e92 ("Input: wacom - add support for three new Intuos devices") Signed-off-by: Jason Gerecke Signed-off-by: Jiri Kosina Signed-off-by: Sasha Levin Signed-off-by: Greg Kroah-Hartman --- drivers/hid/wacom_wac.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) --- a/drivers/hid/wacom_wac.c +++ b/drivers/hid/wacom_wac.c @@ -2487,8 +2487,14 @@ void wacom_setup_device_quirks(struct wa if (features->type >= INTUOSHT && features->type <= BAMBOO_PT) features->device_type |= WACOM_DEVICETYPE_PAD; - features->x_max = 4096; - features->y_max = 4096; + if (features->type == INTUOSHT2) { + features->x_max = features->x_max / 10; + features->y_max = features->y_max / 10; + } + else { + features->x_max = 4096; + features->y_max = 4096; + } } else if (features->pktlen == WACOM_PKGLEN_BBTOUCH) { features->device_type |= WACOM_DEVICETYPE_PAD;