Skip to content

Commit 41cd3fd

Browse files
committed
Merge tag 'pci-v6.17-fixes-2' of git://git.kernel.org/pub/scm/linux/kernel/git/pci/pci
Pull pci fixes from Bjorn Helgaas: - Remove vmd restriction on children using MSI-X because VMD does in fact support both MSI and MSI-X for children (Nam Cao) - Fix a NULL pointer dereference in the xilinx interrupt handler (Nam Cao) * tag 'pci-v6.17-fixes-2' of git://git.kernel.org/pub/scm/linux/kernel/git/pci/pci: PCI: vmd: Remove MSI-X check on child devices PCI: xilinx: Fix NULL pointer dereference in xilinx_pcie_intr_handler()
2 parents b19a97d + 5149bbb commit 41cd3fd

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

drivers/pci/controller/pcie-xilinx.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -400,7 +400,7 @@ static irqreturn_t xilinx_pcie_intr_handler(int irq, void *data)
400400
if (val & XILINX_PCIE_RPIFR1_MSI_INTR) {
401401
val = pcie_read(pcie, XILINX_PCIE_REG_RPIFR2) &
402402
XILINX_PCIE_RPIFR2_MSG_DATA;
403-
domain = pcie->msi_domain->parent;
403+
domain = pcie->msi_domain;
404404
} else {
405405
val = (val & XILINX_PCIE_RPIFR1_INTR_MASK) >>
406406
XILINX_PCIE_RPIFR1_INTR_SHIFT;

drivers/pci/controller/vmd.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -306,9 +306,6 @@ static bool vmd_init_dev_msi_info(struct device *dev, struct irq_domain *domain,
306306
struct irq_domain *real_parent,
307307
struct msi_domain_info *info)
308308
{
309-
if (WARN_ON_ONCE(info->bus_token != DOMAIN_BUS_PCI_DEVICE_MSIX))
310-
return false;
311-
312309
if (!msi_lib_init_dev_msi_info(dev, domain, real_parent, info))
313310
return false;
314311

0 commit comments

Comments
 (0)