All of lore.kernel.org
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Vyacheslav Yurkov" <V.Yurkov.EXT@bruker.com>
Cc: devicetree@vger.kernel.org, robh@kernel.org, conor+dt@kernel.org,
	linux-clk@vger.kernel.org
Subject: Re: [PATCH v6 1/2] dt-bindings: clock: gpio-gate-clock: Add a new compatible string
Date: Sun, 27 Sep 2026 13:39:08 +0000	[thread overview]
Message-ID: <20260927133908.BE52E1F000FF@smtp.kernel.org> (raw)
In-Reply-To: <20260927-feature-clock-guard-v6-1-007983b13ec2@bruker.com>

Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Low] dt-bindings: clock: gpio-gate-clock: compatible string mismatch breaks validation
--

commit 2b809675a6d656fd8b8fcf12572b9880f2905a0c
Author: Vyacheslav Yurkov <V.Yurkov.EXT@bruker.com>

dt-bindings: clock: gpio-gate-clock: Add a new compatible string

Extend the binding to be used also for gpio-locked-fixed-clock.
A GPIO-locked fixed clock provider exposes a fixed-rate clock whose
availability depends on one or more GPIO lock-status signals.

> diff --git a/Documentation/devicetree/bindings/clock/gpio-gate-clock.yaml b/Documentation/devicetree/bindings/clock/gpio-gate-clock.yaml
> index d09d0e3f0c6ec..f44fdb17b627b 100644
> --- a/Documentation/devicetree/bindings/clock/gpio-gate-clock.yaml
> +++ b/Documentation/devicetree/bindings/clock/gpio-gate-clock.yaml
> @@ -11,7 +11,9 @@ maintainers:
>  
>  properties:
>    compatible:
> -    const: gpio-gate-clock
> +    enum:
> +      - gpio-gate-clock
> +      - gpio-locked-clock

[Severity: Low]
Does this missing "-fixed" suffix introduce a regression in validation? The
commit message, conditional block, and example below all use
"gpio-locked-fixed-clock", which will fail schema validation against this
enum.

[ ... ]

> +allOf:
> +  - if:
> +      properties:
> +        compatible:
> +          const: gpio-gate-clock
> +    then:
> +      required:
> +        - enable-gpios
> +  - if:
> +      properties:
> +        compatible:
> +          const: gpio-locked-fixed-clock

[Severity: Low]
Does this compatible string mismatch introduce a regression in schema checks?
If the hardware uses "gpio-locked-clock" from the enum above, this
conditional won't match and will allow invalid nodes to pass validation
silently by bypassing the required "enabled-gpios" check.

> +    then:
> +      required:
> +        - enabled-gpios
>  
>  additionalProperties: false

[ ... ]

> @@ -40,3 +61,10 @@ examples:
>          #clock-cells = <0>;
>          enable-gpios = <&gpio 1 GPIO_ACTIVE_HIGH>;
>      };
> +
> +    clk_gpio_locked {
> +        compatible = "gpio-locked-fixed-clock";

[Severity: Low]
Will this compatible string cause a regression during dt_binding_check? The
example uses a string that does not match the allowed enum values defined
above.

> +        #clock-cells = <0>;
> +        clocks = <&pll>;
> +        enabled-gpios = <&gpio0 4 GPIO_ACTIVE_HIGH>;
> +    };

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20260927-feature-clock-guard-v6-0-007983b13ec2@bruker.com?part=1

  reply	other threads:[~2026-09-27 13:39 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-09-27 13:34 [PATCH v6 0/2] A proposal to add a gpio-locked clock driver Vyacheslav Yurkov
2026-09-27 13:34 ` Vyacheslav Yurkov via B4 Relay
2026-09-27 13:34 ` [PATCH v6 1/2] dt-bindings: clock: gpio-gate-clock: Add a new compatible string Vyacheslav Yurkov
2026-09-27 13:34   ` Vyacheslav Yurkov via B4 Relay
2026-09-27 13:39   ` sashiko-bot [this message]
2026-09-27 13:34 ` [PATCH v6 2/2] clk: Add gpio-locked clock driver Vyacheslav Yurkov
2026-09-27 13:34   ` Vyacheslav Yurkov via B4 Relay
2026-09-27 13:42   ` 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=20260927133908.BE52E1F000FF@smtp.kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=V.Yurkov.EXT@bruker.com \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=linux-clk@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.