switchtec: Add sysfs attributes to the Switchtec driver
Add a few read-only sysfs attributes which provide some device information
that is exposed from the devices, primarily component and device names and
versions.
These are documented in Documentation/ABI/testing/sysfs-class-switchtec.
Tested-by: Krishna Dhulipala <krishnad@fb.com>
Signed-off-by: Logan Gunthorpe <logang@deltatee.com>
Signed-off-by: Stephen Bates <stephen.bates@microsemi.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Wei Zhang <wzhang@fb.com>
Reviewed-by: Jens Axboe <axboe@fb.com>
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
diff --git a/MAINTAINERS b/MAINTAINERS
index 5bc3b7c..76ccc5a 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -9662,6 +9662,7 @@
L: linux-pci@vger.kernel.org
S: Maintained
F: Documentation/switchtec.txt
+F: Documentation/ABI/testing/sysfs-class-switchtec
F: drivers/pci/switch/switchtec*
PCI DRIVER FOR NVIDIA TEGRA