Received: by 10.223.164.221 with SMTP id h29csp396253wrb; Fri, 3 Nov 2017 17:13:08 -0700 (PDT) X-Google-Smtp-Source: ABhQp+Sq038XnwjlZdQESAh3dU7e+tE/LzioQdjUfXiHeEJ/6iGebRyknT6imSLjOsnet9eb1VYZ X-Received: by 10.98.65.156 with SMTP id g28mr9381294pfd.11.1509754388077; Fri, 03 Nov 2017 17:13:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1509754388; cv=none; d=google.com; s=arc-20160816; b=v86tN210g14U0CZig4UTNz0tP4C/RB6Pa0hHYjObz0cPHspIBNxs+Gfa8bxVNVjxUd gttH40qv0po6PghjBTmcSCkfZBT3j1mw6B4JtlhtO8er0u3sxDMdw+DZoQwGJMBAWeyx I+wOT9SwA4uQ3hVmD2sr5u/gQhV5848opJ321LZ+g8Ca1CM0hgwueCv1+Kvgb2hOlGVA rFlhTNDiMo24uC7sd7q8P0ZGrj65bCaoQeCWwVD0FUDoOjoy22tO85Pgn13ag0fCfoOm rQdJr/qYIvbN/3L9Lbd64AhwwKyvBV2McWYNQ6/9BmL4RYtj6WgeeuhAiMyggQEi6Srq j9eA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:from:cc:to:subject :content-transfer-encoding:mime-version:references:in-reply-to :user-agent:date:dkim-signature:arc-authentication-results; bh=wbOcmwFGrf7yqebhpnj3nvjtfq2LgJUhfmuI4v10f0Q=; b=NLa8Q7QmItr+z234cdX3UGEiBgiQSfOYlhISdDeWbTxNCkrK1oNUbQhZbPjh7XwbeB K9ix9PUhtUg8ln1EHw3rkOQISasg4b/sDDx9yVx37DsSLd9drIivxTtRmHdioNMxilZE XEKJMGyNxKiUhtl0gFwWeyhUR5V5fbksHhQZkhWZQKcOh00/iTvt8UNdC9OsjF8PMFno qN+nt4O6esDlJj4FNpvpikGDUkegjmGhTEx7T/zLiDuZaWXw2E94WfC//Uai00tLIQWq 7KZAkb9gN72ROL7QAhHGg66pDhOZz98bwOSIHkW33EU1/qDMH61v7LLxfPRcgmmb7hEa mzyQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=rGKWXpW+; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v8si5847255plp.5.2017.11.03.17.12.54; Fri, 03 Nov 2017 17:13:08 -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; dkim=fail header.i=@gmail.com header.s=20161025 header.b=rGKWXpW+; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932337AbdKDAMR (ORCPT + 92 others); Fri, 3 Nov 2017 20:12:17 -0400 Received: from mail-pg0-f41.google.com ([74.125.83.41]:45371 "EHLO mail-pg0-f41.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751970AbdKDAMP (ORCPT ); Fri, 3 Nov 2017 20:12:15 -0400 Received: by mail-pg0-f41.google.com with SMTP id b192so3753166pga.2; Fri, 03 Nov 2017 17:12:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:user-agent:in-reply-to:references:mime-version :content-transfer-encoding:subject:to:cc:from:message-id; bh=wbOcmwFGrf7yqebhpnj3nvjtfq2LgJUhfmuI4v10f0Q=; b=rGKWXpW+8tExrIA2cRixI0ZDM7LJYNsKpnEdKfdJy2+N7wcuRXIdiBO+C9mcsyGArF t8UM6IhkfATUr3PgemCh3qchDC+92DOo83Ilwp6QBDIQyn6gZUUuSX3y5MchzecqEN3p QKpOwnDlF0lLMcEnVdiV/2SYqP7iwnvzQ0t0WmkoAotgtjq13KQrdky4Weqr/NfrlbQV VGV1gc4cNJFL92NH3YxcZcmFWaQ3Ovdo+gkgempWH89zFUhInKQTbgvuQu2N/II/HL13 S1mrr4khAQui23ajCp1c2WB5JrQ+UtbFtvwITOBmbY7daXZDyi5uFKlXlBwKCU0sm6+1 lWvA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:user-agent:in-reply-to:references :mime-version:content-transfer-encoding:subject:to:cc:from :message-id; bh=wbOcmwFGrf7yqebhpnj3nvjtfq2LgJUhfmuI4v10f0Q=; b=BRf83xonnpgU7ZJO6VDMNS+TdLneGupi2CBPc1XGLCjNe8uHVFv54qPlmWgg6Z3eje vX0lmjQEc5DYQsbYHBCJ1rkat/hb41I1XzriJy9OtKLhUlzvHnSi5A8XZidQaEzp17+Q ZeX0Jsa1P5jrfkcR6B9D+77ETE3O4i+JZEiqiUbQ3zOZnCa2vE1DowQSwnxDNRrHoUVv OdSC0IKnvYJQ7kyLeioC/BXdArukGZLCwBDduVqBnLDLr4yWV7p2y/AhD9rB+QRM85Qm /l05x5+ZYAQ/ma7X6yBK0n8xDuaGRHJzPX+mzxG88S68rij7OUDsctdAUfnxMj4luUi6 LG6Q== X-Gm-Message-State: AMCzsaW/nxIDLSQhRYk5ONHklZzPPm2+biTZOqNVO4feas3CD9vYJgpc 0wp75zjq4cuT3DBBw42Exl0= X-Received: by 10.101.72.65 with SMTP id i1mr8637932pgs.436.1509754334573; Fri, 03 Nov 2017 17:12:14 -0700 (PDT) Received: from ?IPv6:2607:fb90:8068:3049:630d:72cf:7fe9:96be? ([2607:fb90:8068:3049:630d:72cf:7fe9:96be]) by smtp.gmail.com with ESMTPSA id f4sm10352354pgs.30.2017.11.03.17.12.13 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 03 Nov 2017 17:12:14 -0700 (PDT) Date: Fri, 03 Nov 2017 17:12:08 -0700 User-Agent: K-9 Mail for Android In-Reply-To: <20171103172947.15156-1-benjamin.tissoires@redhat.com> References: <20171103172947.15156-1-benjamin.tissoires@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [PATCH] HID: Wacom: switch Dell canvas into highres mode To: Benjamin Tissoires , Jiri Kosina , Ping Cheng CC: linux-input@vger.kernel.org, linux-kernel@vger.kernel.org From: Jason Gerecke Message-ID: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On November 3, 2017 10:29:47 AM PDT, Benjamin Tissoires wrote: >The Dell Canvas exports 2 collections for the Pen part=2E The only >difference between the 2 is that the default one has half the >resolution >of the second one=2E > >The Windows driver switches the tablet into the second mode, so we >should >behave the same=2E > >Signed-off-by: Benjamin Tissoires >--- > >Hi, > >well, this is not the cleanest way of handling this mode set, but it is >the >less intrusive AFAICT=2E > >I was thinking that we might want to add a new field in struct >wacom_feature, >but then it wouldn't make sense to keep the set mode specifics in >_wacom_query_tablet_data()=2E > >So I am open to any better suggestion, but this one works and the >impact on >other HID generic tablets is null=2E > Hmm=2E Agreed that this isn't ideal=2E I'd like to take a look at the desc= riptor, if you wouldn't mind sharing it=2E The hardware should be similar t= o other devices of ours and it might be possible to piggyback on existing c= ode=2E Jason >Cheers, >Benjamin > > drivers/hid/wacom_sys=2Ec | 7 +++++++ > 1 file changed, 7 insertions(+) > >diff --git a/drivers/hid/wacom_sys=2Ec b/drivers/hid/wacom_sys=2Ec >index 906e654fb0ba=2E=2Eee71ad9b6cc1 100644 >--- a/drivers/hid/wacom_sys=2Ec >+++ b/drivers/hid/wacom_sys=2Ec >@@ -196,6 +196,13 @@ static void wacom_feature_mapping(struct >hid_device *hdev, > kfree(data); > break; > } >+ >+ if (hdev->vendor =3D=3D USB_VENDOR_ID_WACOM && >+ hdev->product =3D=3D 0x4200 /* Dell Canvas 27 */ && >+ field->application =3D=3D HID_UP_MSVENDOR) { >+ wacom->wacom_wac=2Emode_report =3D field->report->id; >+ wacom->wacom_wac=2Emode_value =3D 2; >+ } > } >=20 > /* --=20 Sent from my Android device with K-9 Mail=2E Please excuse my brevity=2E From 1583066908809269246@xxx Fri Nov 03 17:30:52 +0000 2017 X-GM-THRID: 1583066908809269246 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread