diff options
author | Dan Williams <dan.j.williams@intel.com> | 2014-12-31 01:46:17 +0300 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2015-01-09 17:44:19 +0300 |
commit | 921ce7f5786052749a22a75780f5ce1a456bcdc6 (patch) | |
tree | 88b5aa17bc95e68a8ab7635bbc2a0221718044ca /include/linux/enclosure.h | |
parent | 967f7bab0eaaa74d7d01a56d45aa309f78fb87dd (diff) | |
download | linux-921ce7f5786052749a22a75780f5ce1a456bcdc6.tar.xz |
ses: add reliable slot attribute
The name provided by firmware is in a vendor specific format, publish
the slot number to have a reliable mechanism for identifying slots
across firmware implementations. If the enclosure does not provide a
slot number fallback to the component number which is guaranteed unique,
and usually mirrors the slot number.
Cleaned up the unused ses_component.desc in the process.
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Signed-off-by: Song Liu <songliubraving@fb.com>
Reviewed-by: Jens Axboe <axboe@fb.com>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'include/linux/enclosure.h')
-rw-r--r-- | include/linux/enclosure.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/enclosure.h b/include/linux/enclosure.h index 807622b252a4..0f826c14a337 100644 --- a/include/linux/enclosure.h +++ b/include/linux/enclosure.h @@ -92,6 +92,7 @@ struct enclosure_component { int fault; int active; int locate; + int slot; enum enclosure_status status; }; |