Thread (83 messages) 83 messages, 10 authors, 2022-01-31

[patch V3 06/35] powerpc/pseries/msi: Use PCI device properties

flat view
STALE1728d LANDED

From: Thomas Gleixner <hidden>
Date: 2021-12-10 22:19:29
Also in: dmaengine, linux-arm-kernel, linux-iommu, linux-pci, lkml, xen-devel

Status: Landed in mainline as ed1533b58101 on 2021-12-16.

Revision v3 (3 revisions archived).

Revisions (3)
  1. v1 re-posted go to this post
  2. v2 [diff against previous]
  3. v3 current [diff against previous]
From: Thomas Gleixner <redacted>

instead of fiddling with MSI descriptors.

Signed-off-by: Thomas Gleixner <redacted>
Cc: Michael Ellerman <mpe@ellerman.id.au>
Cc: <redacted>
---
V3: Use pci_dev->msix_enabled - Jason
---
 arch/powerpc/platforms/pseries/msi.c |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
--- a/arch/powerpc/platforms/pseries/msi.c
+++ b/arch/powerpc/platforms/pseries/msi.c
@@ -448,8 +448,7 @@ static int pseries_msi_ops_prepare(struc
 				   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);
 }
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help