From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=185.246.85.4 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1793721384; b=FNCoMxiD8RqMBT4KNPeb6bn9C5uNyRz6+fwTi479+YX9nRRUyT7CWXKAe9d1sQBf1plJ RCFcgwNGWSAxbMgIwX5ip0WBGEZSjy6MD6q5zoHRtVxUl/BJWpV6pkA3h/OnCtjnzwKKv V2kdjFzGim7/Rw7mZyshZ/bc0W1Pp0H87Y1/cmZy0LJ14s+CzJRfmXnf8AgqxwEpSYVxD uXxZ2FILcuVG2QkRPONydB2zZS+bwpEMQoFLeb03qdwbMXzbwefnfpYYu7iBHmttbxuY0 72k+vdeszR5Dkvdxg+S2ddxjSWf7JVXeYRI0+Lx7M/7Nxso/EChJNDwyHdDWSYwaByg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1793721384; h=DMARC-Filter:Received:Received:Received:DKIM-Signature:From:To:Cc: Subject:Date:Message-ID:X-Mailer:In-Reply-To:References:MIME-Version: Content-Transfer-Encoding:X-Last-TLS-Session-Version; bh=wIMgPKEMYhN58vj1EK1fajh3YurZ9rZG08jfSQgadcI=; b=MSpY1WDKF+PhSMeBpS1i8HGRM9FL10L9DfOd6a8/61y20gcH5Ndoh6hhgrsHzFWooTze l+SH9livLwa45nQl+yrx1u6fJgov4CvVFnFzrSZCdLioV62BAmKZRlUrRfWV84vpWaq3J cOULHwrod4X78EZbHKuyw/0omHqKQ/0ppnphb6F+Wnleatuykrle9zcNvZf9t1mQkaB8W qEhxzpYKU38gGyHA+z0N5AmGrB25Q+5qv/VedlyWRXfHhkIdp+5zl6L9RAnc9VYKI1/u4 B1C/dWkkRrX5DdtLF1ALkUuGGJBrb5+kWzYqDm8WhrbbXlo4Hy2BP0FIj7hkNFZy2ZA== 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=1YA5bmJd; arc=none smtp.remote-ip=185.246.85.4 Received: from smtpout-03.galae.net (smtpout-03.galae.net [185.246.85.4]) (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 D439D606D81F; Tue, 3 Nov 2026 15:56:23 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org D439D606D81F 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=1YA5bmJd Received: from smtpout-01.galae.net (smtpout-01.galae.net [212.83.139.233]) by smtpout-03.galae.net (Postfix) with ESMTPS id 7E33D4E413DC; Tue, 3 Nov 2026 15:56:22 +0000 (UTC) Received: from mail.galae.net (mail.galae.net [212.83.136.155]) by smtpout-01.galae.net (Postfix) with ESMTPS id 489C56046C; Tue, 3 Nov 2026 15:56:22 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id 40EFF10329123; Tue, 3 Nov 2026 16:56:11 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=dkim; t=1793721379; h=from:subject:date:message-id:to:cc:mime-version: content-transfer-encoding:in-reply-to:references; bh=wIMgPKEMYhN58vj1EK1fajh3YurZ9rZG08jfSQgadcI=; b=1YA5bmJd7Kyux944+w4c5vOf4PG+Nv7TvRAQ71IG4Rh1A2Mot+/KwfHKC3PRnmCoRGqTfG y1cfW89y4D/8cTR6D955djCzX6DZI52zfYdVJEiB82EQr+Yhm3C39oG3yoqKJDjTyClbvf Vd22npYFCtKaX3rJOa+iQWRyjW8PnSuILVA1wtYTyGu1SaL0iHXuKixpWZekx56UvRAokx p7oHRKZIVd6eSjsbgsBWLERof8ixITVJoTeN1QD0GqqxmgAu3WHNWwFcTUGUJxfD55jmiK VdjVVMMeePOPfjvTAfrO6YfWOBuiF1hY6L0s3puJhviwyp6LRY4i19xMxKBpGw== From: Herve Codina To: Abdurrahman Hussain , Richard Cheng , Andrew Lunn , Rob Herring , Saravana Kannan , Greg Kroah-Hartman , "Rafael J. Wysocki" , Danilo Krummrich , Johan Hovold , Bjorn Helgaas , David Rhodes , Richard Fitzgerald , Charles Keepax , Linus Walleij , Andy Shevchenko , Daniel Scally , Heikki Krogerus , Sakari Ailus , Bartosz Golaszewski , Len Brown , Davidlohr Bueso , Jonathan Cameron , Dave Jiang , Alison Schofield , Vishal Verma , Dan Williams , Ira Weiny , Li Ming , Herve Codina , Lizhi Hou Cc: driver-core@lists.linux.dev, linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org, linux-sound@vger.kernel.org, patches@opensource.cirrus.com, linux-gpio@vger.kernel.org, linux-acpi@vger.kernel.org, linux-cxl@vger.kernel.org, Allan Nielsen , Horatiu Vultur , Daniel Machon , Steen Hegelund , Luca Ceresoli , Thomas Petazzoni , stable@vger.kernel.org, Ulf Hansson , Bartosz Golaszewski Subject: [PATCH v14 01/10] driver core: fw_devlink: Introduce fw_devlink_set_device() Date: Tue, 3 Nov 2026 16:55:07 +0100 Message-ID: <20261103155540.365294-2-herve.codina@bootlin.com> X-Mailer: git-send-email 2.56.0 In-Reply-To: <20261103155540.365294-1-herve.codina@bootlin.com> References: <20261103155540.365294-1-herve.codina@bootlin.com> 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-Transfer-Encoding: 8bit X-Last-TLS-Session-Version: TLSv1.3 Setting fwnode->dev is specific to fw_devlink. In order to avoid having a direct 'fwnode->dev = dev;' in several place in the kernel, introduce fw_devlink_set_device() helper to perform this operation. Having this helper allows to hide the fwnode devlink related stuff behind the helper. Cc: stable@vger.kernel.org Signed-off-by: Herve Codina Reviewed-by: Andy Shevchenko Reviewed-by: Ulf Hansson Reviewed-by: Charles Keepax Reviewed-by: Richard Cheng Reviewed-by: Bartosz Golaszewski Tested-by: Abdurrahman Hussain --- Cc stable because used by other patches with Fixes + Cc stable --- include/linux/fwnode.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/include/linux/fwnode.h b/include/linux/fwnode.h index a9dcaf7e7076..3ce49575cf82 100644 --- a/include/linux/fwnode.h +++ b/include/linux/fwnode.h @@ -260,4 +260,10 @@ void fw_devlink_purge_absent_suppliers(struct fwnode_handle *fwnode); void fw_devlink_refresh_fwnode(struct fwnode_handle *fwnode); bool fw_devlink_is_strict(void); +static inline void fw_devlink_set_device(struct fwnode_handle *fwnode, + struct device *dev) +{ + fwnode->dev = dev; +} + #endif -- 2.56.0