Skip to content

lan966x pci device: Add support for SFPs, PCI part

Herve Codina driver-core linux-acpi linux-cxl linux-gpio linux-pci linux-sound lkml stable 28 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v11 posting 2/25 patches 0 repliesNew
  2. v10 posting 3/35 patches 1 replySuperseded
  3. v10 posting 2/36 patches 3 repliesSuperseded
Earlier versions · 25
VersionPostedPatchesRepliesStatus
v9 posting 3/34 patches2 repliesSuperseded
v9 posting 2/33 patches0 repliesSuperseded
v14 Latest10 patches1 replyIn review
v1310 patches3 repliesSuperseded
v1210 patches2 repliesSuperseded
v11 posting 1/210 patches11 repliesSuperseded
v10 posting 1/310 patches5 repliesSuperseded
v9 posting 1/39 patches2 repliesSuperseded
v8 posting 4/41 patch3 repliesSuperseded
v8 posting 3/43 patches2 repliesSuperseded
v8 posting 2/48 patches3 repliesSuperseded
v8 posting 1/42 patches0 repliesSuperseded
v7 posting 7/71 patch2 repliesSuperseded
v7 posting 6/71 patch1 replySuperseded
v7 posting 5/71 patch1 replySuperseded
v7 posting 4/73 patches1 replySuperseded
v7 posting 3/78 patches5 repliesSuperseded
v7 posting 2/72 patches2 repliesSuperseded
v7 posting 1/73 patches2 repliesSuperseded
v627 patches19 repliesApplied
v528 patches17 repliesSuperseded
v429 patches45 repliesSuperseded
v328 patches32 repliesSuperseded
v226 patches29 repliesSuperseded
v116 patches35 repliesSuperseded

Changes in v14 from the cover letter

Patches in v14 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/10driver core: fw_devlink: Introduce fw_devlink_set_device()include/linux/fwnode.h+6 -00 replies
2/10drivers: core: Use fw_devlink_set_device()drivers/base/core.c+2 -20 replies
3/10pinctrl: cs42l43: Use fw_devlink_set_device()drivers/pinctrl/cirrus/pinctrl-cs42l43.c+1 -10 replies
4/10cxl/test: Use device_set_node()tools/testing/cxl/test/cxl.c+1 -10 replies
5/10cxl/test: Use fw_devlink_set_device()tools/testing/cxl/test/cxl.c+1 -10 replies
6/10PCI: of: Use fw_devlink_set_device()drivers/pci/of.c+1 -10 replies
7/10PCI: of: Clear fwnode->dev during root bridge node removal and error pathdrivers/pci/of.c+4 -10 replies
8/10PCI: of: Set fwnode device of newly created PCI device nodesdrivers/pci/of.c+11 -10 replies
9/10PCI: of: Remove fwnode_dev_initialized() call for a PCI root bridge nodedrivers/pci/of.c+0 -10 replies
10/10PCI: of: Avoid np->data usage for the node changesetdrivers/pci/of.c include/linux/pci.h+31 -120 replies

Reviews trailers per patch

All 10 patches have a Reviewed-by or Acked-by.

PatchAndy ShevchenkoUlf HanssonCharles KeepaxRichard ChengBartosz GolaszewskiAbdurrahman HussainLinus WalleijDave JiangJonathan CameronBjorn HelgaasManivannan Sadhasivam
1/10R-b R-b R-b R-b R-b T-b
2/10R-b R-b R-b R-b T-b
3/10R-b R-b R-b R-b A-b
4/10R-b R-b R-b R-b R-b
5/10R-b R-b R-b R-b R-b
6/10R-b R-b R-b T-b A-b A-b
7/10R-b R-b A-b
8/10R-b T-b A-b A-b
9/10R-b T-b A-b
10/10A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 11 reviewers.

Read the v14 thread

Cover letter [PATCH v14 00/10] lan966x pci device: Add support for SFPs, PCI part

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 issues in the PCI subsystem. It has to be seen as a continuation of the big picture series but related to this specific core part.

Patches 1 to 6 introduce and use fw_devlink_set_device() in already existing code. No functional change but the introduction of the fw_devlink_set_device() wrapper.

Patch 7 avoids a dangling pointer.

Patches 8 and 9 fix fw_devlink issues specific to PCI and the device-tree nodes created during enumeration.

Patch 10 avoids the usage of np->data and adds guards to prevent incorrect nodes removal.

[0] https://lore.kernel.org/all/[email protected]/

Best regards,
Hervé

Changes:

v13 -> v14
v13: https://lore.kernel.org/all/[email protected]/

Rebase on top of v7.4-rc1

- Patches 1, 2, 6, 8, 9
Add 'Tested-by: Abdurrahman Hussain'

- Patch 10:
Add 'Acked-by: Bjorn Helgaas'

- Other patches:
No changes

v12 -> v13
v12: https://lore.kernel.org/all/[email protected]/

- Patches 1 to 9
No changes

- Patch 10
Split a test condition into two distinct checks as suggested by Andy. No functional change but readability improvement. Split done in both of_pci_remove_node() and of_pci_remove_host_bridge_node().

v11 -> v12
v11: https://lore.kernel.org/all/[email protected]/

- Patches 1 to 7
Add 'Reviewed-by: Bartosz Golaszewski'

- Patches 8 and 9
No changes

- Patch 10
Add a NULL check for the retrieved OF node in removal functions to avoid any NULL pointer dereferences.
Robustify the guard setting cset to NULL after freeing it. Those issues have been reported by Shashiko:
https://lore.kernel.org/all/[email protected]/

v10 -> v11
v10: https://lore.kernel.org/all/[email protected]/

Rebase on top of v7.3-rc1

- Patches 1 to 5
Add 'Reviewed-by: Richard Cheng'

- Patches 6, 7 and 8
Add 'Reviewed-by: Richard Cheng'
Add 'Acked-by: Manivannan Sadhasivam'

- Patch 9
Add 'Reviewed-by: Richard Cheng'

- Patch 10

    Rework removing np->data usage in the PCI devicetree node creation
    and removal.

v9 -> v10
v9: https://lore.kernel.org/all/[email protected]/

- Patches 1 to 6
No changes

- Patch 7

    Clear fwnode->dev also on error path.

- Patch 8

    Clear fwnode->dev also on error path.

- Patch 9
No changes

- Patch 10 (New patch in v10)

    Guard against node removal with incorrect np->data.

v8 -> v9
v8: https://lore.kernel.org/all/[email protected]/

- Patch 7 (new patch in v9)

    Clear fwnode->dev during root bridge node removal (avoid a dangling
    pointer).

- Patch 8 (patch 7 in v8)

    Clear fwnode->dev during PCI device node removal.

v7 -> v8
v7: https://lore.kernel.org/all/[email protected]/

Rebase on top of v7.2-rc1

- patches 4 and 5
Add 'Reviewed-by: Andy Shevchenko'

- Other Patches
No other changes

v6 -> v7

Rebase on top of v7.1-rc1

- Patch 1
Add Cc stable. Needed for patches 11 and 12

- Patches 2 to 5
No changes

- Patch 6
Add Cc stable. Needed for patch 13
Add 'Acked-by: Bjorn Helgaas'

- Patch 7
Fix a typo in commit log
Add Fixes tag + Cc stable
Add 'Acked-by: Bjorn Helgaas'

- Patch 8
Add Fixes tag + Cc stable
Add 'Acked-by: Bjorn Helgaas'
Older iterations:
Patches 6 to 13 in the big picture series
https://lore.kernel.org/all/[email protected]/

Herve Codina (10):
driver core: fw_devlink: Introduce fw_devlink_set_device()
drivers: core: Use fw_devlink_set_device()
pinctrl: cs42l43: Use fw_devlink_set_device()
cxl/test: Use device_set_node()
cxl/test: Use fw_devlink_set_device()
PCI: of: Use fw_devlink_set_device()
PCI: of: Clear fwnode->dev during root bridge node removal and error
path
PCI: of: Set fwnode device of newly created PCI device nodes
PCI: of: Remove fwnode_dev_initialized() call for a PCI root bridge
node
PCI: of: Avoid np->data usage for the node changeset

 drivers/base/core.c                      |  4 +-
 drivers/pci/of.c                         | 52 ++++++++++++++++--------
 drivers/pinctrl/cirrus/pinctrl-cs42l43.c |  2 +-
 include/linux/fwnode.h                   |  6 +++
 include/linux/pci.h                      | 11 +++++
 tools/testing/cxl/test/cxl.c             |  4 +-
 6 files changed, 58 insertions(+), 21 deletions(-)
Signature · 1 line
2.56.0