Received: by 2002:ab2:6f44:0:b0:1fd:c486:4f03 with SMTP id l4csp130420lqq; Wed, 12 Jun 2024 20:06:20 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXjyT2K8lqhEupG0yhqM2csT6g5fc5mY+hCJRTG+WXkBLTrdGHrWjml97EhDTeUrvsQ+jWRGj1/pklHCphEfJw1Doh5g0konowOQjw24Q== X-Google-Smtp-Source: AGHT+IHz5i1e9EuJwOO5EcMY/9hhIsZlRJ2DGcyrre7iIxYU/80cwpOSiTjuH673bF2Igg5rlrKU X-Received: by 2002:a05:6402:1212:b0:578:5f9d:9ab7 with SMTP id 4fb4d7f45d1cf-57cb4c17aa7mr1027670a12.17.1718247980204; Wed, 12 Jun 2024 20:06:20 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718247980; cv=pass; d=google.com; s=arc-20160816; b=k3VIgsrAWgJot3b1sM6ogCtdzxFSX3PXUvIgUA1kqMtjpfKrepArRzGK3Cwg7HtBoY 6JkqU4E3lFjHH0ZPmrnfZvXMgdClYt35asBxauE36dHdyVIHf3SevxKm637ej0Aga3Cs xUZyEZAv4ljdVLkY7sbuNTjd3UumccFl2DuKlC4sfyEq5uMI2z9LtsAnOybOplKsWyDH rqObn9BNZfcTpS50/nFKdh5JRjFxJ5w1UWGZo7bGrWQQgVHibBClyrh90w4Icv/WC8mC wALyQpoBq590cvP/VgihmUqnJJ1JEfIteyLlKnXPX8apPKaAgvlkmX5HNvrH8o3V5BKH oocQ== 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=g5OQxMCL5U1MaFGCXuK8Q+iGM4dCjGcTrQ3t9IDxyVhkQ60ACHsecJVPpzqrhOvMGK ISBtM6weFfoTI+IT5ggHuIWBT8xIwMtd0mj7XaYlS+07sQrQ7HWeXWYM9gfFzjF/WG2t YZWa7pfiZ81T5obGRC4DMwV0MWYV2Um1iMIDNKda0pM+YC9Vb5Oor9uCaUz/UgoLDIz5 vll70EFS3I2A7B8SQJBkl/cSq5ZgwRQ1chgAEQV8ZCGCSrQ52Nx/NldnSkAgFIMYMLD7 4mQjDzaB+1lqrlrV0ClF8l9W4tgtGC2+gbrbxPsD268XCnilfGJy179bcNL9/HMZOrYZ eJSQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@protonmail.com header.s=protonmail3 header.b=gnjJoPkO; 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-212511-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-212511-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=protonmail.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id 4fb4d7f45d1cf-57cb745aaf0si231654a12.484.2024.06.12.20.06.20 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 Jun 2024 20:06:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-212511-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@protonmail.com header.s=protonmail3 header.b=gnjJoPkO; 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-212511-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-212511-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 am.mirrors.kernel.org (Postfix) with ESMTPS id E62561F22888 for ; Thu, 13 Jun 2024 03:06:19 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 793B012D74B; Thu, 13 Jun 2024 03:06:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=protonmail.com header.i=@protonmail.com header.b="gnjJoPkO" Received: from mail-41104.protonmail.ch (mail-41104.protonmail.ch [185.70.41.104]) (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 3146612CD8C for ; Thu, 13 Jun 2024 03:05:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.70.41.104 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718247961; cv=none; b=l+eKxSuo7dBLfGx+XCMBvkZ96sElb7diVRRjSGvBqP4/Km/YWI45Z9WkrILGHNHh8mEOCYKgqraQxtUyVqW/U3895w8b6+qrCLdTqG1SBqEA1gpwWjwkCNrVyqp1AT3r+RrDG3Yes6NtonZHxb5zBw6j2NwSczwcmbd93H/7z5o= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718247961; c=relaxed/simple; bh=4caMDJk1fymacmDutxXRaq4p+OusCKGUepMMnXhyzuE=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=dfDB+ncMOF22Phin9NQojMW8HNl6togrkQyeeV4cE2gBKAiY9dfvBLUUey9WDnjYewvnjzJ7nKVpbTJgxG1n2Hp7WkfcfOzHF2VVisWBqm6SyL1m1f0r9NjtB3UjhELLVLXNwcRg4TYsqrGUhfoVyD7fJ1NyH81jVBiU3nlbB0s= 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=gnjJoPkO; arc=none smtp.client-ip=185.70.41.104 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=1718247417; x=1718506617; 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=gnjJoPkOQ9grf+eAMoLWDYAYxEI3dNd7sUEO5WPg6WC3XPKbGceb5L3P5wWYPB9WJ 67uzBFXGd5jwsd+RCGiSk8bc8s8ERF6xsNA+J0u59PXufjSsbr1/UPDGA9ubomp4Zx essIN93KcXXJq/OUDyTxOTrgy8YLTy5eaJOAb+5rJFNsLAWDFHx+WBkN4ApYUneMQj a0OiqDhsWT9qx8cXEtdVq0ppU5EQGAqjveJLajZ10SMg8J4g6+OhPd4K8qxwgyA51O wDRzryZlBR08bwSsAX9E4dve0n1w4NEiVmP2JunbotZxnryop8+ZcnAKOiPxn1XKOV f0MPoGvqz/6EQ== Date: Thu, 13 Jun 2024 02:56:54 +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 v2 1/3] input/touchscreen: imagis: Clarify the usage of protocol_b Message-ID: <20240613025631.5425-2-raymondhackley@protonmail.com> In-Reply-To: <20240613025631.5425-1-raymondhackley@protonmail.com> References: <20240613025631.5425-1-raymondhackley@protonmail.com> Feedback-ID: 49437091:user:proton X-Pm-Message-ID: b8475f1b66fb1743f99407396eeefd71710f8969 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