On Wed, May 04, 2022 at 06:57:25PM +0200, Marek Behún wrote: > Hello Greg, Sasha, > > this is backport of all the recet changes for the Aardvark PCIe controller > for 5.15. > These include > - memory leak fix in driver unbind > - more complete driver unbind > - fixes for MSI support > - add MSI-X support, which fixes support for some cards > - add ERR interrupt support (which we really missed when debugging) > > I also included some small cosmetic changes - this will make it easier > to backport next fixes for the driver (there is another batch pending > on linux-pci). > > Marek > > Marek Behún (5): > PCI: aardvark: Make MSI irq_chip structures static driver structures > PCI: aardvark: Make msi_domain_info structure a static driver > structure > PCI: aardvark: Use dev_fwnode() instead of > of_node_to_fwnode(dev->of_node) > PCI: aardvark: Drop __maybe_unused from advk_pcie_disable_phy() > PCI: aardvark: Update comment about link going down after link-up > > Pali Rohár (25): > 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: Comment actions in driver remove method > PCI: aardvark: Disable bus mastering when unbinding driver > PCI: aardvark: Mask all interrupts when unbinding driver > PCI: aardvark: Fix memory leak in driver unbind > PCI: aardvark: Assert PERST# when unbinding driver > PCI: aardvark: Disable link training when unbinding driver > PCI: aardvark: Disable common PHY when unbinding driver > PCI: aardvark: Replace custom PCIE_CORE_INT_* macros with > PCI_INTERRUPT_* > PCI: aardvark: Rewrite IRQ code to chained IRQ handler > PCI: aardvark: Check return value of generic_handle_domain_irq() when > processing INTx IRQ > PCI: aardvark: Refactor unmasking summary MSI interrupt > PCI: aardvark: Add support for masking MSI interrupts > PCI: aardvark: Fix setting MSI address > PCI: aardvark: Enable MSI-X support > PCI: aardvark: Add support for ERR interrupt on emulated bridge > PCI: aardvark: Optimize writing PCI_EXP_RTCTL_PMEIE and > PCI_EXP_RTSTA_PME on emulated bridge > PCI: aardvark: Add support for PME interrupts > PCI: aardvark: Fix support for PME requester on emulated bridge > PCI: aardvark: Use separate INTA interrupt for emulated root bridge > PCI: aardvark: Remove irq_mask_ack() callback for INTx interrupts > PCI: aardvark: Don't mask irq when mapping > > drivers/pci/controller/pci-aardvark.c | 428 +++++++++++++++++++------- > drivers/pci/pci-bridge-emul.c | 49 ++- > 2 files changed, 371 insertions(+), 106 deletions(-) > > -- > 2.35.1 > All now queued up, thanks. greg k-h