From nobody Fri Dec 19 18:48:54 2025 Received: from mail11.truemail.it (mail11.truemail.it [217.194.8.81]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 685EFBA30; Fri, 22 Dec 2023 18:31:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=dolcini.it Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=dolcini.it Received: from francesco-nb.pivistrello.it (93-49-2-63.ip317.fastwebnet.it [93.49.2.63]) by mail11.truemail.it (Postfix) with ESMTPA id 43E5E21EB5; Fri, 22 Dec 2023 19:31:18 +0100 (CET) From: Francesco Dolcini To: Dmitry Torokhov Cc: Emanuele Ghidoli , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, Francesco Dolcini Subject: [PATCH v3 1/2] Input: ilitek_ts_i2c - avoid wrong input subsystem sync Date: Fri, 22 Dec 2023 19:31:13 +0100 Message-Id: <20231222183114.30775-2-francesco@dolcini.it> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20231222183114.30775-1-francesco@dolcini.it> References: <20231222183114.30775-1-francesco@dolcini.it> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" From: Emanuele Ghidoli For different reasons i2c transaction may fail or report id message content may be wrong. Avoid sync the input subsystem if message cannot be parsed. An input subsystem sync without points is interpreted as "nothing is touching the screen" while normally this is not the case. Fixes: 42370681bd46 ("Input: Add support for ILITEK Lego Series") Reviewed-by: Francesco Dolcini Signed-off-by: Emanuele Ghidoli Signed-off-by: Francesco Dolcini reviewed-by, it is assumed that you reviewed the code you are passing --- v3: added reviewed by --- drivers/input/touchscreen/ilitek_ts_i2c.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/input/touchscreen/ilitek_ts_i2c.c b/drivers/input/touc= hscreen/ilitek_ts_i2c.c index fc4e39b6651a..250133f0d68f 100644 --- a/drivers/input/touchscreen/ilitek_ts_i2c.c +++ b/drivers/input/touchscreen/ilitek_ts_i2c.c @@ -203,9 +203,9 @@ static int ilitek_process_and_report_v6(struct ilitek_t= s_data *ts) ilitek_touch_down(ts, id, x, y); } =20 -err_sync_frame: input_mt_sync_frame(input); input_sync(input); +err_sync_frame: return error; } =20 --=20 2.25.1