From patchwork Tue Dec 29 16:25:58 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Geert Uytterhoeven X-Patchwork-Id: 354087 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-11.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH, MAILING_LIST_MULTI, SPF_HELO_NONE, SPF_PASS, URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0CE38C433E6 for ; Tue, 29 Dec 2020 16:26:49 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id BDAE822209 for ; Tue, 29 Dec 2020 16:26:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726214AbgL2Q0r (ORCPT ); Tue, 29 Dec 2020 11:26:47 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48038 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726256AbgL2Q0q (ORCPT ); Tue, 29 Dec 2020 11:26:46 -0500 Received: from baptiste.telenet-ops.be (baptiste.telenet-ops.be [IPv6:2a02:1800:120:4::f00:13]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 69E1FC061793 for ; Tue, 29 Dec 2020 08:26:06 -0800 (PST) Received: from ramsan.of.borg ([84.195.186.194]) by baptiste.telenet-ops.be with bizsmtp id AGS4240094C55Sk01GS4Cp; Tue, 29 Dec 2020 17:26:04 +0100 Received: from rox.of.borg ([192.168.97.57]) by ramsan.of.borg with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.93) (envelope-from ) id 1kuHox-0014bC-D4; Tue, 29 Dec 2020 17:26:03 +0100 Received: from geert by rox.of.borg with local (Exim 4.93) (envelope-from ) id 1kuHow-0092Vs-Kd; Tue, 29 Dec 2020 17:26:02 +0100 From: Geert Uytterhoeven To: Dmitry Torokhov , Andrej Valek Cc: Wolfram Sang , linux-input@vger.kernel.org, linux-renesas-soc@vger.kernel.org, Geert Uytterhoeven Subject: [PATCH 0/3] Input: st1232 - fixes for resolution reading Date: Tue, 29 Dec 2020 17:25:58 +0100 Message-Id: <20201229162601.2154566-1-geert+renesas@glider.be> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org Hi Dmitry, Andrej, The recent commit 3a54a215410b1650 ("Input: st1232 - add support resolution reading") broke probing of the st1232 touchscreen on r8a7740/armadillo: st1232-ts 1-0055: Failed to read resolution: -6 Upon investigation, this turned out to be a little bit more complicated than expected, hence I wrote not one but three fixes. Thanks for your comments! Geert Uytterhoeven (3): Input: st1232 - fix off-by-one error in resolution handling Input: st1232 - do not read more bytes than needed Input: st1232 - wait until device is ready before reading resolution drivers/input/touchscreen/st1232.c | 48 ++++++++++++++++++++++++++---- 1 file changed, 42 insertions(+), 6 deletions(-)