From: sashiko-bot@kernel.org
To: adrian.ho.yin.ng@altera.com
Cc: conor+dt@kernel.org, robh@kernel.org, devicetree@vger.kernel.org
Subject: Re: [PATCH v7 1/2] dt-bindings: usb: add Altera Agilex5 DWC3 controller
Date: Fri, 11 Sep 2026 09:13:35 +0000 [thread overview]
Message-ID: <20260911091335.AF1481F000FF@smtp.kernel.org> (raw)
In-Reply-To: <0fbda23eb4a22a56e455b5e89125813af60ab0cc.1789114385.git.adrian.ho.yin.ng@altera.com>
Thank you for your contribution! Sashiko AI review found 2 potential issue(s) to consider:
- [Low] The schema incorrectly uses `additionalProperties: false` while referencing a common schema (`snps,dwc3-common.yaml#`), breaking property inheritance and leading to redundant property declarations.
- [Low] Mandating software workaround quirks (`snps,dis_u2_susphy_quirk`, `snps,dis_u3_susphy_quirk`) in the `required` list.
--
commit dc0ed2c5f838c95fd4fbbcd46531a58ec24f6ca2
Author: Adrian Ng Ho Yin <adrian.ho.yin.ng@altera.com>
dt-bindings: usb: add Altera Agilex5 DWC3 controller
This commit adds a device tree binding for the Altera Agilex5 SoC integration
of the Synopsys DWC3 USB controller.
> diff --git a/Documentation/devicetree/bindings/usb/altr,agilex5-dwc3.yaml b/Documentation/devicetree/bindings/usb/altr,agilex5-dwc3.yaml
> new file mode 100644
> index 0000000000000..610ddcb632e28
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/usb/altr,agilex5-dwc3.yaml
[ ... ]
> + reset-names:
> + items:
> + - const: core
> + - const: ecc
> +
> + dr_mode: true
> +
> + maximum-speed: true
> +
> + snps,dis_u2_susphy_quirk: true
> +
> + snps,dis_u3_susphy_quirk: true
> +
> +required:
> + - compatible
> + - reg
> + - clocks
> + - clock-names
> + - interrupts
> + - phys
> + - phy-names
> + - resets
> + - reset-names
> + - snps,dis_u2_susphy_quirk
> + - snps,dis_u3_susphy_quirk
[Severity: Low]
Are these software workaround quirks strictly required for all hardware configurations?
Quirks are meant to be optional software workarounds for specific boards or
silicon revisions. If every device matching altr,agilex5-dwc3 intrinsically
requires these suspend PHY quirks, shouldn't the driver apply them natively
in code when it matches the compatible string, rather than forcing device
tree authors to manually include these workaround flags in every node?
> +
> +additionalProperties: false
[Severity: Low]
Does this strict inheritance restriction cause the redundant definitions above?
In JSON schema, additionalProperties: false ignores properties validated by
allOf $ref schemas like snps,dwc3-common.yaml. This appears to force
redundantly redefining standard properties like dr_mode, maximum-speed, and
the suspend PHY quirks as true in the local properties block just to pass
validation.
Could this be changed to unevaluatedProperties: false to allow removing the
redundant local declarations while properly inheriting the schema definitions?
--
Sashiko AI review · https://sashiko.dev/#/patchset/cover.1789114385.git.adrian.ho.yin.ng@altera.com?part=1
next prev parent reply other threads:[~2026-09-11 9:13 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-08 17:04 [PATCH v6 0/4] Add USB3.1 support for Agilex5 Adrian Ng Ho Yin
2026-09-08 17:04 ` [PATCH v6 1/4] dt-bindings: usb: add Altera Agilex5 DWC3 controller Adrian Ng Ho Yin
2026-09-08 17:24 ` sashiko-bot
2026-09-11 7:21 ` Krzysztof Kozlowski
2026-09-08 17:04 ` [PATCH v6 2/4] arm64: dts: intel: agilex5: add USB3.1 controller node Adrian Ng Ho Yin
2026-09-08 17:29 ` sashiko-bot
2026-09-11 7:21 ` Krzysztof Kozlowski
2026-09-11 7:58 ` NG, ADRIAN HO YIN
2026-09-08 17:04 ` [PATCH v6 3/4] arm64: dts: intel: agilex5: remove usb0 in Agilex5 SoCDK Adrian Ng Ho Yin
2026-09-11 7:22 ` Krzysztof Kozlowski
2026-09-11 7:59 ` NG, ADRIAN HO YIN
2026-09-08 17:04 ` [PATCH v6 4/4] usb: dwc3: add Altera Agilex5 support to generic platform driver Adrian Ng Ho Yin
2026-09-11 9:04 ` [PATCH v7 0/2] usb: dwc3: add Altera Agilex5 DWC3 support adrian.ho.yin.ng
2026-09-11 9:04 ` [PATCH v7 1/2] dt-bindings: usb: add Altera Agilex5 DWC3 controller adrian.ho.yin.ng
2026-09-11 9:13 ` sashiko-bot [this message]
2026-09-11 9:04 ` [PATCH v7 2/2] usb: dwc3: add Altera Agilex5 support to generic platform driver adrian.ho.yin.ng
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=20260911091335.AF1481F000FF@smtp.kernel.org \
--to=sashiko-bot@kernel.org \
--cc=adrian.ho.yin.ng@altera.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