Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp1359471pxf; Fri, 2 Apr 2021 08:24:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy7tQQ8kVxVXVUaxe0Y67vITtMiBk/ntlCxtRiyFxHh7HwA2Jf4S+/iajmbHb7R88lG0LSC X-Received: by 2002:a05:6402:c88:: with SMTP id cm8mr15880366edb.62.1617377055320; Fri, 02 Apr 2021 08:24:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617377055; cv=none; d=google.com; s=arc-20160816; b=ukuY2hJh046deprvdRCq7DF+EZ/26A/PxrBe66pMJZR6aLmqI9dtnTqQp1gfR6/Kr1 k4v1kJX1ILRdJbyWmttY7XLTmeigDh1z0ssafHDc7YIelYKZfvPK/7ML67VF8F31/feL WakzSjLd/fvpTMJm8n/veDYvw2RJmAXe7ZzK496jkL2G4HRmlYT5VIxrXn6bFsfl7vbE v1aPV4QeUsZyNdl1AdsBiIsdzWPG3hHKgsm+CiIghbvTm3XfKaHYbG+WpaW79tJ1zGC+ 4TIgU99gLgceIVhjYYLTpwgN7Zk/i8R2oNZQOsEe+6/wdoitkjN2QQA6m5HrfsDXMmuU R6tg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=6J5vvUpLhPnyTEBFJ00ILsxG3USmt8QHHi8AuqQz71s=; b=kxHbDAQH0psS6rEtcL+O0PHXFPVjXX4xUFmJkmsc9gXHy0mNIFYi1VseMXWDIO/Z9B xElkXtGsqFThybSy3Y12/+FBtbdsWAHj4+B3/artzFsdb2NJyjErUbhswEBxQkVICu77 F3x24qIY4S7qAYaiL7fzqQA6JfRnnU37vcAhUd7BtYxMBrufQqHsMsy6Vd51uKc/PgC/ uCc48UVg7m48yavgjlvRUhTyEqcNVDGh1zK4rOa+KUBa1Zf+syajamgTeutjfbY1vX1R VWOymoHicyVJbbdjOskbxRU/VWYp6El1fXV/UArY64wAtERiihq0PBcPNz7P8Lj0Tv5V 2MgA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@aruba.it header.s=a1 header.b=X+qGZbDU; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id gb25si7032321ejc.472.2021.04.02.08.23.51; Fri, 02 Apr 2021 08:24:15 -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=@aruba.it header.s=a1 header.b=X+qGZbDU; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235248AbhDBPXX (ORCPT + 99 others); Fri, 2 Apr 2021 11:23:23 -0400 Received: from smtpcmd15177.aruba.it ([62.149.156.177]:46690 "EHLO smtpcmd15177.aruba.it" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235198AbhDBPXW (ORCPT ); Fri, 2 Apr 2021 11:23:22 -0400 Received: from [192.168.126.129] ([146.241.148.6]) by Aruba Outgoing Smtp with ESMTPSA id SLdmlmMJ3LwkNSLdmleqO8; Fri, 02 Apr 2021 17:23:19 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=aruba.it; s=a1; t=1617376999; bh=Zjgzub5UB8H8XQ9V4GX5bcr4pkotkNmq2kr2buL9Beg=; h=Subject:To:From:Date:MIME-Version:Content-Type; b=X+qGZbDU9Q6w7LxLKkxe5wTWsTbkLVJZuooXOA+BodQ15Is0JLWXkXX/88gINGyzm S7Ur8zROubQakL0IE3GptcbYyzHBkQn1FzxmUuAUX53zq501EFeqmc+V/m7r1FImfn MlAZ4dUSALlA8hyN14yJo3xi0gDdv63FXIqTcsm/yjAA7xjg/Moq4GfNkN3mz6n5d/ NEoPHCl1wkIfUhNhUm64Ui0gwCeI81XW3p7IEEILKVR+EZQYOlfAtFvPHs4pAl+oCB aHYFOMCvDUrNarcWfvRuPZmsxDE3O/adte1rzIGFYO2jMaeeCgN5XrZAfohJJobZWy OLlox5yKa5QCw== Subject: Re: [PATCH v2 3/3] Input: add driver for the Hycon HY46XX touchpanel series To: =?UTF-8?Q?Jonathan_Neusch=c3=a4fer?= Cc: Dmitry Torokhov , Rob Herring , Henrik Rydberg , linux-input@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, =?UTF-8?Q?Jonathan_Neusch=c3=a4fer?= References: <20210306194120.GA1075725@robh.at.kernel.org> <20210401230358.2468618-1-giulio.benetti@benettiengineering.com> <20210401230358.2468618-4-giulio.benetti@benettiengineering.com> From: Giulio Benetti Message-ID: Date: Fri, 2 Apr 2021 17:23:18 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.7.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-CMAE-Envelope: MS4xfP0ZAjh3bi9ubFRtnjZE8kNgc6hXya9iP7Jl3K/EySvUDaWVVPU0Dx06B+pTmj0O83bOb72Isk0TMjZIeRHYRKgVDaK9J7C8eSVnJLmDxMnsi6xIZ6aL gpSVT1Cs6g6Ji8tQVdRRu/8rE2StHnfe1TKGJWwuMQQpI8Oj1R65ApOIIX317tPE8zjKwApmUxDxUbhkNEUokNxdK1LK3Q0Ez+QdSg3QnKHSSGdu2kjMWMhe 4mQhKd02sTfhFDG1h/9tKn1U0fqUzLp+tunyvWmNxgYz7S2G9CMzabtvhwDIYd7oDorYp+yu1nBRYIKL+lM7EtOJBEsXzdmP84StLcVB9Mr9V0n1trMPyZbH Bs3i14B3ZDM9Tyuhvoo7vPy2P4HIg0zoQPGfxe8RAqCcANp9I24AUhm9/VQ5y/him10NG7SJqLEfYxq8jKeA2tQqSIO9C2PMJNqJn5DIOAmfYhms1Fk= Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Jonathan, On 4/2/21 10:59 AM, Jonathan Neuschäfer wrote: > Hi, > > a few remarks below. > > On Fri, Apr 02, 2021 at 01:03:58AM +0200, Giulio Benetti wrote: >> This patch adds support for Hycon HY46XX. >> >> Signed-off-by: Giulio Benetti >> --- >> V1->V2: >> * removed proximity-sensor-switch property according to previous patch >> As suggested by Dmitry Torokhov >> * moved i2c communaction to regmap use >> * added macro to avoid magic number >> * removed cmd variable that could uninitiliazed since we're using regmap now >> * removed useless byte masking >> * removed useless struct hycon_hy46xx_i2c_chip_data >> * used IRQF_ONESHOT only for isr >> --- > > >> +config TOUCHSCREEN_HYCON_HY46XX >> + tristate "Hycon hy46xx touchscreen support" >> + depends on I2C >> + help >> + Say Y here if you have a touchscreen using Hycon hy46xx, >> + or something similar enough. > > The "something similar enough" part doesn't seem relevant, because the > driver only lists HY46xx chips (in the compatible strings), and no chips > that are similar enough to work with the driver, but have a different > part number. Right >> +static void hycon_hy46xx_get_defaults(struct device *dev, struct hycon_hy46xx_data *tsdata) >> +{ >> + bool val_bool; >> + int error; >> + u32 val; >> + >> + error = device_property_read_u32(dev, "threshold", &val); > > This seems to follow the old version of the binding, where > Hycon-specific properties didn't have the "hycon," prefix. > Please check that the driver still works with a devicetree that follows > the newest version of the binding. Ah yes, I've forgotten it while changing in bindings. >> +MODULE_AUTHOR("Giulio Benetti "); > > This is a different email address than you used in the DT binding. If > this is intentional, no problem (Just letting you know, in case it's > unintentional). I've missed that > > Thanks, > Jonathan Neuschäfer > Thank you! Best regards -- Giulio Benetti Benetti Engineering sas