Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp1041171pxb; Tue, 19 Oct 2021 19:17:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxAHzxDvJchbCV68jhFqAKTornA6dPQnesbw1diLW9Rwch7mU7musJqwiBxNwAX0vA7JmG5 X-Received: by 2002:a17:906:1c04:: with SMTP id k4mr43880488ejg.279.1634696275422; Tue, 19 Oct 2021 19:17:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634696275; cv=none; d=google.com; s=arc-20160816; b=S2OwyyAdpMnxbWCSDZvbFLQPK42QYhRKTBILhfNysenOripHYbRIHcAgyd8ikumKXe aceLByugPcpSSiSOfRX7B68JyLFf2b4V8CUHJb7vf1xhTSY65o6ZoQKUI3DaxKoprk5P seJR3mihZ/M7H8BFKlQiqIP/64u6bxpkMcR/qOcOTZBSlTLx4r0ES6Rm/CQ1Fvaij3XI TOqs/rpWJf3aHzfhKHF5xLACWAIHGr4tblvH6fJlbmctAnQo7bjOsgzmZ2RPHOVP3w2q CW7RG1OEVXen5E6zG6CWw6zkTXVFIIxJa4lbPyiuE4QeNuSuHsowslHiOfcJ6VfxB0bn zreg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=BeLefvFYaaRNCXybpBNbetJ8KPidcgjmt2FIlG8JLGU=; b=amG2+oVUZ7FzYgaIoY9y95HcXjb7lbETJC46Do77a5qsOczVkjlsCKYd3O9afNLxxL Z5X6UOuvoO+Q7vjQayr7c1qzyH3zK/van17piOSeZ/kFHlaErk2O2ie7cd3VooagsRr0 FcrmQCy5xKgEMRofyWKi7faMXIRr6/EBBmjKn4UC4v6eklbdwB325YM1KcGyqJMkYa2E qEFi4aoDeRsoEiUmDmCF9peL7hj7/htOHCFBkJ4Iv0oXE2nQpFpUObkqRa90KnD3u+UZ 7vtWv/JCD/wYQXkAzPfUTwK5YuihPM90C05meeGsOurT+5b39tP2qZ1XU+8yeJAjdBDr UynA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=g2kvxFPQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j10si1355428edw.91.2021.10.19.19.17.31; Tue, 19 Oct 2021 19:17:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=g2kvxFPQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230316AbhJTCR0 (ORCPT + 99 others); Tue, 19 Oct 2021 22:17:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55442 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230103AbhJTCRG (ORCPT ); Tue, 19 Oct 2021 22:17:06 -0400 Received: from mail-pg1-x52d.google.com (mail-pg1-x52d.google.com [IPv6:2607:f8b0:4864:20::52d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 84385C061749; Tue, 19 Oct 2021 19:14:51 -0700 (PDT) Received: by mail-pg1-x52d.google.com with SMTP id h193so5728161pgc.1; Tue, 19 Oct 2021 19:14:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=BeLefvFYaaRNCXybpBNbetJ8KPidcgjmt2FIlG8JLGU=; b=g2kvxFPQF0NKcFZdcxoOMWcur0VCSL5wdxGZLs3mlkcAkYUcSmvP9Af8ZAStymqLs0 tHAM0eeyBmCxRmMskpNA5XC/UuUkOL42EK7ejN4a2nK85+pGdX8bBQgBC+Y5C8aOuw9v f2kPwbFVcmDHyCf38qj5zBBrhHvIulPdmtayqXLxfelVYJmAn9YRFpDeeh8bV14bX69W HtjKu7YdKH5WFTSZgd94BqDCs/ESo+Gg7g1GAGOLdTtIoaY/jMiUknWIW9FYqClpfGb4 NKwnkkAlwzIDQ5+kLk6WDGqQdfXPssBhqpLl7KLAaWDeuTceVn7nl69zNgwSUqhQnv3p +mtw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=BeLefvFYaaRNCXybpBNbetJ8KPidcgjmt2FIlG8JLGU=; b=fh09+zwK+Zy93AfUTfw8yB056DtrnpMl6Ui0PVzoqAiMtXQ79xMN9QcA+CbqvNqvJm 7GQa+udbaoiGf9pHdK81WdU69+g/0Xen6D5KQobWp38GRyClFyNVpOlwK/NEFJkqIBv8 VKoizQaAHtRLq8wcj2+0MX84znZi/Tj1surfLAw7eIopPBMF8uB/UKo3Xr+XJcOWUcaH 0VjltdQFu+B6I7jslmRQ3v+9nWYdpuYzq2Y5GX5SwSvWqHnqeEtLNjFoHy2ufs4HfO/m NQCowwrQsQ78iFcdnEjGwoKD5wdZchi/rrHwj0zxYzsDvXVI3RSAvb8Q9v6NFBYuYnfN BqSQ== X-Gm-Message-State: AOAM533OIUBTdx622fpnQ+FvJHFoxrmBSQ4stL0a3BR1ZjH2n2amVPiV 8m3Kpg+3LpR3kAcNhMQzBMc= X-Received: by 2002:a05:6a00:88e:b0:44c:c40:9279 with SMTP id q14-20020a056a00088e00b0044c0c409279mr3335225pfj.85.1634696090862; Tue, 19 Oct 2021 19:14:50 -0700 (PDT) Received: from google.com ([2620:15c:202:201:4814:8c29:ba96:983d]) by smtp.gmail.com with ESMTPSA id k14sm422679pji.45.2021.10.19.19.14.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Oct 2021 19:14:49 -0700 (PDT) Date: Tue, 19 Oct 2021 19:14:47 -0700 From: Dmitry Torokhov To: Alistair Francis Cc: Ping Cheng , Alistair Francis , Shawn Guo , Sascha Hauer , dl-linux-imx , Jiri Kosina , Benjamin Tissoires , linux-input , devicetree , LKML , linux-arm-kernel Subject: Re: [PATCH v11 1/4] HID: wacom_sys: Add support for flipping the data values Message-ID: References: <20211009114313.17967-1-alistair@alistair23.me> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Oct 20, 2021 at 11:44:50AM +1000, Alistair Francis wrote: > On Wed, Oct 20, 2021 at 11:05 AM Dmitry Torokhov > wrote: > > > > On Wed, Oct 20, 2021 at 09:33:13AM +1000, Alistair Francis wrote: > > > On Tue, Oct 19, 2021 at 11:51 AM Dmitry Torokhov > > > wrote: > > > > > > > > We already have touchscreen-inverted-x/y defined in > > > > Documentation/devicetree/bindings/input/touchscreen/touchscreen.yaml, > > > > why are they not sufficient? > > > > > > The touchscreen-* properties aren't applied to HID devices though, at > > > least not that I can tell. > > > > No, they are not currently, but that does not mean we need to establish > > a new set of properties (property names) for HID case. > > I can update the names to use the existing touchscreen ones. > > Do you have a hint of where this should be implemented though? > > Right now (without "HID: wacom: Add support for the AG14 Wacom > device") the wacom touchscreen is just registered as a generic HID > device. I don't see any good place in hid-core, hid-input or > hid-generic to invert the input values for this. I think the transformation should happen in hid-multitouch.c::mt_process_slot() using helpers from include/linux/input/touchscreen.h I think the more challenging question is to how pass/attach struct touchscreen_properties * to the hid device (i expect the properties will be attached to i2c-hid device, but maybe we could create a sub-node of it and attach properties there. Thanks. -- Dmitry