From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=185.171.202.116 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1794233378; b=VOTkxYtAC4N2rcVviZUEMd+Ppku2R6WY+eV16IwkMMaD9hKULafuovkz0PukKxvdYIRx VZu2Qhe+HWqqewCyZCK00xqK/OvG38gACMYCLf3OBcKFqLR9rYOmYATxNvWLkUBpxy0a3 GpUXrdCAvJNjJtMErdP5AAvO9Qy3yig7n6/NdqUDQxbI3z7erDkn/pudqZDJfz9DTj+l/ j2pgGefsiTQiFVgPU/4KAhlPes7iFCp0WVhDmu5mgKb/O1nyX5WCz6vcA7UxY78wIDDw+ yQTSTN+6tnTNqRv05dZC1tY9T9cK58coTv645fLrtJ00uo+CJiIxrr/UnnUp/8GxKBw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794233378; 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=D8LTuncya3mMB2GNWsv2LxYdRmOZ7EpsB8Tu1t4cKA5SpYGVmf3MTKjP5cItWjRnUdou xKORrf3vCpjvL7y6uIUaFwSIunr9a+zi70vD2mOFmgmMYB3+vAsZECHwOmS7FQxHiXKXM PItcqsyV1N+K39sKfC9WgLR6rFGQPZDxW3kYLX75+U37Gy0QQqR6cAa5yaUot2qd7qjSo +B2B3wOBS/GYfIuGx7+y9deKixj0tbQwfCPnwdKMl69v9AGRcU0Rz/sFFNaLCfvaLoWWY EqvSjebAbuT9W2WOSnNBlIXbB7iKL5fTQb4HxwdC2+E5bSJd65ZMhFJxdV2nUaprH8A== 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.171.202.116 Received: from smtpout-04.galae.net (smtpout-04.galae.net [185.171.202.116]) (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 3FE08606EE8F for ; Mon, 9 Nov 2026 14:09:35 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 3FE08606EE8F 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-04.galae.net (Postfix) with ESMTPS id 7105CC79A80; Mon, 9 Nov 2026 14:09:34 +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: driver-core@lists.linux.dev 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