All of lore.kernel.org
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Colin Huang via B4 Relay" <devnull+u8813345.gmail.com@kernel.org>
Cc: linux-hwmon@vger.kernel.org
Subject: Re: [PATCH v3 1/3] dt-bindings: hwmon: pmbus: add Delta E50SN12051 binding
Date: Thu, 30 Apr 2026 06:59:08 +0000	[thread overview]
Message-ID: <20260430065909.981EAC4AF09@smtp.kernel.org> (raw)
In-Reply-To: <20260430-add-e50sn12051-v3-1-f6d4e043ec7c@gmail.com>

Thank you for your contribution! Sashiko AI review found 2 potential issue(s) to consider:
- [Low] The binding description violates Devicetree principles by describing software instead of hardware. It explicitly states 'The driver supports...', which is an OS-specific software description.
- [Low] The Devicetree example uses the Linux-specific subsystem name 'hwmon@40' for the node name instead of a generic functional name.
--

commit 8f686eaa80cf8986d09fe9ea7dca7debf1c51cb1
Author: Colin Huang <u8813345@gmail.com>

dt-bindings: hwmon: pmbus: add Delta E50SN12051 binding

This commit introduces the devicetree binding schema for the Delta E50SN12051
PMBus-compliant sensor.

> diff --git a/Documentation/devicetree/bindings/hwmon/pmbus/delta,e50sn12051.yaml b/Documentation/devicetree/bindings/hwmon/pmbus/delta,e50sn12051.yaml
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/hwmon/pmbus/delta,e50sn12051.yaml
[ ... ]
> +description: |
> +  This binding describes the Delta E50SN12051 PMBus sensor.
> +  The driver supports reading voltage, current, and temperature
> +  using the PMBus interface.

This isn't a bug, but should the description focus purely on the hardware
rather than mentioning what the driver supports? Devicetree bindings are
generally expected to be OS-agnostic hardware descriptions.

[ ... ]
> +examples:
> +  - |
> +    i2c {
> +        #address-cells = <1>;
> +        #size-cells = <0>;
> +
> +        hwmon@40 {

Is hwmon@40 the most appropriate node name here? The devicetree specification
usually recommends using generic names that reflect the function of the
hardware, such as sensor@40, rather than OS-specific subsystem names like
hwmon.

> +            compatible = "delta,e50sn12051";
> +            reg = <0x40>;
> +        };
> +    };

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20260430-add-e50sn12051-v3-0-f6d4e043ec7c@gmail.com?part=1

  reply	other threads:[~2026-04-30  6:59 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-04-30  6:16 [PATCH v3 0/3] add support for Delta E50SN12051 Colin Huang
2026-04-30  6:16 ` Colin Huang via B4 Relay
2026-04-30  6:16 ` [PATCH v3 1/3] dt-bindings: hwmon: pmbus: add Delta E50SN12051 binding Colin Huang
2026-04-30  6:16   ` Colin Huang via B4 Relay
2026-04-30  6:59   ` sashiko-bot [this message]
2026-04-30 20:20     ` Guenter Roeck
2026-04-30  6:16 ` [PATCH v3 2/3] Documentation/hwmon: add Delta E50SN12051 documentation Colin Huang
2026-04-30  6:16   ` Colin Huang via B4 Relay
2026-04-30 20:18   ` Guenter Roeck
2026-04-30  6:16 ` [PATCH v3 3/3] hwmon: (pmbus) add support for Delta E50SN12051 Colin Huang
2026-04-30  6:16   ` Colin Huang via B4 Relay
2026-04-30 20:17   ` Guenter Roeck

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=20260430065909.981EAC4AF09@smtp.kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=devnull+u8813345.gmail.com@kernel.org \
    --cc=linux-hwmon@vger.kernel.org \
    --cc=sashiko@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.