From: sashiko-bot@kernel.org
To: "AngeloGioacchino Del Regno" <angelogioacchino.delregno@collabora.com>
Cc: devicetree@vger.kernel.org, robh@kernel.org, conor+dt@kernel.org
Subject: Re: [PATCH v2 1/2] dt-bindings: thermal: mediatek: Make resets optional for MT8196
Date: Tue, 21 Jul 2026 11:01:54 +0000 [thread overview]
Message-ID: <20260721110155.4A4931F000E9@smtp.kernel.org> (raw)
In-Reply-To: <20260721105230.101906-2-angelogioacchino.delregno@collabora.com>
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [High] Driver-Binding Mismatch: The `lvts_thermal` driver unconditionally requires the `resets` property, which causes probe failure if omitted on MT8196.
--
--- Patch [1]: [PATCH v2 1/2] dt-bindings: thermal: mediatek: Make resets optional for MT8196 ---
commit 8c88985c870e0f500a0c1636d7b632cee772d3c6
Author: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
dt-bindings: thermal: mediatek: Make resets optional for MT8196
This commit updates the device tree binding for mediatek,lvts-thermal to
make the resets property optional for the MT8196 AP and MCU platforms.
This prevents hardware resets that could result in thermal protect
shutdowns or permanent system slowdowns.
> diff --git a/Documentation/devicetree/bindings/thermal/mediatek,lvts-thermal.yaml b/Documentation/devicetree/bindings/thermal/mediatek,lvts-thermal.yaml
> index 9752351306703..29f431fcdcd5f 100644
> --- a/Documentation/devicetree/bindings/thermal/mediatek,lvts-thermal.yaml
> +++ b/Documentation/devicetree/bindings/thermal/mediatek,lvts-thermal.yaml
> @@ -94,12 +94,23 @@ allOf:
> nvmem-cell-names:
> minItems: 2
>
> + - if:
> + properties:
> + compatible:
> + not:
> + contains:
> + enum:
> + - mediatek,mt8196-lvts-ap
> + - mediatek,mt8196-lvts-mcu
> + then:
> + required:
> + - resets
> +
> required:
> - compatible
> - reg
> - interrupts
> - clocks
> - - resets
[Severity: High]
Will omitting the resets property cause a probe regression?
Looking at lvts_probe() in drivers/thermal/mediatek/lvts_thermal.c, the driver
unconditionally requires the reset control:
lvts_td->reset = devm_reset_control_get_by_index(dev, 0);
if (IS_ERR(lvts_td->reset))
return dev_err_probe(dev, PTR_ERR(lvts_td->reset), "Failed to get reset control\n");
If the property is omitted to conform to this new schema on MT8196 boards,
devm_reset_control_get_by_index() returns ERR_PTR(-ENOENT) and the driver
aborts probing.
Should the driver be updated to use devm_reset_control_get_optional_exclusive()
or similar to match this binding change?
--
Sashiko AI review · https://sashiko.dev/#/patchset/20260721105230.101906-1-angelogioacchino.delregno@collabora.com?part=1
next prev parent reply other threads:[~2026-07-21 11:01 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-21 10:52 [PATCH v2 0/2] lvts_thermal: Make reset optional for MT8196 AngeloGioacchino Del Regno
2026-07-21 10:52 ` [PATCH v2 1/2] dt-bindings: thermal: mediatek: Make resets " AngeloGioacchino Del Regno
2026-07-21 11:01 ` sashiko-bot [this message]
2026-07-21 11:20 ` AngeloGioacchino Del Regno
2026-07-22 3:35 ` Chen-Yu Tsai
2026-07-21 10:52 ` [PATCH v2 2/2] thermal/drivers/mediatek/lvts_thermal: Make reset " AngeloGioacchino Del Regno
2026-07-22 3:37 ` Chen-Yu Tsai
2026-07-22 6:47 ` Philipp Zabel
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=20260721110155.4A4931F000E9@smtp.kernel.org \
--to=sashiko-bot@kernel.org \
--cc=angelogioacchino.delregno@collabora.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--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