From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=185.246.84.56 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1794233382; b=EnaP4a0fOFju/HmqPMg3H5au2xpQo7xt43msloXCqJcLKVxpLTJ6OyiaUn2k+D8A61c+ pzfQafvAjxr2M0HRdCY5JOZmtbPZGJhohc7AqtbxptyLTjfQ5c/k1tVUGmxZaYbe9VLgr OWLf7uE1zZWw9ITGwqMzxEVJBtRnWYsNnGQz9MX4U9jMhldTDutkhfOljISn6xyB6Np9g 1fn13Lmzb3+iu0MeiNMSDMgTI4JG8DmXriwWANJ/Hxk9s8WM4DHKXVsMTgCbZEhpCYsGT OaA9RQtQtdUPLlpOwtkiS3RA3jp+98YimdFhrZ7bZwCLrx3JRcJ8lsyIgJHZ5SRg9AQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794233382; h=DMARC-Filter:Received:Received:Received:DKIM-Signature:From:To:Cc: Subject:Date:Message-ID:X-Mailer:MIME-Version:Content-Type: Content-Transfer-Encoding:X-Last-TLS-Session-Version; bh=2H+AVH2q7EhcjSyHMuWAQKmHIf+eX/uuzTxGhvydkL0=; b=K+iQjPb2Xk8t5PcFou4hEzdPRPvakiVY+EL3qGeIBx7U8lZnHUvRjH8cuEZoisiIt31t v5mMQHv6PtAhe6oOeRJL7dwzqAEogwXKH1t/ZXBvx87TyuFpx9W0mB7RufCz5pDjFdJd4 cw4dFtj55dDaYbTfqAqtkVkYNAxr4JmU34ZQef4pG26JfqeUKeckK/2C0nxB3zqGqPYdK rD1DFf4nNVgAnlZrdaIoTdgio9W/4m+VTjO3HvVpKsC5cE5K8hyrdmElfujVDreH/+rBq HIszlHSeyMX0RPI42oj561UUvstbfJTJpV8OeOnoOd26dn3JvhoV8i9fH8KIdhUwmQQ== 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=hpn85cwv; arc=none smtp.remote-ip=185.246.84.56 Received: from smtpout-02.galae.net (smtpout-02.galae.net [185.246.84.56]) (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 3E3D16082BEB for ; Mon, 9 Nov 2026 14:09:41 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 3E3D16082BEB 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.a=rsa-sha256 header.s=dkim header.b=hpn85cwv Received: from smtpout-01.galae.net (smtpout-01.galae.net [212.83.139.233]) by smtpout-02.galae.net (Postfix) with ESMTPS id BA02E1A15FB; Mon, 9 Nov 2026 14:09:33 +0000 (UTC) Received: from mail.galae.net (mail.galae.net [212.83.136.155]) by smtpout-01.galae.net (Postfix) with ESMTPS id 8680660051; Mon, 9 Nov 2026 14:09:33 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id 4E343103293DD; Mon, 9 Nov 2026 15:09:21 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=dkim; t=1794233368; h=from:subject:date:message-id:to:cc:mime-version:content-type: content-transfer-encoding; bh=2H+AVH2q7EhcjSyHMuWAQKmHIf+eX/uuzTxGhvydkL0=; b=hpn85cwv7AffrRaT4le9iTRnVGyJo3Z8o8GZlCH3mg5MKIWRAsA9vGsmgtQqtv4+Y/BXE4 lYXwPw685Ys7y0tfO7PwhQp9uPkOQJcr3WpwB4y0MTW7eM3EIbF2pMlmnmp87M6b5ZsKsy vrqjhQIetHTuIEQFxB20sI+9VqiFTteEvp5+Za3WEnwujbOCWQZ5hgN8C2+UiAzoyEqJy7 4wiPyL0k1pm8oxyurXk0cyWN+76HvjPAcQrbEwjcb/XjWfUYkpfoM3vIWlRRby1Ia/2jdN FWbIP8LvwNS1uqiUAuFNXPiAnDFU0fOtE6wB8bGhNlHGoC5b4gKekgtkq8I45A== From: Herve Codina To: Andrew Lunn , Rob Herring , Saravana Kannan , Geert Uytterhoeven , Kalle Niemi , Matti Vaittinen , Greg Kroah-Hartman , "Rafael J. Wysocki" , Danilo Krummrich , Johan Hovold Cc: driver-core@lists.linux.dev, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Allan Nielsen , Horatiu Vultur , Daniel Machon , Steen Hegelund , Luca Ceresoli , Thomas Petazzoni , Herve Codina Subject: [PATCH v9 0/4] lan966x pci device: Add support for SFPs, simple-bus part Date: Mon, 9 Nov 2026 15:08:38 +0100 Message-ID: <20261109140916.90625-1-herve.codina@bootlin.com> X-Mailer: git-send-email 2.56.0 X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Last-TLS-Session-Version: TLSv1.3 Hi, Previously, I sent a big picture series adding support for SFP ports available on the LAN966x PCI device [0]. In this series patches touch several parts and sub-system in the kernel. Reviews have be done and it makes sense to split the series and send parts separately. This current series is the extraction of patches related to the simple-bus driver. It has to be seen as a continuation of the big picture series but related to this specific simple-bus part. Patch 1 fixes an already existing issue reported by Sashiko. Patch 2 removes the no more useful remove() function. Patch 3 depopulates devices populated at probe() when the driver is unbound. Patch 4 makes the simple-bus driver compatible with fw_devlink expectation consisting in creating its child devices at probe. [0] https://lore.kernel.org/all/20260325143555.451852-1-herve.codina@bootlin.com/ Best regards, Hervé Changes: v8 -> v9 v8: https://lore.kernel.org/all/20260630102717.413501-1-herve.codina@bootlin.com/ Rebase on top of v7.4-rc1 - Patch 1 (new patch in v9) Fix an issue reported by Sashiko related to possible inconsistencies between operations done at probe() and the ones done at remove(). - Patch 2 (new patch in v9) Fully remove the remove() function. - Patch 3 Changed the way depopulate is performed and use devres feature. Took into account a pm_runtime possible issue (reported by Sashiko) related to async pm_request_idle() triggered when all child devices are removed from the bus. - Patch 4 Use devres feature. v7 -> v8 v7: https://lore.kernel.org/all/20260511155902.34534-1-herve.codina@bootlin.com/ Rebase on top of v7.2-rc1 No nother changes v6 -> v7 Rebase on top of v7.1-rc1 - Patch 1 No changes - Patch 2 Fix conflict due to device_has_driver_override() introduction. Older iterations: Patches 4 and 5 in the big picture series https://lore.kernel.org/all/20260325143555.451852-1-herve.codina@bootlin.com/ Herve Codina (4): bus: simple-pm-bus: Avoid inconsistencies between probe() and remove() bus: simple-pm-bus: Remove the remove() function bus: simple-pm-bus: Remove child devices when the bus is unbound bus: simple-pm-bus: Populate child nodes at probe drivers/bus/simple-pm-bus.c | 90 +++++++++++++++++++++++++++---------- 1 file changed, 67 insertions(+), 23 deletions(-) -- 2.56.0