Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp1161146pxu; Fri, 27 Nov 2020 00:51:35 -0800 (PST) X-Google-Smtp-Source: ABdhPJwbgoBIJQcXYL+jZzljaExAhOkwtQNoJHrkyPUktccsgQ0wdCW/teGNwxUWlNO4Tqkpom0A X-Received: by 2002:a05:6402:1813:: with SMTP id g19mr6652015edy.105.1606467094799; Fri, 27 Nov 2020 00:51:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606467094; cv=none; d=google.com; s=arc-20160816; b=CCNEE10KwJUhQDVu6omb4v0mpyFpYRZQp5fudZTQCtmZTTFTjy1gutFOxY6xMvTWvG Rf4vYS3lApkLVUl0fVK18Y+s3c+d6xvlQ6C+qImCG4bjnmKWZXhz8Qo3Vu5k3WKCn5DY uuKxdeix/gk3UyoQF6WwlcLs133Zi3ICp8UD+a8MEETwCfxO5EF7Nd8SDRnBlMdpuNGK tQxGq/VbCEMomHwLCla55PeCXeY/K6oj6B6joFLrgDaiMxLFD301Tf8SQjfFhYpnc+2f pq5RbHSeHnWsALl7DJLGa9MaUjAcZFJeKc+0S0Gg59Uk5Qc5UBWFLgqMwB1pGkPkfArk bTZQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=jYf2N8/ZVQCxQpjkikDPs3ZyvICDjudkUQ/29ylT6V0=; b=sMz6NDN6DTkT6+9udrnMfM/+T895e5nLZQZDcrNgqMedxzvPv6sFQJWjHKLp4qe5m0 PwLPOkUX/n3zNAtpd8FBbPQOMf4UrcBIxxIWqCy0+4h4/88Z470YbeOTCB31EUQhxPyG BdLFf1Oa2VBXQGrBR/ZIJ5a+p+KQYVG/IgoPWYr2LKY8jIJNNn0wZpyFfOJltwU7R4vT esuSk+jgKEYizUTihMFyx1Ej8ngXAvAI52YHVaYyKr+bKBa1TG6B2AvSOXHypTWPXkyF aAd1bq5zw1ZYqSvYcxg666JeI9spl1/ZvzOzCNPLb5OrCJV+Gn6e2pFv1BiCjt8HwMHM MLxw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=xyYrQl6b; 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=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e17si3257606ejc.373.2020.11.27.00.51.12; Fri, 27 Nov 2020 00:51:34 -0800 (PST) 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=@linaro.org header.s=google header.b=xyYrQl6b; 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=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2392565AbgK0GYC (ORCPT + 99 others); Fri, 27 Nov 2020 01:24:02 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43126 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389400AbgK0GYC (ORCPT ); Fri, 27 Nov 2020 01:24:02 -0500 Received: from mail-yb1-xb42.google.com (mail-yb1-xb42.google.com [IPv6:2607:f8b0:4864:20::b42]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 231E5C0613D4 for ; Thu, 26 Nov 2020 22:24:02 -0800 (PST) Received: by mail-yb1-xb42.google.com with SMTP id l14so3600754ybq.3 for ; Thu, 26 Nov 2020 22:24:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=jYf2N8/ZVQCxQpjkikDPs3ZyvICDjudkUQ/29ylT6V0=; b=xyYrQl6bZ2Slx7d1ZQB/h660xUsTBBuualrc11CKLOtTLNF+KWt+FlTyLYNgEDtYoR 58Oqkh9mZrI7KDvA9lDl0ACC55TS29I353L76UVn69EdS+oHkoiFjZCCTk6xoTnMx+LK hOmF0vtlnbDQtmGLwxzvI1t0HdXK92tQBPfdxzN0qi6cfETq0G03YubgFk1NKQ80O+O0 gsZ2g1N09vheZ21vEOQTj4KbaH02/CIBwhlZuE4Dyq2edKjW2gKmVju9Iw11cDbKcD0C UYv1HPXPUbWm3lSKwAIacjM2TFJCrs+bu/ujV3COqywYDiVCcEPM1bacsfGCy0udpS9i 8ahg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=jYf2N8/ZVQCxQpjkikDPs3ZyvICDjudkUQ/29ylT6V0=; b=DaFEuRa+MoF87JFYxSp0CIXdPdbhi5aCzguhsFUYzSpFL6wQ5JETkuB8Z73yRlWHo+ qdWBt/dhH1iCQ3srAz/x1VuABSwd3ZE+6rMJhQF2EDLdIqtzTgLWs5MhAtPHz2co3nzs N3PvqXHr9zdc5Qf7yTJR/TxKUABqFqENBCvfYPCvRPD3YWg/VBqSEUDJ25AQ3Sb5T0w/ Ol/6OqFnHEf10peXH5v11/c/H3WeLUNTmosmHWh83fuYCsgC7G/udJGsvBbODAuUY+4i pF3NKwVX0vgh/EwpHHjmRlW5Hs6/0oJTB27xnn6om/H/vF7YoLEUhaelnEfpOOIAxM1n LRXg== X-Gm-Message-State: AOAM5330gGjnuzJ2DT8s81roBO60slnYqNHGXbPD5nMWcLs4xFBJ++C8 p4MF/KmdhaN2orpjvpG0TCDTF3O6VTc5mMmVSoWKaA== X-Received: by 2002:a25:d46:: with SMTP id 67mr6676204ybn.155.1606458241278; Thu, 26 Nov 2020 22:24:01 -0800 (PST) MIME-Version: 1.0 References: <20201028221302.66583-1-kholk11@gmail.com> In-Reply-To: <20201028221302.66583-1-kholk11@gmail.com> From: Amit Pundir Date: Fri, 27 Nov 2020 11:53:25 +0530 Message-ID: Subject: Re: [PATCH v9 0/3] Add Novatek NT36xxx touchscreen driver To: kholk11@gmail.com Cc: Dmitry Torokhov , Rob Herring , rydberg@bitmath.org, priv.luk@gmail.com, linux-input@vger.kernel.org, lkml , marijns95@gmail.com, Konrad Dybcio , martin.botka1@gmail.com, phone-devel@vger.kernel.org, dt , krzk@kernel.org, andy.shevchenko@gmail.com Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 29 Oct 2020 at 06:32, wrote: > > From: AngeloGioacchino Del Regno > > This patch series adds support for the Novatek NT36xxx Series' In-Cell > touchscreen (integrated into the DriverIC). > > This patch series has been tested against the following devices: > - Sony Xperia 10 (SDM630 Ganges Kirin) > - Sony Xperia 10 Plus (SDM636 Ganges Mermaid) > Tested the patch series on Xiaomi Poco F1 (SDM845 Beryllium, Novatek NT36672A IC). For the whole series: Tested-by: Amit Pundir Regards, Amit Pundir > Changes in v2: > - Fixed sparse warnings from lkp kernel test robot > > Changes in v3 (as requested by Dmitry Torokhov): > - Using shorthand u16/u32 (sorry for the overlook!) > - Now using more input and touchscreen APIs > - Fixed useless workqueue involvements > - Removed useless locking > - Switched reads and writes to use regmap > - Moved header contents to nt36xxx.c > - Fixed reset gpio handling > - Other cleanups > - P.S.: Thanks, Dmitry! > > Changes in v4: > - Fixed regmap read length for CRC_ERR_FLAG final check > - Fixed YAML binding, as requested by Krzysztof Kozlowski > > Changes in v5: > - Replaced subsystem maintainer's name with .. mine, > usage of additionalProperties to unevaluatedProperties > and a typo fix for reset-gpios as per Rob Herring's review > - Changed compatible string as per Krzysztof K. request > - Renamed the novatek,nt36xxx.yaml file to just nt36xxx.yaml > in order to now reflect the driver name instead of the DT > compatible > - Fixed blank line at EOF > > Changes in v6: > - Removed include of_gpio.h, added mod_devicetable.h and > gpio/consumer.h > - Added kerneldoc to relevant functions/enum > - Used traditional patterns for error checking where possible > - Documented calls to usleep/msleep > - Using be16_to_cpu / get_unaligned_be16 where possible > - Added helper for CRC error check on retrieved buffer > - Decreased indentation in the CRC reboot recovery function > - Removed instances of error code sum > - Dropped all likely/unlikely optimization as per request > - Removed redundant reset_gpio checks > - Dropped of_match_ptr and ifdefs for CONFIG_OF > > Changes in v7: > - Fixed typo in nt36xxx.c > > Changes in v8: > - Fixed typo reset-gpio -> reset-gpios in dt-bindings > > Changes in v9: > - Includes are now sorted > - Used proposed sizeof variable instead of sizeof type > - Fixed a return value check for common pattern > - Added NULL check to devm_kasprintf call > - Returning ret on probe function to be consistent > > AngeloGioacchino Del Regno (3): > dt-bindings: Add vendor prefix for Novatek Microelectronics Corp. > Input: Add Novatek NT36xxx touchscreen driver > dt-bindings: touchscreen: Add binding for Novatek NT36xxx series > driver > > .../bindings/input/touchscreen/nt36xxx.yaml | 59 ++ > .../devicetree/bindings/vendor-prefixes.yaml | 2 + > drivers/input/touchscreen/Kconfig | 12 + > drivers/input/touchscreen/Makefile | 1 + > drivers/input/touchscreen/nt36xxx.c | 894 ++++++++++++++++++ > drivers/input/touchscreen/nt36xxx.h | 122 +++ > 6 files changed, 1090 insertions(+) > create mode 100644 Documentation/devicetree/bindings/input/touchscreen/nt36xxx.yaml > create mode 100644 drivers/input/touchscreen/nt36xxx.c > create mode 100644 drivers/input/touchscreen/nt36xxx.h > > -- > 2.28.0 >