Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp3505918rdh; Thu, 28 Sep 2023 13:51:26 -0700 (PDT) X-Google-Smtp-Source: AGHT+IF65DbeujaSuj3gM0kz0ZgVYbB08vp9IUP5sW6JvNe6vjLxCRsVf6dMC0NEP0uVTY5feY9a X-Received: by 2002:a05:6a20:6a27:b0:15d:8366:65be with SMTP id p39-20020a056a206a2700b0015d836665bemr3963811pzk.9.1695934286061; Thu, 28 Sep 2023 13:51:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695934286; cv=none; d=google.com; s=arc-20160816; b=ym3gxQ2HTpWloja9/HtVR2hg+hB5UNfD7aF0zbXbFzyNnPAAy9G+qtrw0JqagApFUO amRHm4Jh6ShWiJsvzokAnczQDvhCMv+NknX9+cjxa62volt0GcWiF99tlmUhJFoafY4c ub2yt2KoDe/FmwkrXEF/QoCBIF+3MLs8JnTzpk30iPyckyhjW9cmzsPRhNzoLhr56Mzb DNNNrPPg/RN2mpKSGlfUl7S+2b8wgnNOrI9bEB2GvZnZ0sXh7D8T3F/AcgolAUmu6EUx ERiOvlkw2WF1ebsUBM+I7un2dIOYhNiR4aMVtq+cMc2OOFCAT+hgByan2morQJoGuGhM 4fGA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:references:cc:from:to:subject :message-id:date:content-transfer-encoding:mime-version :dkim-signature; bh=U8Xfal+esmxNlqnjdyWmKBUDJQrHuXiFYNkhL9syiR4=; fh=ecHi3UiQGYWLWhDWaIq+0yAy+HIfMDUJBpXdQ0VLpOg=; b=em+3Sn7/+NDCDb1GOHCUrdzgLKl+k6f3C/ywB0vkGZ/04Z6Gxh1sH74+5JdyJnrdwV s+Nfi5CFeEXzIeZFub/+HPnEF4PrK+wI7U+0BhIHVn+lB+aZe1hcWi8f9kO3GZIru6Kr p6+htiBmbF4O/wQodRd1UzcvboaE3L6HlCAdzF+JKK7m+hNCeKji+5JvKUOf6kAOR5fG NZOkReoNm2jn4xxawQ3HBuB5SJDYNbQeZdZ1qQneaSK6UV7b9yJt5jL7lBkuum+SiLTl fdn8S+khgd3aq+Lov2hn+nzCQmBmp3aS+6A6IsmCq3xvO3BOJY9RCd22vZUccU2T+f/C XW/w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gimli.ms.mff.cuni.cz header.s=gen1 header.b=JLJ1cSY4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gimli.ms.mff.cuni.cz Return-Path: Received: from pete.vger.email (pete.vger.email. [2620:137:e000::3:6]) by mx.google.com with ESMTPS id u15-20020a056a00098f00b00690d42ec31bsi22065468pfg.369.2023.09.28.13.51.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Sep 2023 13:51:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) client-ip=2620:137:e000::3:6; Authentication-Results: mx.google.com; dkim=pass header.i=@gimli.ms.mff.cuni.cz header.s=gen1 header.b=JLJ1cSY4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gimli.ms.mff.cuni.cz Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id 9326880562EF; Thu, 28 Sep 2023 11:07:23 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230246AbjI1SHK (ORCPT + 99 others); Thu, 28 Sep 2023 14:07:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53566 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229581AbjI1SHI (ORCPT ); Thu, 28 Sep 2023 14:07:08 -0400 Received: from nikam.ms.mff.cuni.cz (nikam.ms.mff.cuni.cz [195.113.20.16]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DF18F19D; Thu, 28 Sep 2023 11:07:05 -0700 (PDT) Received: from gimli.ms.mff.cuni.cz (gimli.ms.mff.cuni.cz [195.113.20.176]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by nikam.ms.mff.cuni.cz (Postfix) with ESMTPS id 8D8B92849E2; Thu, 28 Sep 2023 20:07:04 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gimli.ms.mff.cuni.cz; s=gen1; t=1695924424; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=U8Xfal+esmxNlqnjdyWmKBUDJQrHuXiFYNkhL9syiR4=; b=JLJ1cSY4L6xWrCcR59rVol8iNeaXngvE/Vf2PtbSUbaH99eRYTXs0ZZoYfQSl8/8hV0E9n 8AZkonF1ioKDRhGxdVc7NCQ9Qgzz0hsU9Uq0a6Y5bURGz1VRVJcwkFuvQV6hyNG2c3r2F4 i0a8Pg2HQBndculc+fguIevbgDmB3W4= Received: from localhost (internet5.mraknet.com [185.200.108.250]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (Client did not present a certificate) (Authenticated sender: karelb) by gimli.ms.mff.cuni.cz (Postfix) with ESMTPSA id 6338A44AFF0; Thu, 28 Sep 2023 20:07:04 +0200 (CEST) Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Thu, 28 Sep 2023 20:07:04 +0200 Message-Id: Subject: Re: [PATCH 1/2] input: generalize the Imagis touchscreen driver To: "Markuss Broks" , "Karel Balej" From: "Karel Balej" Cc: "Dmitry Torokhov" , "Rob Herring" , "Krzysztof Kozlowski" , "Conor Dooley" , , , , =?utf-8?q?Duje_Mihanovi=C4=87?= , <~postmarketos/upstreaming@lists.sr.ht>, "Jeff LaBundy" , References: <7b9864bf-2aa6-4510-ad98-276fbfaadc30@gmail.com> <72e02837-9a82-4007-8ba2-fa05f3c17670@gmail.com> In-Reply-To: <72e02837-9a82-4007-8ba2-fa05f3c17670@gmail.com> X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Thu, 28 Sep 2023 11:07:23 -0700 (PDT) Hello, Markuss, thank you for your response and please forgive that my original emails didn't reach you - I am trying to see if I can get the SMTP server I use for my primary address officially authorized to send emails in its name so that Google does not reject them. > To be fair, this driver should work with all Imagis3 chips, which could= =20 > be a better name for it. However, I agree with Jeff here: the driver=20 > doesn't necessarily need renaming. I will be sure to drop the renaming for v2. > Additionally, there used to be my series [1] that generalized the=20 > driver, but it never got applied. I will re-send it. It introduces=20 > `struct imagis_properties`, which contains register addresses for the=20 > registers that we use to read the touch input. In your specific case, I= =20 > believe it should be: > > static const struct imagis_properties imagis_3032c_data =3D > { > .interrupt_msg_cmd =3D IST3038C_REG_INTR_MESSAGE, > .touch_coord_cmd =3D IST3038C_REG_TOUCH_COORD, > .whoami_cmd =3D IST3038C_REG_CHIPID, > .whoami_val =3D IST3032C_WHOAMI, /* change it to your whoami */ > }; I have come across your patch series and in fact my original experiments were based on it. However I thought it was abandoned and decided not to try to make any further generalizations to the driver for now, except making it work with IST3032C. Should I then perhaps wait before your series gets applied before sending v2 of my changes? Or should I send you a patch on top of your series, where I would add the `struct imagis_properties` for the IST3032C (which you surely could do yourself, but I can at least test it with my device). Please let me know if and how we should coordinate. > As for the voltage set, I believe this does not belong in a kernel=20 > driver. You should set it in device-tree with `regulator-max-microvolt`= =20 > and `regulator-min-microvolt`. Please see my response to Jeff regarding this. I will be happy to hear your thoughts on what I propose. Kind regards, K. B.