Devicetree
 help / color / mirror / Atom feed
From: Conor Dooley <conor@kernel.org>
To: Xincheng Ji <jixincheng@ultrarisc.com>
Cc: sashiko-reviews@lists.linux.dev, devicetree@vger.kernel.org,
	robh@kernel.org, conor+dt@kernel.org
Subject: Re: [PATCH v4 7/7] riscv: dts: ultrarisc: Add Milk-V Titan board device tree
Date: Wed, 21 Oct 2026 17:51:22 +0100	[thread overview]
Message-ID: <20261021-badly-issuing-847ac366c9b9@spud> (raw)
In-Reply-To: <179246063943.3442927.10941907832509473109.b4-reply@b4>

[-- Attachment #1: Type: text/plain, Size: 1809 bytes --]

On Tue, Oct 20, 2026 at 09:43:59AM +0800, Xincheng Ji wrote:
> Hi,
> 
> On 2026-10-19 08:08 +0000, sashiko-bot@kernel.org wrote:
> > Should the label properties be dropped from led@1 and led@2 here?
> > 
> > When the PHY driver probes phy0, the call chain:
> > 
> >   of_phy_leds() ->
> >     of_phy_led() ->
> >       devm_led_classdev_register_ext() ->
> >         led_classdev_register_ext() ->
> >           led_compose_name() ->
> >             led_parse_fwnode_props()
> > 
> > checks for the deprecated label property first in
> > drivers/leds/led-core.c:led_parse_fwnode_props():
> > 
> > 	if (fwnode_property_present(fwnode, "label")) {
> > 		ret = fwnode_property_read_string(fwnode, "label", &props->label);
> > 		if (ret)
> > 			dev_err(dev, "Error parsing 'label' property (%d)\n", ret);
> > 		return;
> > 	}
> > 
> > Because led_parse_fwnode_props() returns early when label is present, the
> > color and function properties on led@1 and led@2 are never parsed and are
> > completely ignored at runtime.
> > 
> > In addition, Documentation/devicetree/bindings/leds/common.yaml deprecates
> > label for new bindings in favor of color and function.
> > 
> > Would it make sense to remove label from both nodes so that the LED core
> > uses color and function to compose the standard LED names?
> > 
> Thank you for the review. I understand that label is deprecated in favor
> of color and function.Since the LED core still supports parsing label, 
> would you consider removing these properties necessary for this patch,
> or more of a naming convention cleanup?

You're asking a bot that will never reply to you.

I'd say that if the analysis provided is correct, then yes you should
since the deprecated property overrides the replacement properties.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]

  reply	other threads:[~2026-10-21 16:51 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-10-19  7:55 [PATCH v4 0/7] riscv: Add device tree support for UltraRISC DP1000 Xincheng Ji via B4 Relay
2026-10-19  7:55 ` [PATCH v4 1/7] dt-bindings: vendor-prefixes: Add shenrongda Xincheng Ji via B4 Relay
2026-10-19  7:55 ` [PATCH v4 2/7] dt-bindings: riscv: cpus: Add UltraRISC CP100 compatible Xincheng Ji via B4 Relay
2026-10-19  7:55 ` [PATCH v4 3/7] dt-bindings: riscv: Add UltraRISC DP1000 board compatibles Xincheng Ji via B4 Relay
2026-10-19  7:55 ` [PATCH v4 4/7] dt-bindings: timer: Add UltraRISC DP1000 CLINT Xincheng Ji via B4 Relay
2026-10-19  7:55 ` [PATCH v4 5/7] riscv: dts: ultrarisc: Add initial device tree for UltraRISC DP1000 Xincheng Ji via B4 Relay
2026-10-19  7:55 ` [PATCH v4 6/7] riscv: dts: ultrarisc: Add Shenzhen Rongda M0 board device tree Xincheng Ji via B4 Relay
2026-10-19  7:55 ` [PATCH v4 7/7] riscv: dts: ultrarisc: Add Milk-V Titan " Xincheng Ji via B4 Relay
2026-10-19  8:08   ` sashiko-bot
2026-10-20  1:43     ` Xincheng Ji
2026-10-21 16:51       ` Conor Dooley [this message]
2026-10-22  1:21         ` Xincheng Ji
2026-10-22 18:17           ` Conor Dooley
2026-10-23  1:11             ` Xincheng Ji

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=20261021-badly-issuing-847ac366c9b9@spud \
    --to=conor@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=jixincheng@ultrarisc.com \
    --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