[PATCH v9 0/4] lan966x pci device: Add support for SFPs, simple-bus part

From: Herve Codina

Date: Mon Nov 09 2026 - 09:15:56 EST


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@xxxxxxxxxxx/

Best regards,
Hervé

Changes:

v8 -> v9
v8: https://lore.kernel.org/all/20260630102717.413501-1-herve.codina@xxxxxxxxxxx/

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@xxxxxxxxxxx/

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@xxxxxxxxxxx/

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