[prev in list] [next in list] [prev in thread] [next in thread]
List: linux-sparc
Subject: [patch 08/22] PCI/sysfs: Use pci_irq_vector()
From: Thomas Gleixner <tglx () linutronix ! de>
Date: 2021-11-27 1:19:33
Message-ID: 20211126223824.558746009 () linutronix ! de
[Download RAW message or body]
instead of fiddling with msi descriptors.
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
---
drivers/pci/pci-sysfs.c | 7 ++-----
1 file changed, 2 insertions(+), 5 deletions(-)
--- a/drivers/pci/pci-sysfs.c
+++ b/drivers/pci/pci-sysfs.c
@@ -62,11 +62,8 @@ static ssize_t irq_show(struct device *d
* For MSI, show the first MSI IRQ; for all other cases including
* MSI-X, show the legacy INTx IRQ.
*/
- if (pdev->msi_enabled) {
- struct msi_desc *desc = first_pci_msi_entry(pdev);
-
- return sysfs_emit(buf, "%u\n", desc->irq);
- }
+ if (pdev->msi_enabled)
+ return sysfs_emit(buf, "%u\n", pci_irq_vector(pdev, 0));
#endif
return sysfs_emit(buf, "%u\n", pdev->irq);
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic