]> mj.ucw.cz Git - pciutils.git/commitdiff
Make Physical Slot work for multifunction cards
authorMatthew Wilcox <matthew@wil.cx>
Fri, 14 Aug 2009 12:55:09 +0000 (14:55 +0200)
committerMartin Mares <mj@ucw.cz>
Fri, 14 Aug 2009 12:56:12 +0000 (14:56 +0200)
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@linux.intel.com>
lib/sysfs.c

index 4c2c846bad12fb5fac495b9353a7280bcce67de0..1ec4afbfc75399310b5e2ce6cd1e3ac8305182e7 100644 (file)
@@ -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);