From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=185.171.202.116 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1792506231; b=jp0dJss1nIh8F82wXd+QHtZtvhOGQ/2JS16JMvZTbYIs+zJkjcml5NMpMh9Z7hU3Vbk8 NNEkntQehDOWBGhpjbYthBBG4Y+/iecy2Y1S8xSiSyRB2RdkAaHv8P58hoh4x3YkXO2YY r/No7dMXideY2J+7Aqet//6NtFob5HuzLbVshXXLqhzn9xHl8hqN5M8EttDkF+Ro4JI+6 /vUsfmJWFZMwHqIR7u7m/3o+/a9otrW9qVvE3F1grWgPHcZNmyhgaBTi4MYogNxKm8llg 4+JYIMNGdlkW/PYNm87gQ/W7zYSGF6BF2zIPdAnqIQkkp/52tLxiJuRKSRaNIMJUm5Q== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1792506231; h=DMARC-Filter:Received:Received:Received:DKIM-Signature:Date:From:To: Cc:Subject:Message-ID:In-Reply-To:References:Organization:X-Mailer: MIME-Version:Content-Type:Content-Transfer-Encoding: X-Last-TLS-Session-Version; bh=nIoCWNv4xGoCOetkLvsqI4aUF4MRfL4xBIuWjDY/SRg=; b=mcQ9eQnl4yMqIvchn+MIC+cLOeizIGQVXFPDYmXLK86FwRwrpoUeJ8fUDDSvQL4ftmJq 9xhaZO0c+Y5f841aGScMpSW8KXO//5pyYWAwda3z8TIYCthYH2yvLx4ry7vKEp+rZ33HD uesTB9dASxaJbYvkWK3jAgusX5YHeniKFTKFzp7UxlQnxWWAgq9csT0QsPRKVrt+0SHp1 HxZK6c1tnGDZXOOBIdtbve+iSQMwIN86BWSOM9rul0KhHI6olNtz0pIZN+qUD286mki8U XylL55OVHjucaZJOYbxpNJWXyT1kDPoi/PPP5QzQi09peRTKIUeiId7eEGnR4yRxS3Q== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=bootlin.com; spf=pass smtp.mailfrom=bootlin.com; dkim=pass header.d=bootlin.com header.i=@bootlin.com header.a=rsa-sha256 header.s=dkim header.b=HWESPOVv; arc=none smtp.remote-ip=185.171.202.116 Received: from smtpout-04.galae.net (smtpout-04.galae.net [185.171.202.116]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id CDF91606A31E; Tue, 20 Oct 2026 14:23:49 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org CDF91606A31E Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bootlin.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key, unprotected) header.d=bootlin.com header.i=@bootlin.com header.a=rsa-sha256 header.s=dkim header.b=HWESPOVv Received: from smtpout-01.galae.net (smtpout-01.galae.net [212.83.139.233]) by smtpout-04.galae.net (Postfix) with ESMTPS id 5ECEFC63455; Tue, 20 Oct 2026 14:24:46 +0000 (UTC) Received: from mail.galae.net (mail.galae.net [212.83.136.155]) by smtpout-01.galae.net (Postfix) with ESMTPS id CCF9560393; Tue, 20 Oct 2026 14:23:47 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id 3472610328934; Tue, 20 Oct 2026 16:23:32 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=dkim; t=1792506226; h=from:subject:date:message-id:to:cc:mime-version:content-type: content-transfer-encoding:in-reply-to:references; bh=nIoCWNv4xGoCOetkLvsqI4aUF4MRfL4xBIuWjDY/SRg=; b=HWESPOVvZ1YKTS4OCRK0Zwy4TnyNs8HUtJq4nfFSf0L/ljTdeMqZ+qSoUonOp5ALKK6/1D bO3ewYux7JoZQsNcHuo5adDdQq0E6wiyopXFUn9qKKTjK92Q+5JLfrnAsumiy7ZRdmnHHR fkCwmYJbis17XhjR7Uayts8fELwIA1wgiNETrMzaN76HFWcZfe1du38o0QQ8F/qs/2Q9+f Ru8U8ZpQ/PsbLp6NJJFszbrnStD4G3bV3jeAca3fITiAY4HWuXl0WO3IRQKD+Wk9UkrsfB oBWtHB8nHCK5LCxoZ8v0cPj1Ar4LZzFMCiUjiqAWFEOlP/XeswVoEpJZtVBYMA== Date: Tue, 20 Oct 2026 16:23:31 +0200 From: Herve Codina To: Ernest Van Hoecke Cc: Rob Herring , Saravana Kannan , "Miquel Raynal (Schneider Electric)" , Frank Li , Kieran Bingham , Pengutronix Kernel Team , Stephen Boyd , Brian Masney , Linus Walleij , Bartosz Golaszewski , Uwe =?UTF-8?B?S2xlaW5lLUvDtm5pZw==?= , Greg Kroah-Hartman , Geert Uytterhoeven , Leonardo Costa , Frieder Schrempf , devicetree@vger.kernel.org, linux-clk@vger.kernel.org, linux-gpio@vger.kernel.org, linux-pwm@vger.kernel.org, linux-kernel@vger.kernel.org, Ernest Van Hoecke Subject: Re: [PATCH v3 7/8] of: property: fw_devlink: Follow clock nexus maps Message-ID: <20261020162331.379474aa@bootlin.com> In-Reply-To: <20261020-fw-devlink-nexus-ready-v3-7-fd6f1c17e16d@toradex.com> References: <20261020-fw-devlink-nexus-ready-v3-0-fd6f1c17e16d@toradex.com> <20261020-fw-devlink-nexus-ready-v3-7-fd6f1c17e16d@toradex.com> Organization: Bootlin X-Mailer: Claws Mail 4.4.0 (GTK 3.24.52; x86_64-redhat-linux-gnu) X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Last-TLS-Session-Version: TLSv1.3 Hi Ernest, On Tue, 20 Oct 2026 15:00:18 +0200 Ernest Van Hoecke wrote: > From: Ernest Van Hoecke > > Clock consumers use of_parse_phandle_with_args_map() to resolve > specifiers through clock-map properties. fw_devlink instead parses the > clocks property as a direct phandle reference, so it records the nexus > node as the supplier rather than the mapped clock provider. > > A nexus is a translation node, not the clock provider, and need not be > populated as a device. The resulting fwnode link can therefore remain > unresolved and indefinitely defer the consumer while > device_links_check_suppliers() waits for the nexus. > > Use the map-aware parser for clocks so fw_devlink resolves the same > provider as the clock consumer API. Direct clock references continue to > work because the map-aware parser returns the original provider when no > clock-map property is present. > > Fixes: aacc54c67869 ("clk: Add support for clock nexus dt bindings") > Link: https://lore.kernel.org/all/20260807-schneider-v7-2-rc1-eip201-upstream-v5-0-8785f9531cf0@bootlin.com/ > Signed-off-by: Ernest Van Hoecke > --- > aacc54c67869 ("clk: Add support for clock nexus dt bindings") has been > in clk-next and linux-next with the same hash since next-20260907. There > is no build-time dependency on it, but this patch should not reach > mainline before it. > --- > drivers/of/property.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/of/property.c b/drivers/of/property.c > index 53301cdac6a9..2388d607136f 100644 > --- a/drivers/of/property.c > +++ b/drivers/of/property.c > @@ -1422,7 +1422,7 @@ struct supplier_bindings { > u8 fwlink_flags; > }; > > -DEFINE_SIMPLE_PROP(clocks, "clocks", "#clock-cells") > +DEFINE_SIMPLE_NEXUS_PROP(clocks, "clocks", "clock") > DEFINE_SIMPLE_PROP(interconnects, "interconnects", "#interconnect-cells") > DEFINE_SIMPLE_PROP(iommus, "iommus", "#iommu-cells") > DEFINE_SIMPLE_PROP(mboxes, "mboxes", "#mbox-cells") > Reviewed-by: Herve Codina Best regards, Hervé