From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f54.google.com (mail-wm1-f54.google.com [209.85.128.54]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 36EB64A1E00 for ; Thu, 10 Sep 2026 14:16:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.54 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789049822; cv=none; b=b1bD+43tYtTbwUrCfFgy9wW+NDxi5ZDF00xG9t82o+xyIwah4Sjznr5TcgVklqm5PLbK73kT+NoFbyFvBBWjvHkrQts7DTfsLUouDBans+kSsMAHZSKGwST4I2Oa1o8k9jN5p7FwKfNxDAn/3FX3G/ZqHG1lWOahCPlEvGXguFE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789049822; c=relaxed/simple; bh=6RiQejsHuDMk8GZEMjpK5CDA0mBU2MCT5jsdy/qodsA=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=lxXCeepUcuLJUboBIZ9l/fZlIFcjQhm1UCSJ8dtRNvx7vFWXXBad3iTnWyzDxDCDNH1UbdWeuhnI66KwEGtXkkHSeWmHSK+yq5FDeHjXcoYfEkHaZfnplQY4qtNLEx+UIwROo3FkSTc5XA5UnI05ccXU8NUXkotUwjowVuulF9Q= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=dY3VQiTw; arc=none smtp.client-ip=209.85.128.54 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="dY3VQiTw" Received: by mail-wm1-f54.google.com with SMTP id 5b1f17b1804b1-49b392ccaacso103365375e9.2 for ; Thu, 10 Sep 2026 07:16:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1789049817; x=1789654617; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :content-type:mime-version:subject:date:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=8QyDvfOaUygnD0ia8lPvpuZz5j554Ru/BlYaTHRuAo4=; b=dY3VQiTwDzR80KncepmjIcdBdEC+4r17wa+X4T5xC7PtE0Igomt86n3ONHLv4wISGR mhv4CRhgHvKxm6lMKHIv6uJq+48RE1k6OQ1hMGir6tSBjEW9yM1jxLqKg1YDn/eiwKqM M8w8s0bXM5CWYgaSaus7hUvAhzh4Y1UeMT47NbLQYRu7uBH1tx6fN7u7bwtpvdmvxeuR sPpF6sXYaxFv8ndv7O2ayuwwTdzQIIomt7IS+h4nmaVqnxwkJ6oD4dpnjPOEGbpzSSio TXf7316YJFm9w0i23MGQYGGiH9hp9BB4l6jhDsTz1DJOByvLGD4tHJFKA2Xg48BLq4ZR ZZdQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1789049817; x=1789654617; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :content-type:mime-version:subject:date:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=8QyDvfOaUygnD0ia8lPvpuZz5j554Ru/BlYaTHRuAo4=; b=LMvDSV3ayFjHc87BE6jZjG2AWDKmM3jGzponXm6rZv8l63rtF5XKS640YwhmTxDhRd OGQFeOtxvmdYZAhyPZTKxNvh9kI5M7Pw9Aa1U0R3CaJEAJOs09WkTysKOy1NpW/nI7yy vYSazCQz5Ss9XCSR4enyn+s+6OjgLr9eCg08go8GEu9xaVgrxHT6lrMuYVTCeGhcco+I pP8blvQ8U74ZJYexzD4v+3G+MxP3UiCZi+3k1OoQaRrFTl4nXbjeEw70TO/foNhq2P07 +Nq3PCQpWnfyj7lGvQW6+d2g5ZwWdVerXoTN+My95WIPvGKOPtOHfD7s42DHBS2lrWEC QMjQ== X-Forwarded-Encrypted: i=1; AKwUvBydU7sHJJqNKYqilA2HFB45LPq6DB1bCVffwr1s+Uhia+nWW7FyzGR85IdkHHzqLsNPAlin1XZjDPlUla8=@vger.kernel.org X-Gm-Message-State: AFuF++m8yLbSYChPjceQTCiFNS+q3NxjHE8f5aZZYM0XFq0XfAZlOM7z wb6lOXOnc5um2vI8NHvDymdTmbab1fa4V76Wh+Zfj6eHuZSsu+G7V0POPcZWAfRO X-Gm-Gg: AYBFou3OCd8DkxU6nUvfu7IAkX5O1rh5Ov9IHdk8XPT6MyLzM8HVKP2joe0yOB3PmqA VpPmnVjMV0Tuawx9y7CP6Jlb2KAAO/34bs8eDGcWNw1xK7KwyO3UjjnKgHeOsmVkldx9HvMrRFc hN0tPdfT4XmBjmhBylExB1j1wgG3/AMI/XHQcoqZxYfUvZTGk7cduPF8KEFbtDocidSYnI/RH0o DgZyV4ctBhKz3Pl4kKT3q+/eRLSAwMXYu4P04HfN6O4R4YSH6C/antiWmOzqhbLe6rSb1KXE9lz 6yLXpf32qf2AsWfg88wkxpq+SekV+BGEaHcVPN6sfsrL0q+ayQAfO6u9tlGql5NnoGk4rMArDw4 n39Zjbd8JNK7ucpyWmHTwTFTEhZe05lOn8v237oFRkqXUIOYP5kyRYlSRQxKFbn+FymretZDIb6 Z9XTM1Jw1ztyLGnyPioEUVD2ATET7PdkzegSHCqHvLWIdkZm2xqa6X3Dz8q8Y832YC9XADhs3V/ Uu1Hp7BIoUmohvis37e5O45MDAgb7rX82DKcf8TllBYR6lanuQIPvlURHS0yVXIzOXFzHWUPA== X-Received: by 2002:a05:600c:3511:b0:49c:fa21:1c86 with SMTP id 5b1f17b1804b1-49cfa211cd7mr402624805e9.27.1789049817024; Thu, 10 Sep 2026 07:16:57 -0700 (PDT) Received: from ernest.hoecke-nb (248.201.173.83.static.wline.lns.sme.cust.swisscom.ch. [83.173.201.248]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-49d20fce7a7sm293895575e9.4.2026.09.10.07.16.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 10 Sep 2026 07:16:56 -0700 (PDT) From: Ernest Van Hoecke Date: Thu, 10 Sep 2026 16:16:47 +0200 Subject: [PATCH v2 6/7] of: property: fw_devlink: Follow clock nexus maps Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20260910-fw-devlink-nexus-ready-v2-6-17ac82dbe226@toradex.com> References: <20260910-fw-devlink-nexus-ready-v2-0-17ac82dbe226@toradex.com> In-Reply-To: <20260910-fw-devlink-nexus-ready-v2-0-17ac82dbe226@toradex.com> To: Rob Herring , Saravana Kannan Cc: "Miquel Raynal (Schneider Electric)" , Frank Li , Kieran Bingham , Pengutronix Kernel Team , Stephen Boyd , Brian Masney , Linus Walleij , Bartosz Golaszewski , =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= , Herve Codina , Greg Kroah-Hartman , Geert Uytterhoeven , Leonardo Costa , 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 X-Mailer: b4 0.13.0 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 --- 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 a9c51d639a2b..48e05f7bae2f 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") -- 2.43.0