From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f51.google.com (mail-wm1-f51.google.com [209.85.128.51]) (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 8EED749481A for ; Thu, 10 Sep 2026 14:16:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.51 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789049814; cv=none; b=obVJj+p+r6u/4HZUKQJGTriDKIFPid549xUpMFh6h4eVUNRcmwDNEOjQCXGOHSJcaLPRMaB3bcabmNeW0ezcpZUUoWashmJGw4aRYkOdKBqOgkJHGL8xcgj/1kqj/jsUeF+seLZDB3qx3Wh4NAzqLEKxc9+ffcnXHBg8KKxvoLY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789049814; c=relaxed/simple; bh=hDP3r5l1mIBCej7ZQl0/zcQrANXp56hh67lg49xJb78=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=dnrGzRcW3vDJmOOVoInTcjdzeo5e8BdHnwyIF0hLKZ+W5Rb45J2J1GfNLTOJDe6saE/RNMRvwD3X1ZZLjOVdnEq6GizeMFYzH60ACoB9k9fiqCRUlNYcqNnT+eElQZEmUPrRw8tV2M4jq1dRHCHJTl6dVTxMgAWjZaj0hdgRzmg= 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=ZlmMVHM1; arc=none smtp.client-ip=209.85.128.51 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="ZlmMVHM1" Received: by mail-wm1-f51.google.com with SMTP id 5b1f17b1804b1-4998b5a63e2so82021775e9.1 for ; Thu, 10 Sep 2026 07:16:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1789049811; x=1789654611; 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=MwyHzbNwR9K/Z6ogERvs94oZtzGoKtSvzGu8br1Oetc=; b=ZlmMVHM10BdMZbjupyfy0OnfrhEmlb/3omDg/evvqVT0ujh9t45Pgg6FzspAxLZKB6 tI9ZkZk8cAhaXFIC9CFK8d2fhkQlLx9ld1JLQPK7LPchtHv4vEgihbRPIbskoD1q8PiK NWk9oCbhksClsK1fe5yW+wRyzL/Px1O0vlOxA/9wePk320EnLsWkGuRRDaHqU6caY9up t/RQsyKa3XuSrlfBW9jzpin7MtDuSun2QAx2bq79RZ308bkLmzgi5pE9bTgw2G8kqlZW TDPsklAkbQCQG782ghD2rh/wi2QZmlDiF0a2NmqS9fQcFvJ8mh2ca6yWuu+h7BeVI7pU BbBw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1789049811; x=1789654611; 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=MwyHzbNwR9K/Z6ogERvs94oZtzGoKtSvzGu8br1Oetc=; b=eMsrEjYJc0VuERctY92NwUX+y+mdK7ZbVpIII04AYF8b0A3V4fecTJIYtpdWY2lM78 5NzopyFXd8FBPFr7GqD8zMC72heV62SZ1cKMIELD1FfSd1+zyHxPnnmgt6shY0rfWRzT i/TiWo4LxU2zQcfWKYPJ7hex5utd0wpT7CC1RdfvGZ8OV4YlnYTEhCKBl2bu5sghHcsQ eStchEcGE574pcqK9iSj4JmmUNTrVtKiT66fisnAn//EIqbJ8fHvHJoQ6NSeXGyt/o2n Y/wCf3g9H9dktM+C/2wXd36HvhLDqzidPgO+y5SCRfwktmirvq9aVKbRgdadZoLKxXEZ a+hQ== X-Forwarded-Encrypted: i=1; AKwUvBxA66co2KN4fq2YF4zFroec45YtfXshZ3lUVUbCFkdy9kQc45vvUPzDTYiXO4C4cMD2izzo2UaorXuzOoA=@vger.kernel.org X-Gm-Message-State: AFuF++kJwD5tJGQWRxofWE4lHlDLjxc3VUUHEndoxYNHHlkPlwMmbMFT 8cP/TRTPESR+1cAhv0h2Vp9vPBFZaB3bNrEU1fY4o5pX6fq99DmHFyiDB3goxX2+ X-Gm-Gg: AYBFou0YGbU5o+ZFy36aylhMsoMaBbpqD2U21wfnUfXQP8ZhjjvAangPiBGSFH01rN5 JJ/9wEeLI3F2sm20v0s+f8cz9ZLqKWZB9bOoEJ9ve6bLPun24iFMiVh60li0ECHMyoL5ZyM2o91 f+9/GArj4K2Tlax+oo2UdX8cc5YGyiMlCddLxYmY7GOWLgqd4wn4vReT2U8a0Aci35wazAw0aF3 /VBixpmiNmzNY3K5BDqTVIsXGXNOXBQdbIgfyvZpIJGZwMYanSQZepATlF2TKtfUlevmTNrDY1+ ECzx2qhaLU7IKUsENe3EAVXAwahLzN346j3VKhNibBP4HatoWPKbfgsQWo2G1OQiKQIVF0BAUMQ om4D2Fvefkx03YnaG2iEZls9dBu0lYMj17b0Iz+4NvqKhP2/clHgspQswPwXfeoiJcRveKta0cA Hq578LGvWgVNCXu86ySe/19xOaI2VtyuV0UdJOlxMlKc2LZw03ASVH6j5AHK/A5HgB1NQ/81m3F 0MVFtfM0su2jw3mtrELhFYczezWJEbsP7Swa1SIB3rrH4zgfXAtClh19lOwylsanUB76Er0BQ== X-Received: by 2002:a05:600c:190b:b0:49c:fc6c:be12 with SMTP id 5b1f17b1804b1-49cfc6cc0acmr351448145e9.24.1789049810601; Thu, 10 Sep 2026 07:16:50 -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.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 10 Sep 2026 07:16:50 -0700 (PDT) From: Ernest Van Hoecke Date: Thu, 10 Sep 2026 16:16:43 +0200 Subject: [PATCH v2 2/7] of: property: fw_devlink: Report unsupported supplier linking 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-2-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 OF supplier linking is deliberately disabled on OLPC and Intel CE4100 systems. The add_links operation currently returns zero on these systems, so callers cannot distinguish unsupported linking from success. Return -EOPNOTSUPP when supplier linking is unsupported. This allows OF unit tests to skip link assertions on these systems without exposing the private platform-support predicate. The driver core ignores the add_links return value and marks the fwnode as processed regardless, so its link creation and retry behavior remain unchanged. 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 380df0861ab9..eba7e9fe6c38 100644 --- a/drivers/of/property.c +++ b/drivers/of/property.c @@ -1691,7 +1691,7 @@ static int of_fwnode_add_links(struct fwnode_handle *fwnode) struct device_node *con_np = to_of_node(fwnode); if (!of_is_fwnode_add_links_supported()) - return 0; + return -EOPNOTSUPP; if (!con_np) return -EINVAL; -- 2.43.0