switchtec: Add sysfs attributes to the Switchtec driver
authorLogan Gunthorpe <logang@deltatee.com>
Thu, 2 Mar 2017 23:24:33 +0000 (16:24 -0700)
committerBjorn Helgaas <bhelgaas@google.com>
Wed, 12 Apr 2017 17:23:37 +0000 (12:23 -0500)
commit5d8e1881f431cf470170813eb048e6a384340904
treee60ad3c74003eb0830789a6bf01dc7b2934d8f7f
parent44fc691b4fac3aff3e99b42cad3a994f5a6621ac
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>
Documentation/ABI/testing/sysfs-class-switchtec [new file with mode: 0644]
MAINTAINERS
drivers/pci/switch/switchtec.c