projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ade044a
)
PCI/sysfs: Use pci_irq_vector()
author
Thomas Gleixner
<tglx@linutronix.de>
Mon, 6 Dec 2021 22:27:36 +0000
(23:27 +0100)
committer
Thomas Gleixner
<tglx@linutronix.de>
Thu, 9 Dec 2021 10:52:21 +0000
(11:52 +0100)
instead of fiddling with MSI descriptors.
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Tested-by: Juergen Gross <jgross@suse.com>
Reviewed-by: Jason Gunthorpe <jgg@nvidia.com>
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Acked-by: Bjorn Helgaas <bhelgaas@google.com>
Link:
https://lore.kernel.org/r/20211206210224.265589103@linutronix.de
drivers/pci/pci-sysfs.c
patch
|
blob
|
history
diff --git
a/drivers/pci/pci-sysfs.c
b/drivers/pci/pci-sysfs.c
index cfe2f85af09e2e5bd6270bfbd3d45ffb9b3057c3..602f0fb0b007eada01fcb4a9bd7340957e7298a1 100644
(file)
--- a/
drivers/pci/pci-sysfs.c
+++ b/
drivers/pci/pci-sysfs.c
@@
-62,11
+62,8
@@
static ssize_t irq_show(struct device *dev,
* 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);