diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2021-12-10 23:18:52 +0100 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2021-12-16 22:16:38 +0100 |
commit | ed1533b5810141aceed2c2a3f13a17736f40e7fa (patch) | |
tree | 9472b4597ae49528652ad82012f299afa6582554 | |
parent | d8a530578b166f3ec55d453b8b4b49599bd39884 (diff) | |
download | lwn-ed1533b5810141aceed2c2a3f13a17736f40e7fa.tar.gz lwn-ed1533b5810141aceed2c2a3f13a17736f40e7fa.zip |
powerpc/pseries/msi: Use PCI device properties
instead of fiddling with MSI descriptors.
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Jason Gunthorpe <jgg@nvidia.com>
Link: https://lore.kernel.org/r/20211210221813.556202506@linutronix.de
-rw-r--r-- | arch/powerpc/platforms/pseries/msi.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/powerpc/platforms/pseries/msi.c b/arch/powerpc/platforms/pseries/msi.c index 8e287204eeae..dc8cf3603f9a 100644 --- a/arch/powerpc/platforms/pseries/msi.c +++ b/arch/powerpc/platforms/pseries/msi.c @@ -448,8 +448,7 @@ static int pseries_msi_ops_prepare(struct irq_domain *domain, struct device *dev int nvec, msi_alloc_info_t *arg) { struct pci_dev *pdev = to_pci_dev(dev); - struct msi_desc *desc = first_pci_msi_entry(pdev); - int type = desc->pci.msi_attrib.is_msix ? PCI_CAP_ID_MSIX : PCI_CAP_ID_MSI; + int type = pdev->msix_enabled ? PCI_CAP_ID_MSIX : PCI_CAP_ID_MSI; return rtas_prepare_msi_irqs(pdev, nvec, type, arg); } |