From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtpout-02.galae.net (smtpout-02.galae.net [185.246.84.56]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9EA0D4FB9A7; Wed, 16 Sep 2026 17:44:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.246.84.56 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789580657; cv=none; b=PwX1VQZf6nBZXx43swktDqg4DfcX/k9uU1XlG+0k6Vyl6+tV+r2ZGSO3LaOKn7oxT7xXOhItSuhAQR3Sx6bUoSurD1/tqFkVBDcqzQC7AsbgOufNuEqwb/8TMu45f1Q3rjQS3zS9W+rXzK2mm+MOCCKNLB2hqPYcbgvirZCNocY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789580657; c=relaxed/simple; bh=2OOP0JMYk+pJMTU5YtIeYOi3WP98ynR3TaVSUbH3E5E=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=Sdq3LVzgNpvqb5vDFyYh93RFf+MrlASrdTF3fL85ti4EHH5feI+Rq6lhe4U48EV4f2yq8eVxb8NunQjScxsDZ1vYfgacnHo5lB0HDjbblO6JEndQ6NYfT2weLyHadXRGr2YMAfjU1PPwjgx9nh22CUl00zbYl8ZYlj8UCazFjX8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com; spf=pass smtp.mailfrom=bootlin.com; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b=ZFytWn1U; arc=none smtp.client-ip=185.246.84.56 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) header.d=bootlin.com header.i=@bootlin.com header.b="ZFytWn1U" Received: from smtpout-01.galae.net (smtpout-01.galae.net [212.83.139.233]) by smtpout-02.galae.net (Postfix) with ESMTPS id 80A681A0909; Wed, 16 Sep 2026 17:43:58 +0000 (UTC) Received: from mail.galae.net (mail.galae.net [212.83.136.155]) by smtpout-01.galae.net (Postfix) with ESMTPS id 46F2C60337; Wed, 16 Sep 2026 17:43:58 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id 12BE811C7B00D; Wed, 16 Sep 2026 19:43:51 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=dkim; t=1789580637; h=from:subject:date:message-id:to:cc:mime-version:content-type: content-transfer-encoding:in-reply-to:references; bh=aFDP0OtgM04h6KpMbOI+Vccp+f6xtWNikAv+ehWoG/4=; b=ZFytWn1UGFS/jQkA89BYHexak702dnf2Egu/30bERPXEWYD07TVUJjPrnmnfMhDB+INGts SK+VPXHqXplI8/zwluditU33qOejUfRiub6ylKwwW4chdH2yYKHbtzErrLG2YBuFHZJc+Z C2lyD22nIPilgg5036KKI3Zjhc7tvCclFKjK8tm4RbWceFcxeYnqJdV+hDxKPtBd3aJHSx p3i7LXLZmOEiB0AakhWAik/semEGcc74QB7Swv/CtfL9o5I/NwT2zCqrVT1cXSERQaxzuw x5+BF2EjWTfQACUNF+BbjSDWO/xNWmVAbzNvZEohhK9qy8m6q0uPmUg1zY32SQ== Date: Wed, 16 Sep 2026 19:43:51 +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 , 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 , stable@vger.kernel.org Subject: Re: [PATCH v2 1/7] of: property: fw_devlink: Follow GPIO nexus maps Message-ID: <20260916194351.1fa06403@bootlin.com> In-Reply-To: <20260910-fw-devlink-nexus-ready-v2-1-17ac82dbe226@toradex.com> References: <20260910-fw-devlink-nexus-ready-v2-0-17ac82dbe226@toradex.com> <20260910-fw-devlink-nexus-ready-v2-1-17ac82dbe226@toradex.com> Organization: Bootlin X-Mailer: Claws Mail 4.4.0 (GTK 3.24.52; x86_64-redhat-linux-gnu) 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: 8bit X-Last-TLS-Session-Version: TLSv1.3 Hi Ernest, On Thu, 10 Sep 2026 16:16:42 +0200 Ernest Van Hoecke wrote: > From: Ernest Van Hoecke > > GPIO consumers use of_parse_phandle_with_args_map() to resolve > specifiers through gpio-map properties. fw_devlink instead parses GPIO > properties as direct phandle references, so it records the nexus node as > the supplier rather than the mapped GPIO provider. > > A nexus is a translation node, not the GPIO 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 all supported GPIO property spellings. This > makes fw_devlink resolve the same provider as the GPIO consumer API. > Direct GPIO references continue to work because the map-aware parser > returns the original provider when no gpio-map property is present. > > Fixes: 7f00be96f125 ("of: property: Add device link support for interrupt-parent, dmas and -gpio(s)") > Reported-by: Leonardo Costa > Link: https://lore.kernel.org/all/juuc4af7ndbajcl7gzf4tg5qz2q2j5tt3rvql4jbauradujrre@gc5nbdhhixaf/ > Tested-by: Leonardo Costa > Cc: stable@vger.kernel.org > Signed-off-by: Ernest Van Hoecke > --- > drivers/of/property.c | 38 ++++++++++++++++++++++++++++---------- > 1 file changed, 28 insertions(+), 10 deletions(-) > Reviewed-by: Herve Codina Best regards, Hervé