Skip to content

PCI/portdrv: Use bus-type functions

Uwe Kleine-König linux-pci 1 version Applied

Status from this message: Applied to pci/portdrv for v6.20, thanks for doing this!

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest6 patches 12 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/6PCI/portdrv: Fix potential resource leakdrivers/pci/pcie/portdrv.c+3 -32 replies
2/6PCI/portdrv: Drop empty shutdown callbackdrivers/pci/pcie/portdrv.c+0 -123 replies
3/6PCI/portdrv: Don't check for the driver's and device's busdrivers/pci/pci-driver.c+2 -81 reply
4/6PCI/portdrv: Move pcie_port_bus_type to pcie source filedrivers/pci/pci-driver.c drivers/pci/pcie/portdrv.c+20 -223 replies
5/6PCI/portdrv: Don't check for valid device and driver in bus callbacksdrivers/pci/pcie/portdrv.c+0 -61 reply
6/6PCI/portdrv: Use bus-type functionsdrivers/pci/pcie/portdrv.c+6 -71 reply

Reviews trailers per patch

5 of 6 patches have a Reviewed-by or Acked-by.

PatchIlpo JärvinenJonathan Cameron
1/6R-b R-b
2/6R-b R-b
3/6R-b
4/6
5/6R-b
6/6R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/6] PCI/portdrv: Use bus-type functions

Hello,

with the eventual goal to remore .probe(), .remove() and .shutdown() from struct device_driver convert pcie portdrv to use bus-type callbacks.

The first patch is a fix, but I think it's not relevant as I didn't find a pcie driver without a remove callback. Feel free to drop the Fixes line if you think it's not justified and decide yourself if you want it backported to stable. I have no strong opinion here.

For the complete series there is no intended change in behaviour (apart from the fix in the first patch :-).

Best regards
Uwe

Uwe Kleine-König (6):
PCI/portdrv: Fix potential resource leak
PCI/portdrv: Drop empty shutdown callback
PCI/portdrv: Don't check for the driver's and device's bus PCI/portdrv: Move pcie_port_bus_type to pcie source file PCI/portdrv: Don't check for valid device and driver in bus callbacks PCI/portdrv: Use bus-type functions

 drivers/pci/pci-driver.c   | 28 -------------------
 drivers/pci/pcie/portdrv.c | 55 +++++++++++++++++++-------------------
 2 files changed, 28 insertions(+), 55 deletions(-)

base-commit: 7d0a66e4bb9081d75c82ec4957c50034cb0ea449

Signature · 1 line
2.47.3