From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796423109; b=B2hBDPvw2wC65bFy58vbWxxMnSJl4vkUdLH4VAMBtsWzb0g0ArasZpi6+vRaDUYlFOLR qcfJD397DlzWypRwMJb1AILzPe0fs1hRsZvSAJq9qWMaLtTYKYh50v9EHYIWrmtCgOyPT BSEgasJfgGVIkQ/QyUtePrLGwOMuK6NDGxAldgOlbL2Q/REQXeGFfIY0uD96LBXB7DQGa o6Pa3vzPm/Pj+ZeU3AhVxeZty5khmPOEVed/kzliddiyHvMPiOrHqKFtVwj1bKXrYdNg8 N3zzpne4tOAXmlVOx8hvLT53ZA18QJBiSg6hRvMWX39lLAe8fMd6Ot2F4GbV0liUivg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796423109; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To:Cc: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=4oRkZ2E/11JVYX0gSZgzc0INk1OSRM9lUE1tRH1Tvpk=; b=cZgrY5B0Q0qIL3WP0VzmPQBSeG/TYTDYyvzW1wxK8rfnD2VvkRZ+GDkw34Uz07w3J/Xf BYjCB8efV+baIZ/iNp1y184ngXcPZQ2nW32wqjUNu8UkLB+AIHUPQH4rfQBbAFH+9NuSt hDFwyacyfK98NnmSCaliw/I4apa/xZ5yFQT2CXW/IrDhBm2UIk6Ecd9Mn4UbEiE1/pdHK Y+Pc7j9VdML08WmMlJTFYHkVAMMQ5DRkBKYIPEp9En09ZikTkkhsYDq8TjWhfDhlELGPT upFrmDSVWCcUnaxgQ1kXjxFJIlLRz3HyvkbYOGFnODiL8+gVSP99OK74ypZVndDFARw== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=MKqerS6O; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 29C45606A32C; Fri, 4 Dec 2026 22:25:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=MKqerS6O Received: by smtp.kernel.org (Postfix) with ESMTPSA id 860DE1F00936; Fri, 4 Dec 2026 22:25:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796423108; bh=4oRkZ2E/11JVYX0gSZgzc0INk1OSRM9lUE1tRH1Tvpk=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=MKqerS6O/lp9P7B0t7keWxk6/AvkxvDBER+vlGXiInn8vpLtuLRmvEHTBBi6PwNTc 2ywphbKFlglRIgZrzCLyxoE9XqjiQATkWlN7gqwynSM3gC4nM42mTFfPnhop4gz5V3 4/hYgG5FIreq4qpSF09UUSZxYTz5rQtjgApuJvOE+iT9k3i0wgHIUsOVd/BHxn4cJ3 WaQaH4LqGaoyxFZzadxcVNHwXfBI7TyHdfd35Ud5oonn5etzTNYAvpaPRWIZVwuPCL csML/DYA0ssB7hFx3O5byMYfwQmLUpbMmoG8YDR7UeJlj0Y5R4bDcLMr38nXeuqbHH +nfol8tt4BY/g== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH 3/5] Input: s6sy761 - Add mode-switch support Reply-To: sashiko-reviews@lists.linux.dev To: "Marco Mattiolo" Cc: linux-input@vger.kernel.org, devicetree@vger.kernel.org, robh@kernel.org, conor+dt@kernel.org, dmitry.torokhov@gmail.com In-Reply-To: <20261204-crosshatch_touchscreen-v1-3-9f76ff10eab1@runbox.com> References: <20261204-crosshatch_touchscreen-v1-0-9f76ff10eab1@runbox.com> <20261204-crosshatch_touchscreen-v1-3-9f76ff10eab1@runbox.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Fri, 04 Dec 2026 22:25:08 +0000 X-Mailing-List: linux-input@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list Thank you for your contribution! Sashiko AI review found 1 potential issue to consider: - [Medium] Input: s6sy761: s6sy761_power_on() leaves reset deasserted on error -- commit 038329598e92eec17f68c862bc567c93b4e723cc Author: Marco Mattiolo Input: s6sy761 - Add mode-switch support This commit adds support for an optional mode-switch GPIO in the s6sy761 touchscreen driver and asserts it during probe so the AP owns the touch I2C bus before the first I2C access. > diff --git a/drivers/input/touchscreen/s6sy761.c b/drivers/input/touchscr= een/s6sy761.c > index 5972a3194a7dc..7f2730e306999 100644 > --- a/drivers/input/touchscreen/s6sy761.c > +++ b/drivers/input/touchscreen/s6sy761.c [ ... ] > @@ -436,6 +437,16 @@ static int s6sy761_probe(struct i2c_client *client) > return dev_err_probe(&client->dev, PTR_ERR(sdata->reset_gpio), > "Failed to get reset GPIO\n"); > =20 > + /* > + * Some boards share the touch I2C bus between the AP and the SLPI > + * sensor DSP; make the AP the bus master before talking to the chip. > + */ > + gpiod =3D devm_gpiod_get_optional(&client->dev, "mode-switch", > + GPIOD_OUT_HIGH); > + if (IS_ERR(gpiod)) > + return dev_err_probe(&client->dev, PTR_ERR(gpiod), > + "Failed to get mode-switch GPIO\n"); > + > err =3D devm_add_action_or_reset(&client->dev, s6sy761_power_off, sdata= ); > if (err) > return err; [Severity: Medium] In commit "Input: s6sy761 - Add optional reset GPIO support", does s6sy761_power_on() leave sdata->reset_gpio deasserted on error? drivers/input/touchscreen/s6sy761.c:s6sy761_power_on() { ... gpiod_set_value_cansleep(sdata->reset_gpio, 0); msleep(140); ... if (ret < 0) goto err_disable_regulators; ... err_disable_regulators: regulator_bulk_disable(ARRAY_SIZE(sdata->regulators), sdata->regulators); return ret; } If an I2C transfer or boot status check fails after releasing reset, err_disable_regulators disables vdd and avdd without re-asserting sdata->reset_gpio. Because sdata->powered_up is still false, s6sy761_power_off() returns early and does not assert it either. This leaves the active-low reset line driven high while the controller supplies are off, risking back-powering the chip through ESD diodes and preventing a clean reset pulse on a later s6sy761_resume(). --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261204-crosshatch= _touchscreen-v1-0-9f76ff10eab1@runbox.com?part=3D3