[pciutils PATCH] Make Physical Slot work for multifunction cards

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I have some multifunction cards in a machine which supports physical
slots.  Currently, lspci only displays the Physical Slot for the last
function in the slot.  I believe it should display it for all of them.

Signed-off-by: Matthew Wilcox <willy@xxxxxxxxxxxxxxx>

diff --git a/lib/sysfs.c b/lib/sysfs.c
index 4c2c846..1ec4afb 100644
--- a/lib/sysfs.c
+++ b/lib/sysfs.c
@@ -238,7 +238,6 @@ sysfs_fill_slots(struct pci_access *a)
 	      {
 		d->phy_slot = pci_malloc(a, strlen(entry->d_name) + 1);
 		strcpy(d->phy_slot, entry->d_name);
-		break;
 	      }
 	}
       fclose(file);

-- 
Matthew Wilcox				Intel Open Source Technology Centre
"Bill, look, we understand that you're interested in selling us this
operating system, but compare it to ours.  We can't possibly take such
a retrograde step."
--
To unsubscribe from this list: send the line "unsubscribe linux-pci" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [DMA Engine]     [Linux Coverity]     [Linux USB]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Greybus]

  Powered by Linux