From mboxrd@z Thu Jan 1 00:00:00 1970 From: Greg KH Date: Thu, 22 Jul 2010 18:56:03 +0000 Subject: Re: [PATCH V3] Export SMBIOS provided firmware instance and label Message-Id: <20100722185603.GA2193@kroah.com> List-Id: References: <20100722184448.GA9122@auslistsprd01.us.dell.com> In-Reply-To: <20100722184448.GA9122@auslistsprd01.us.dell.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Narendra K Cc: netdev@vger.kernel.org, linux-hotplug@vger.kernel.org, linux-pci@vger.kernel.org, matt_domsch@dell.com, charles_rose@dell.com, jordan_hargrave@dell.com, vijay_nijhawan@dell.com On Thu, Jul 22, 2010 at 01:44:48PM -0500, Narendra K wrote: > Hello, > > Resubmitting the patch with suggested changes - > > V2 -> V3: > > 1. Added documentation about the sysfs attributes in Documentation/ABI > directory. > 2. Changed the type of parameter 'attribute' of the function > 'find_smbios_instance_string' from int to enum. > 3. Changed the return type of the functions 'pci_create_firmware_label_files' > and 'pci_remove_firmware_label_files' from int to void > > Please find the patch with above changes - > > > From: Narendra K > Subject: [PATCH] Export SMBIOS provided firmware instance and label to sysfs > > This patch exports SMBIOS provided firmware instance and label > of onboard pci devices to sysfs > > Signed-off-by: Jordan Hargrave > Signed-off-by: Narendra K > --- > Documentation/ABI/testing/sysfs-bus-pci | 26 ++++++ > drivers/firmware/dmi_scan.c | 25 ++++++ > drivers/pci/Makefile | 3 + > drivers/pci/pci-label.c | 143 +++++++++++++++++++++++++++++++ > drivers/pci/pci-sysfs.c | 5 + > drivers/pci/pci.h | 9 ++ > include/linux/dmi.h | 9 ++ > 7 files changed, 220 insertions(+), 0 deletions(-) > create mode 100644 drivers/pci/pci-label.c > > diff --git a/Documentation/ABI/testing/sysfs-bus-pci b/Documentation/ABI/testing/sysfs-bus-pci > index 428676c..d3eb807 100644 > --- a/Documentation/ABI/testing/sysfs-bus-pci > +++ b/Documentation/ABI/testing/sysfs-bus-pci > @@ -179,3 +179,29 @@ Contact: linux-pci@vger.kernel.org > Description: > This symbolic link points to the PCI hotplug controller driver > module that manages the hotplug slot. > + > +What: /sys/bus/pci/devices/.../label > +Date: July 2010 > +Contact: Linux PCI developers Why not contact you? > +Description: > + Reading this attribute will provide the firmware > + given name of the PCI device. The attribute will > + be created only if the firmware has given a name > + to the PCI device. Where does that "name" come from? Please describe this. > +Users: > + Userspace applications interested in knowing the > + firmware assigned name of the PCI device. > + > +What: /sys/bus/pci/devices/.../index > +Date: July 2010 > +Contact: Linux PCI developers > +Description: > + Reading this attribute will provide the firmware > + given instance of the PCI device. The attribute will > + be created only if the firmware has given a device > + type instance to the PCI device. Same comments as above. thanks, greg k-h