summaryrefslogtreecommitdiffstats
path: root/drivers/sbus/char
diff options
context:
space:
mode:
authorMarkus Stockhausen <stockhausen@collogia.de>2014-10-04 13:35:15 +0000
committerChristoph Hellwig <hch@lst.de>2014-11-12 11:15:55 +0100
commitd2fd76e6f60ce438e98512236138a3527ad6a736 (patch)
tree0e6f008a96adebdf5a32fee3d9699bc3a7943e17 /drivers/sbus/char
parent2bec708a88ce053ffcb0dd8e373d1e46c6dc38a4 (diff)
downloadlinux-d2fd76e6f60ce438e98512236138a3527ad6a736.tar.gz
linux-d2fd76e6f60ce438e98512236138a3527ad6a736.tar.bz2
linux-d2fd76e6f60ce438e98512236138a3527ad6a736.zip
enclosure: handle non-unique element descriptors
Some SES devices give non-unique Element Descriptors as part of the Element Descriptor diag page. Since we use these for creating sysfs entries, they need to be unique. The specification doesn't require these to be unique. Eg: $ sg_ses -p 7 /dev/sg0 FTS CORP TXS6_SAS20BPX12 0500 enclosure services device Element descriptor In diagnostic page: generation code: 0x0 element descriptor by type list Element type: Array device, subenclosure id: 0 Overall descriptor: ArrayDevicesInSubEnclsr0 Element 1 descriptor: ArrayDevice00 Element 2 descriptor: ArrayDevice01 Element 3 descriptor: ArrayDevice02 Element 4 descriptor: ArrayDevice03 Element 5 descriptor: ArrayDevice03 Element 6 descriptor: ArrayDevice03 Element 7 descriptor: ArrayDevice03 Element 8 descriptor: ArrayDevice03 Element 9 descriptor: ArrayDevice03 Element 10 descriptor: ArrayDevice03 Element 11 descriptor: ArrayDevice03 Element 12 descriptor: ArrayDevice03 Based on http://thread.gmane.org/gmane.linux.scsi/69289. This version implements James' ideas about the naming convention Signed-off-by: Markus Stockhausen <stockhausen@collogia.de> Acked-by: James Bottomley <James.Bottomley@HansenPartnership.com> Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'drivers/sbus/char')
0 files changed, 0 insertions, 0 deletions