From: Matthew Wilcox Date: Fri, 14 Aug 2009 12:55:09 +0000 (+0200) Subject: Make Physical Slot work for multifunction cards X-Git-Tag: v3.1.5~11^2 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=fc038beeb80ddb4185487e0e61a76ff9c51ffa2c;p=pciutils.git Make Physical Slot work for multifunction cards 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 --- 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);