From patchwork Mon Aug 10 20:56:05 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matthew Wilcox X-Patchwork-Id: 40501 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n7AKwEWH007735 for ; Mon, 10 Aug 2009 20:58:14 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753781AbZHJU4O (ORCPT ); Mon, 10 Aug 2009 16:56:14 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753748AbZHJU4I (ORCPT ); Mon, 10 Aug 2009 16:56:08 -0400 Received: from palinux.external.hp.com ([192.25.206.14]:49024 "EHLO mail.parisc-linux.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753655AbZHJU4F (ORCPT ); Mon, 10 Aug 2009 16:56:05 -0400 Received: by mail.parisc-linux.org (Postfix, from userid 26919) id 107FC494006; Mon, 10 Aug 2009 14:56:05 -0600 (MDT) Date: Mon, 10 Aug 2009 14:56:05 -0600 From: Matthew Wilcox To: linux-pci@vger.kernel.org Subject: [pciutils PATCH] Make Physical Slot work for multifunction cards Message-ID: <20090810205605.GB31442@parisc-linux.org> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.18 (2008-05-17) Sender: linux-pci-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org 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);