Re: [PATCH V3] Export SMBIOS provided firmware instance and label to sysfs

From
Greg KH <hidden>
Date
2010-07-22 18:56:28
Reply to
Narendra K, 2010-07-22
On Thu, Jul 22, 2010 at 01:44:48PM -0500, Narendra K wrote:
quoted hunk ↗ jump to hunk
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 <redacted>
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 <redacted>
Signed-off-by: Narendra K <redacted>
---
 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 <linux-pci@vger.kernel.org>
Why not contact you?
quoted hunk ↗ jump to hunk
+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.
quoted hunk ↗ jump to hunk
+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 <linux-pci@vger.kernel.org>
+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
Thread (2 messages) 2 messages, 2 authors, last reply 2010-07-22
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help