Received: by 2002:ab2:6c55:0:b0:1fd:c486:4f03 with SMTP id v21csp187220lqp; Tue, 11 Jun 2024 20:24:12 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUYf1ms564eD1vq0Oalreh/6tFYlLRJh00uvFdkVaw6F2WL1oTtcwa+1XpshpFJvgOD3FYFw2IYCh4TVRCjEiDJ0c+iSZEUL7HrkHWGow== X-Google-Smtp-Source: AGHT+IGH1qlTA0vSakBGIpiTN5ZOkw+loC06cFYRflB/XkOQhAU89m3C9DUAsRoLAy5RGs4Dze8C X-Received: by 2002:a05:6808:1925:b0:3d2:22ac:fc48 with SMTP id 5614622812f47-3d23e0a8dc0mr975031b6e.38.1718162651933; Tue, 11 Jun 2024 20:24:11 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718162651; cv=pass; d=google.com; s=arc-20160816; b=LYAQE3MYHZ8LsotkaoUB2L4kb/gpHjezmwhN/xDF2K3f3bARBKTDf37kChN1w38cn/ F6bCwmVHw3ng/aCgnLsMqe1gj3amJFZIWAJCq573v81OF7gT/X9TeoOMgdSC6M1W0KCV /cJddelAa4OKdrf7Ud2oC0UMudmTtD7eYVfH7b/rlancrGeYizT6lGHxepcGd0ZPw6Vy 8XwQ88nwpC5fv+ixwOx++WfyvTUVOU5Ew8oqKt32xjEvLBNa6IxEHSNXkXxoJIzkMdhy xxp+4JrNJJTF5658+Ue6/QqSB7TJt0QMYGCA+bJkHY2j4ot7jUCYzW6AYpCZgdLe0Wje z2Lw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:feedback-id:references :in-reply-to:message-id:subject:cc:from:to:date:dkim-signature; bh=v9+fU/3I0sW3EO1/uEtuQOuAAW/aw8IWkdBocAl5mAU=; fh=vbaZ37OneDKmGgFkyZcXNDAABBQjl6F5iHgrhTgZ25U=; b=N2wzoR6iN8v/hFSHi+jjxY55Tv/EClB6lqpBxNSiuQsfl9kbjV316Hh28ey8+FY6GE YNgZzIZsabtlRNk/jEqqaQETo3vsH8hoQpK4bPHP7PgFPwNlarKIKLiYp2UabHGZmZ6y Yy23y+uiVXJnbH2m6l//Jr5qlwbl1R+qEpEVnhLtUKBuJq99oUZFvyUp0IL+LmmMgZTz h4JiVLPfD6IPjx0fZG+F1Qq3hywIBBoE7uBV53rBfoz3uJkWCnEME4ReRY+7WInnmtaC 0RSHRXhm2IjlEemtiOLKFIyTmTbB9H2V/Qxol190n0Sd9gCzN1gQLkmhsKR4irM2I/6J 7SVQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@protonmail.com header.s=protonmail3 header.b=U1JcTFuB; arc=pass (i=1 spf=pass spfdomain=protonmail.com dkim=pass dkdomain=protonmail.com dmarc=pass fromdomain=protonmail.com); spf=pass (google.com: domain of linux-kernel+bounces-210855-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-210855-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=protonmail.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id 41be03b00d2f7-6f688644147si2364718a12.319.2024.06.11.20.24.11 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 Jun 2024 20:24:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-210855-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@protonmail.com header.s=protonmail3 header.b=U1JcTFuB; arc=pass (i=1 spf=pass spfdomain=protonmail.com dkim=pass dkdomain=protonmail.com dmarc=pass fromdomain=protonmail.com); spf=pass (google.com: domain of linux-kernel+bounces-210855-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-210855-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=protonmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 777E7B218AB for ; Wed, 12 Jun 2024 03:21:39 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4A44C2261F; Wed, 12 Jun 2024 03:21:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=protonmail.com header.i=@protonmail.com header.b="U1JcTFuB" Received: from mail-40135.protonmail.ch (mail-40135.protonmail.ch [185.70.40.135]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id CC551210FF for ; Wed, 12 Jun 2024 03:21:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.70.40.135 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718162480; cv=none; b=pVMwcQ2+bTfou2Zn0Je8dSvhVR64fOg03Q6BuhmPrV3SmrQU7VkrpyHegPPt2HpdiC3mPSKTT02jI7QYIqLa3wbHfYuZiD6fzf3RIjd/FDxTgUayDzIw8cEVhbQjQWMLkE9Ud6YC8fxOenvPfnczXDxPW+MAl1w6dqKZGJZ1bvE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718162480; c=relaxed/simple; bh=4caMDJk1fymacmDutxXRaq4p+OusCKGUepMMnXhyzuE=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=a3p6IZff3j6f3MdYfIB/fXCgRimQfOikpyOQ4TOWq325Mca6OtvQ56MuFp/cocuw+0RuGaLX4iqT/vgwOUdYJmElxSymF2rDa1jwojxsJaEcaBDiighuUDye+mdj21HuWB1x0kNp9HrNDMDDbO/0PxWKCQ6VhggVBl7/k2NspgM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=protonmail.com; spf=pass smtp.mailfrom=protonmail.com; dkim=pass (2048-bit key) header.d=protonmail.com header.i=@protonmail.com header.b=U1JcTFuB; arc=none smtp.client-ip=185.70.40.135 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=protonmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=protonmail.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1718162470; x=1718421670; bh=v9+fU/3I0sW3EO1/uEtuQOuAAW/aw8IWkdBocAl5mAU=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID:BIMI-Selector; b=U1JcTFuBUNjJx1tlixm8r0piCpAroBpoKrhEfwDWDo2pa06uw24iozBmrWEqI8weg j2kkSr3299DV3Gq6znNf4PUDER6P6hDby6KdqbOm29tfvsfCs1fqXrwVYHi5WiOVcG +Mm5TvRQbYyl8XXjVKEh8nMi8rPt5m/9CvmFd8QE3RRquXsqODO89ESwYf4O2szwl0 kFGlfwFYU5Feb6Bb0/dR2lBikK7RiSSYajg2O6cnUHPagyRJCjAqrH4xDxhX+IOTed +MkHp0g/uLKGe3cb3/I17fSXGlPY3QujRR8/zbitvmvlKXpTgiSuRvJxszecPm9Id6 AWnpJLqz2OLaw== Date: Wed, 12 Jun 2024 03:21:04 +0000 To: linux-kernel@vger.kernel.org From: Raymond Hackley Cc: Markuss Broks , Dmitry Torokhov , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Stephan Gerhold , Nikita Travkin , linux-input@vger.kernel.org, devicetree@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht Subject: [PATCH 1/3] input/touchscreen: imagis: Clarify the usage of protocol_b Message-ID: <20240612032036.33103-2-raymondhackley@protonmail.com> In-Reply-To: <20240612032036.33103-1-raymondhackley@protonmail.com> References: <20240612032036.33103-1-raymondhackley@protonmail.com> Feedback-ID: 49437091:user:proton X-Pm-Message-ID: 651ef5fd3f41cfde3c3b7171adfecf433ee63de8 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable protocol_b is a property, which tells Imagis panel to use a different format for coordinates. IST30XXC series is known for using protocol B, while the other series aren't. Note this could be confusing, unlike the model name implies. Adjust the usage of protocol_b to avoid confusion. Signed-off-by: Raymond Hackley --- drivers/input/touchscreen/imagis.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/drivers/input/touchscreen/imagis.c b/drivers/input/touchscreen= /imagis.c index 074dd6c342ec..886bcfc8497a 100644 --- a/drivers/input/touchscreen/imagis.c +++ b/drivers/input/touchscreen/imagis.c @@ -120,12 +120,12 @@ static irqreturn_t imagis_interrupt(int irq, void *de= v_id) =20 =09for (i =3D 0; i < finger_count; i++) { =09=09if (ts->tdata->protocol_b) -=09=09=09error =3D imagis_i2c_read_reg(ts, -=09=09=09=09=09=09 ts->tdata->touch_coord_cmd, &finger_status); -=09=09else =09=09=09error =3D imagis_i2c_read_reg(ts, =09=09=09=09=09=09 ts->tdata->touch_coord_cmd + (i * 4), =09=09=09=09=09=09 &finger_status); +=09=09else +=09=09=09error =3D imagis_i2c_read_reg(ts, +=09=09=09=09=09=09 ts->tdata->touch_coord_cmd, &finger_status); =09=09if (error) { =09=09=09dev_err(&ts->client->dev, =09=09=09=09"failed to read coordinates for finger %d: %d\n", @@ -394,6 +394,7 @@ static const struct imagis_properties imagis_3032c_data= =3D { =09.whoami_cmd =3D IST3038C_REG_CHIPID, =09.whoami_val =3D IST3032C_WHOAMI, =09.touch_keys_supported =3D true, +=09.protocol_b =3D true, }; =20 static const struct imagis_properties imagis_3038b_data =3D { @@ -401,7 +402,6 @@ static const struct imagis_properties imagis_3038b_data= =3D { =09.touch_coord_cmd =3D IST3038B_REG_STATUS, =09.whoami_cmd =3D IST3038B_REG_CHIPID, =09.whoami_val =3D IST3038B_WHOAMI, -=09.protocol_b =3D true, }; =20 static const struct imagis_properties imagis_3038c_data =3D { @@ -409,6 +409,7 @@ static const struct imagis_properties imagis_3038c_data= =3D { =09.touch_coord_cmd =3D IST3038C_REG_TOUCH_COORD, =09.whoami_cmd =3D IST3038C_REG_CHIPID, =09.whoami_val =3D IST3038C_WHOAMI, +=09.protocol_b =3D true, }; =20 #ifdef CONFIG_OF --=20 2.39.2