Skip to content

PCI: aardvark controller fixes BATCH 3

Marek Behún linux-pci 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest7 patches 6 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7PCI: pci-bridge-emul: Add description for class_revision fielddrivers/pci/pci-bridge-emul.c+5 -10 replies
2/7PCI: pci-bridge-emul: Add definitions for missing capabilities registersdrivers/pci/pci-bridge-emul.c+39 -01 reply
3/7PCI: aardvark: Add support for DEVCAP2, DEVCTL2, LNKCAP2 and LNKCTL2 registers on emulated bridgedrivers/pci/controller/pci-aardvark.c+11 -40 replies
4/7PCI: aardvark: Clear all MSIs at setupdrivers/pci/controller/pci-aardvark.c+4 -20 replies
5/7PCI: aardvark: Disable bus mastering and mask all interrupts when unbinding driverdrivers/pci/controller/pci-aardvark.c+29 -01 reply
6/7PCI: aardvark: Free config space for emulated root bridge when unbinding driver to fix memory leakdrivers/pci/controller/pci-aardvark.c+3 -00 replies
7/7PCI: aardvark: Reset PCIe card and disable PHY at driver unbinddrivers/pci/controller/pci-aardvark.c+12 -04 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/7] PCI: aardvark controller fixes BATCH 3

Dear Lorenzo,

since we have dropped some patches from the second batch, I thought that we could instead replace them with another 7 small changes, that we can hopefully get applied in this cycle.

Description:
- patch 1 just adds a small explanation to pci-bridge-emul, no functional change
- patches 2 and 3 add support for some more registers on emulated bridge
- patch 4 is taken from the MSI patches we dropped from batch 2, but since it only clears MSIs and adds a useful macro, and makes no changes that depend on the API change request by Marc, I think we can add it now (especially since patch 5 uses this new macro)
- patches 5-7 make driver unbind work better

Marek

Pali Rohár (7):
PCI: pci-bridge-emul: Add description for class_revision field
PCI: pci-bridge-emul: Add definitions for missing capabilities
registers
PCI: aardvark: Add support for DEVCAP2, DEVCTL2, LNKCAP2 and LNKCTL2
registers on emulated bridge
PCI: aardvark: Clear all MSIs at setup
PCI: aardvark: Disable bus mastering and mask all interrupts when
unbinding driver
PCI: aardvark: Free config space for emulated root bridge when
unbinding driver to fix memory leak
PCI: aardvark: Reset PCIe card and disable PHY at driver unbind

 drivers/pci/controller/pci-aardvark.c | 65 ++++++++++++++++++++++++---
 drivers/pci/pci-bridge-emul.c         | 45 ++++++++++++++++++-
 2 files changed, 103 insertions(+), 7 deletions(-)
Signature · 1 line
2.32.0