Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp6947522imm; Tue, 24 Jul 2018 06:02:46 -0700 (PDT) X-Google-Smtp-Source: AAOMgpcz91wV2oinUeX3xlnbosjTeP6JXPJkIIfoeEBuOLjpOGc+AQn78Bi2o4Yq7adLrDMEanzr X-Received: by 2002:a63:7c18:: with SMTP id x24-v6mr16427030pgc.311.1532437366087; Tue, 24 Jul 2018 06:02:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532437366; cv=none; d=google.com; s=arc-20160816; b=qKfjEd0spR+8FoBiHHNnvCNQaBT2rXgHz6gIUDGfSMakeI6JaMf6JrJzF7QCwTxeaF NTodVL21Mk0lgYnfEr4+DnWulfHBwZyyPL1Yy1qpuGbch1gwwFD9ZLyUgj9zF1lBDKaY Xh7bXB/1oFoPpt3hlMLguPkTd9mWK74KvVK1w0P33a0HhoRWsRMd7ugEUrS7V0jb5u9j oLaaQA7bMn/NdIfdI+wcxc0iLr6GzlrXBN1FvRw40spIplKpyTe7qvpcfPdEjwzUGDG6 1uKo6bsVUIvUqgl3kQprG8zkeEqQ5vFuwFeeJtNziGbpYG7X/hG7gNAEbsuam9LgXnfV Xyrg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date:arc-authentication-results; bh=ard5002HgZZgIL4PDcAGw89DjVqnrt56CH7JAi7zPuA=; b=UDHKubZnyg/59wYFgG6WjLzvBmnYjfT4wb8fR4QdmjW77SJ6HoFr/i8NJV1nxmvohW OqaYwdknOJeCEoHk1uo74AvRSYUeaa5pNUOX/m0IGRkfNH9z1xnJ+uMLwf4dsMV1gzE8 gH9jl+F7MYyjnZLiSB5ZosX0pVpcqh4muCOdkBdT2MLO4RTKzORHM7n6PMAaZn+hXPjs VseDgQQh6En8Z2xXWacYiu78LySc4G4tglPdG+66SJV2Qn78i0tJ/Z/3JvYL3+HTSjD/ p6oHt/Uc2qSSw2Mq2LcHpK8gl3WZc5GxBeLoZdaSebnEfuAK15P762mSA9jiqPOgU4Ob lgBA== 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 o32-v6si10402918pld.440.2018.07.24.06.02.31; Tue, 24 Jul 2018 06:02:46 -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 S2388334AbeGXOHW convert rfc822-to-8bit (ORCPT + 99 others); Tue, 24 Jul 2018 10:07:22 -0400 Received: from mail.bootlin.com ([62.4.15.54]:60316 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726270AbeGXOHW (ORCPT ); Tue, 24 Jul 2018 10:07:22 -0400 Received: by mail.bootlin.com (Postfix, from userid 110) id B29D120884; Tue, 24 Jul 2018 15:00:56 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mail.bootlin.com X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,SHORTCIRCUIT, URIBL_BLOCKED shortcircuit=ham autolearn=disabled version=3.4.0 Received: from dell-desktop.home (AAubervilliers-681-1-78-122.w90-88.abo.wanadoo.fr [90.88.20.122]) by mail.bootlin.com (Postfix) with ESMTPSA id 678E920731; Tue, 24 Jul 2018 15:00:46 +0200 (CEST) Date: Tue, 24 Jul 2018 15:00:46 +0200 From: =?UTF-8?B?TXlsw6huZQ==?= Josserand To: Dmitry Torokhov Cc: robh+dt@kernel.org, mark.rutland@arm.com, mylene.josserand@free-electrons.com, thomas.petazzoni@free-electrons.com, maxime.ripard@free-electrons.com, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Subject: Re: [PATCH v6 0/2] Input: Add Cypress Gen5 Touchscreen driver Message-ID: <20180724150046.7d70786c@dell-desktop.home> In-Reply-To: <20180704162158.euiw2v3hyv3hzofn@penguin> References: <20180703094309.18514-1-mylene.josserand@bootlin.com> <20180704162158.euiw2v3hyv3hzofn@penguin> Organization: Bootlin X-Mailer: Claws Mail 3.14.1 (GTK+ 2.24.31; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello Dmitry, On Wed, 4 Jul 2018 16:21:58 +0000 Dmitry Torokhov wrote: > Hi Mylène, > > On Tue, Jul 03, 2018 at 11:43:07AM +0200, Mylène Josserand wrote: > > Hello, > > > > Here is a V6 series to add the driver of the touchscreen Cypress, > > TrueTouch Generation 5. > > Based on v4.18-rc3. > > > > This patch series has already been posted in several iterations: > > - v1: Sent on 2017/05/29 > > - v2: Sent on 2017/08/18 > > - v3: Sent on 2017/09/27 > > - v4: Sent on 2017/12/01 > > - v5: Sent on 2017/12/20 > > > > I did not have any comments the last 4 versions. > > And no reviews on my v5 during 6 months. Could I have any updates > > or feedback on my series to know why it is not merged (to be able to > > correct what is wrong)? > > Sorry, I must have missed the v5, sorry about that. > > I probably asked this question before, but just to make sure - I see > references to HID in the patch - the device is really not HID > compatible? Is there any hope it could be made work with i2c-hid + > hid-multitouch? > > Thanks. > I have checked and, for what I have seen, all the HID descriptor stuff is HID compliant. We could definitely use i2c-hid and hid-multitouch (there is the "hid-cypress" driver that exists also). The only problem is that this touchscreen has two modes: a bootloader mode and an application mode (which is the one where we can send HID commands). After a power-on-reset, it is always in "bootloader" mode so we need to send some commands (called "bootloader commands") to switch to application mode. These commands are not HID-compliant as the datasheet indicates: "Bootloader commands are not HID-over-I2C compliant." I think that if the touchscreen would start directly in "application" mode, we could directly use i2c-hid and hid-cypress drivers. Unfortunately, this is not the case. In bootloader mode, the ProductID is 0xc101 and in application mode, it is 0xc001 (already available in hid-ids.h: USB_DEVICE_ID_CYPRESS_TRUETOUCH but not handled) What would be the better approach here? Should I add a new product ID to detect the bootloader mode in hid-cypress driver and send non-HID commands to switch to "application" mode in this driver? Anyway, I guess that I will drop this cyttsp5 driver and update the existing one, right? Let me know what you think about it. Thank you in advance, Best regards, -- Mylène Josserand, Bootlin (formerly Free Electrons) Embedded Linux and Kernel engineering https://bootlin.com