From: sashiko-bot@kernel.org
To: "Akari Tsuyukusa" <akkun11.open@gmail.com>
Cc: linux-watchdog@vger.kernel.org, devicetree@vger.kernel.org,
robh@kernel.org, conor+dt@kernel.org
Subject: Re: [PATCH 4/7] dt-bindings: watchdog: mediatek,mtk-wdt: remove mt6589 fallback items
Date: Thu, 16 Jul 2026 16:49:16 +0000 [thread overview]
Message-ID: <20260716164916.CFB991F000E9@smtp.kernel.org> (raw)
In-Reply-To: <20260716161923.266315-5-akkun11.open@gmail.com>
Thank you for your contribution! Sashiko AI review found 2 potential issue(s) to consider:
New issues:
- [Medium] Removing the fallback `items` block breaks schema validation for existing older Device Trees.
Pre-existing issues:
- [High] This problem wasn't introduced by this patch, but the schema fails to conditionally enforce `#reset-cells` as a required property for watchdog variants that act as reset providers.
--
--- Patch [4]: [PATCH 4/7] dt-bindings: watchdog: mediatek,mtk-wdt: remove mt6589 fallback items ---
commit 51d21b22f4b3e7a458ffe7ba34258074ee5dc9ac
Author: Akari Tsuyukusa <akkun11.open@gmail.com>
dt-bindings: watchdog: mediatek,mtk-wdt: remove mt6589 fallback items
This commit removes the fallback items block for the mediatek,mt6589-wdt
compatible string from the MediaTek watchdog binding. It retains only the
flat enum, under the premise that all DTS files have been converted to
standalone compatibles.
> diff --git a/Documentation/devicetree/bindings/watchdog/mediatek,mtk-wdt.yaml b/Documentation/devicetree/bindings/watchdog/mediatek,mtk-wdt.yaml
> index f4eaa5f7c5bc3..2411c02f1cb0f 100644
> --- a/Documentation/devicetree/bindings/watchdog/mediatek,mtk-wdt.yaml
> +++ b/Documentation/devicetree/bindings/watchdog/mediatek,mtk-wdt.yaml
> @@ -42,21 +42,6 @@ properties:
> - mediatek,mt8195-wdt
> - mediatek,mt8365-wdt
> - mediatek,mt8516-wdt
> - - items:
> - - enum:
> - - mediatek,mt2701-wdt
> - - mediatek,mt6572-wdt
> - - mediatek,mt6582-wdt
[Severity: Medium]
Will removing this fallback block cause validation regressions for existing
older device trees?
If users run dtbs_check against older device trees containing compatible
arrays like "mediatek,mt8516-wdt", "mediatek,mt6589-wdt", they will now
fail validation.
[ ... ]
Looking at the required properties list further down in
Documentation/devicetree/bindings/watchdog/mediatek,mtk-wdt.yaml:
> '#reset-cells':
> const: 1
>
> required:
> - compatible
> - reg
[Severity: High]
This is a pre-existing issue, but does the schema fail to conditionally
enforce #reset-cells as a required property for watchdog variants that act
as reset providers?
If device trees omit this property for reset provider variants like
"mediatek,mt8188-wdt", they silently pass validation. Dependent subsystems
relying on the reset line will then fail at runtime when attempting to use
the undocumented functionality.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20260716161923.266315-1-akkun11.open@gmail.com?part=4
next prev parent reply other threads:[~2026-07-16 16:49 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-16 16:19 [PATCH 0/7] Add reset support to MT6589 wdt and remove fallback compatibles Akari Tsuyukusa
2026-07-16 16:19 ` [PATCH 1/7] watchdog: mtk_wdt: add explicit compatibles for SoCs using mt6589 fallback Akari Tsuyukusa
2026-07-16 16:37 ` sashiko-bot
2026-07-16 16:19 ` [PATCH 2/7] dt-bindings: watchdog: mediatek,mtk-wdt: add compatibles for all SoCs Akari Tsuyukusa
2026-07-16 16:19 ` [PATCH 3/7] arm/arm64: dts: mediatek: drop mt6589 fallback from watchdog Akari Tsuyukusa
2026-07-16 16:36 ` sashiko-bot
2026-07-16 18:35 ` Roman Vivchar
2026-07-16 16:19 ` [PATCH 4/7] dt-bindings: watchdog: mediatek,mtk-wdt: remove mt6589 fallback items Akari Tsuyukusa
2026-07-16 16:49 ` sashiko-bot [this message]
2026-07-16 16:19 ` [PATCH 5/7] dt-bindings: reset: Add bindings for MediaTek MT6589 reset controller Akari Tsuyukusa
2026-07-16 16:47 ` sashiko-bot
2026-07-16 16:19 ` [PATCH 6/7] watchdog: mtk_wdt: add reset controller support for MT6589 Akari Tsuyukusa
2026-07-16 16:33 ` sashiko-bot
2026-07-16 16:19 ` [PATCH 7/7] arm: dts: mediatek: mt6589: add reset support for wdt Akari Tsuyukusa
2026-07-16 16:32 ` sashiko-bot
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=20260716164916.CFB991F000E9@smtp.kernel.org \
--to=sashiko-bot@kernel.org \
--cc=akkun11.open@gmail.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=linux-watchdog@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.