From: sashiko-bot@kernel.org
To: "Marco Mattiolo" <marco.mattiolo@runbox.com>
Cc: linux-input@vger.kernel.org, devicetree@vger.kernel.org,
robh@kernel.org, conor+dt@kernel.org, dmitry.torokhov@gmail.com
Subject: Re: [PATCH 5/5] arm64: dts: qcom: sdm845-google-crosshatch: Add touchscreen support
Date: Fri, 04 Dec 2026 22:22:57 +0000 [thread overview]
Message-ID: <sashiko-outbox-250749@kernel.org> (raw)
In-Reply-To: <20261204-crosshatch_touchscreen-v1-5-9f76ff10eab1@runbox.com>
Thank you for your contribution! Sashiko AI review found 2 potential
issues to consider:
- [High] arm64: dts: qcom: crosshatch accidentally deletes mdss disabled
override
- [Medium] Input: s6sy761: s6sy761_power_on() leaves reset GPIO
deasserted on error
--
commit 64cc994b433a5ec33a076729ba6ce3a2c5dbc02b
Author: Marco Mattiolo <marco.mattiolo@runbox.com>
arm64: dts: qcom: sdm845-google-crosshatch: Add touchscreen support
This commit adds the Samsung s6sy761 touchscreen node on i2c2 for the Google
Pixel 3 XL (crosshatch) and removes the disabled override for mdss.
> diff --git a/arch/arm64/boot/dts/qcom/sdm845-google-crosshatch.dts b/arch/arm64/boot/dts/qcom/sdm845-google-crosshatch.dts
> index 2a81ca1d00b1b..7550a0b1041dd 100644
> --- a/arch/arm64/boot/dts/qcom/sdm845-google-crosshatch.dts
> +++ b/arch/arm64/boot/dts/qcom/sdm845-google-crosshatch.dts
> @@ -26,9 +26,26 @@ &framebuffer0 {
> stride = <(1440 * 4)>;
> };
>
> -&mdss {
> - /* Disable for now so simple-framebuffer continues working */
> - status = "disabled";
[Severity: High]
Was removing the &mdss disabled override accidental?
sdm845-google-common.dtsi enables &mdss, while &dispcc remains disabled in
this file. Because &mdss depends on &dispcc for its power domain and
clocks, msm-mdss repeatedly defers and fails probe at boot, delaying
sync_state() on mmss_noc, mem_noc, apps_smmu, and rpmhpd.
> +&i2c2 {
> + clock-frequency = <400000>;
> +
> + status = "okay";
> +
> + touchscreen@48 {
> + compatible = "samsung,s6sy761";
> + reg = <0x48>;
> +
> + interrupts-extended = <&tlmm 125 IRQ_TYPE_LEVEL_LOW>;
> +
> + pinctrl-0 = <&touchscreen_default>;
> + pinctrl-names = "default";
> +
> + reset-gpios = <&tlmm 99 GPIO_ACTIVE_LOW>;
[Severity: Medium]
Does s6sy761_power_on() leave reset_gpio deasserted on error now that
reset-gpios is wired up here?
In drivers/input/touchscreen/s6sy761.c (added in commit "Input: s6sy761 -
Add optional reset GPIO support"), s6sy761_power_on() deasserts reset_gpio
before the I2C boot checks, but err_disable_regulators does not re-assert
it:
drivers/input/touchscreen/s6sy761.c:s6sy761_power_on() {
...
/* release the optional reset line, then wait for the boot */
gpiod_set_value_cansleep(sdata->reset_gpio, 0);
...
err_disable_regulators:
regulator_bulk_disable(ARRAY_SIZE(sdata->regulators),
sdata->regulators);
return ret;
}
Because sdata->powered_up remains false when s6sy761_power_on() fails,
s6sy761_power_off() returns early too. On an I2C failure during probe or
resume, the active-low reset line stays driven high while the supplies are
off, risking back-powering the controller.
Should err_disable_regulators assert sdata->reset_gpio before calling
regulator_bulk_disable()?
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261204-crosshatch_touchscreen-v1-0-9f76ff10eab1@runbox.com?part=5
prev parent reply other threads:[~2026-12-04 22:22 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-04 22:13 [PATCH 0/5] Introduce Samsung S6SY761 (Google Pixel 3 XL) touchscreen Marco Mattiolo via B4 Relay
2026-12-04 22:13 ` [PATCH 1/5] dt-bindings: input: touchscreen: samsung,s6sy761: Introduce reset and mode-switch GPIOs Marco Mattiolo via B4 Relay
2026-12-04 22:20 ` sashiko-bot
2026-12-04 22:13 ` [PATCH 2/5] Input: s6sy761 - Add optional reset GPIO support Marco Mattiolo via B4 Relay
2026-12-04 22:26 ` sashiko-bot
2026-12-04 22:13 ` [PATCH 3/5] Input: s6sy761 - Add mode-switch support Marco Mattiolo via B4 Relay
2026-12-04 22:25 ` sashiko-bot
2026-12-04 22:13 ` [PATCH 4/5] arm64: dts: qcom: sdm845-google: Group touchscreen pins, add mode-switch pin Marco Mattiolo via B4 Relay
2026-12-04 22:21 ` sashiko-bot
2026-12-04 22:32 ` David Heidelberg
2026-12-04 22:13 ` [PATCH 5/5] arm64: dts: qcom: sdm845-google-crosshatch: Add touchscreen support Marco Mattiolo via B4 Relay
2026-12-04 22:22 ` sashiko-bot [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=sashiko-outbox-250749@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=dmitry.torokhov@gmail.com \
--cc=linux-input@vger.kernel.org \
--cc=marco.mattiolo@runbox.com \
--cc=robh@kernel.org \
--cc=sashiko-reviews@lists.linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox