| Message ID | 20261001142815.277550-3-herve.codina@bootlin.com |
|---|---|
| State | New |
| Headers | show
Return-Path: <linux-gpio+bounces-44451-incoming=patchwork.ozlabs.org@vger.kernel.org> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=bootlin.com header.i=@bootlin.com header.a=rsa-sha256 header.s=dkim header.b=1C3mmS8j; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=2600:3c0a:e001:db::12fc:5321; helo=sea.lore.kernel.org; envelope-from=linux-gpio+bounces-44451-incoming=patchwork.ozlabs.org@vger.kernel.org; receiver=patchwork.ozlabs.org) Received: from sea.lore.kernel.org (sea.lore.kernel.org [IPv6:2600:3c0a:e001:db::12fc:5321]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4hwZHq5tw4z1y0b for <incoming@patchwork.ozlabs.org>; Fri, 02 Oct 2026 00:37:11 +1000 (AEST) Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.90.174.1]) by sea.lore.kernel.org (Postfix) with ESMTP id 47EE2444D7 for <incoming@patchwork.ozlabs.org>; Thu, 1 Oct 2026 14:29:15 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 295CA51EDF5; Thu, 1 Oct 2026 14:29:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="1C3mmS8j" X-Original-To: linux-gpio@vger.kernel.org Received: from smtpout-03.galae.net (smtpout-03.galae.net [185.246.85.4]) (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 DF4E051CF7B; Thu, 1 Oct 2026 14:28:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.246.85.4 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790864940; cv=none; b=Kuvi4Rnv2NIO44/nUPEM19l7ssGaoxki7w22boEm/3SkvLmncnExMoqn0flER622Yns1qNpilRWgo9th1AUa5sKMkHsZ7r58rdwGkHj0KAJQAhaSYe195MzmhsZ1fEiFIaayvciSNlhoGofPwh/WEC5HZGNzEBAN0dwCKp3xcpE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790864940; c=relaxed/simple; bh=n72riOFT9zMszPdIbWgnFahKIsx4JheiYt11aqPFJ4U=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=hrLbn/zyKYfF2s8SauZMjbXT6PpbBd9GUAmB27eiDkUfH1AXb8gC2KV+D2Kwjb85cbvlNluPyJq5gOOStj0LGMzqEsSDXKfdgqi7zSXvEGzkWUCe0liU19Prl1PDHYI59DvMeBfaOJFn5kVpz0uk5waoHWp8CK0jMBMXvrLs0Xo= 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=1C3mmS8j; arc=none smtp.client-ip=185.246.85.4 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 Received: from smtpout-01.galae.net (smtpout-01.galae.net [212.83.139.233]) by smtpout-03.galae.net (Postfix) with ESMTPS id 60F674E41538; Thu, 1 Oct 2026 14:28:53 +0000 (UTC) Received: from mail.galae.net (mail.galae.net [212.83.136.155]) by smtpout-01.galae.net (Postfix) with ESMTPS id 2C5A060341; Thu, 1 Oct 2026 14:28:53 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id 144CE10328176; Thu, 1 Oct 2026 16:28:44 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=dkim; t=1790864930; h=from:subject:date:message-id:to:cc:mime-version: content-transfer-encoding:in-reply-to:references; bh=LEz6fW5lydZExsmSIK9gCH0i3AJi/eLpRMeT4JJOYIA=; b=1C3mmS8ja9rkraxClnmL07hrtc63boY8/sw9lr+O+rpbX6YGTAGNEgIkfXrwsQq1rgb3Ux FOCJCrT5MACLkgJ0bvkqhLZCldMgb1850fnP7K0wbgVkbrCgUbYgO8VPAGxIW2A5Nv6N45 5LMQfg+SBuG/MbZQs2nUxJVezQvzqE7HSosOQKe7mgM6lhAI/oBbmIJxrredTsyfpLtVmL 70181VecyO0VsNlKf9uf7wXIVU4tYDOKmBi3cIIz/DT/DPzOSEA/RIS92Xp2fKkdCaKcHV 0hZPt6TqWZdLelnXXBRD/7j2VeT/v7mm/W5kYlBgDV3OL1v7+GonlXV4o3OWwg== From: Herve Codina <herve.codina@bootlin.com> To: Richard Cheng <icheng@nvidia.com>, Andrew Lunn <andrew@lunn.ch>, Rob Herring <robh@kernel.org>, Saravana Kannan <saravanak@kernel.org>, Greg Kroah-Hartman <gregkh@linuxfoundation.org>, "Rafael J. Wysocki" <rafael@kernel.org>, Danilo Krummrich <dakr@kernel.org>, Bjorn Helgaas <bhelgaas@google.com>, Charles Keepax <ckeepax@opensource.cirrus.com>, Richard Fitzgerald <rf@opensource.cirrus.com>, David Rhodes <david.rhodes@cirrus.com>, Linus Walleij <linusw@kernel.org>, Andy Shevchenko <andriy.shevchenko@linux.intel.com>, Daniel Scally <djrscally@gmail.com>, Heikki Krogerus <heikki.krogerus@linux.intel.com>, Sakari Ailus <sakari.ailus@linux.intel.com>, Bartosz Golaszewski <brgl@kernel.org>, Len Brown <lenb@kernel.org>, Davidlohr Bueso <dave@stgolabs.net>, Jonathan Cameron <jic23@kernel.org>, Dave Jiang <dave.jiang@intel.com>, Alison Schofield <alison.schofield@intel.com>, Vishal Verma <vishal.l.verma@intel.com>, Dan Williams <djbw@kernel.org>, Ira Weiny <iweiny@kernel.org>, Li Ming <ming.li@zohomail.com>, Herve Codina <herve.codina@bootlin.com>, Lizhi Hou <lizhi.hou@amd.com> 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 <allan.nielsen@microchip.com>, Horatiu Vultur <horatiu.vultur@microchip.com>, Daniel Machon <daniel.machon@microchip.com>, Steen Hegelund <steen.hegelund@microchip.com>, Luca Ceresoli <luca.ceresoli@bootlin.com>, Thomas Petazzoni <thomas.petazzoni@bootlin.com>, Ulf Hansson <ulf.hansson@linaro.org>, Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com> Subject: [PATCH v12 02/10] drivers: core: Use fw_devlink_set_device() Date: Thu, 1 Oct 2026 16:28:02 +0200 Message-ID: <20261001142815.277550-3-herve.codina@bootlin.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20261001142815.277550-1-herve.codina@bootlin.com> References: <20261001142815.277550-1-herve.codina@bootlin.com> Precedence: bulk X-Mailing-List: linux-gpio@vger.kernel.org List-Id: <linux-gpio.vger.kernel.org> List-Subscribe: <mailto:linux-gpio+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-gpio+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Last-TLS-Session-Version: TLSv1.3 |
| Series |
lan966x pci device: Add support for SFPs, PCI part
|
expand
|
diff --git a/drivers/base/core.c b/drivers/base/core.c index 4c0c373998a1..3268e9350c86 100644 --- a/drivers/base/core.c +++ b/drivers/base/core.c @@ -3754,7 +3754,7 @@ int device_add(struct device *dev) * device and the driver sync_state callback is called for this device. */ if (dev->fwnode && !dev->fwnode->dev) { - dev->fwnode->dev = dev; + fw_devlink_set_device(dev->fwnode, dev); fw_devlink_link_device(dev); } @@ -3929,7 +3929,7 @@ void device_del(struct device *dev) device_unlock(dev); if (dev->fwnode && dev->fwnode->dev == dev) - dev->fwnode->dev = NULL; + fw_devlink_set_device(dev->fwnode, NULL); /* Notify clients of device removal. This call must come * before dpm_sysfs_remove().