[SCSI] ses: add subenclosure support
authorJames Bottomley <James.Bottomley@suse.de>
Fri, 18 Mar 2011 15:24:23 +0000 (11:24 -0400)
committerJames Bottomley <James.Bottomley@suse.de>
Wed, 23 Mar 2011 16:37:09 +0000 (11:37 -0500)
commit8c3adc796f32fa4878ec843f8960717ba377e024
tree993df6f496462a43839d8feadef3c1ae3ec4b855
parentd9f7f37b90e7b0180961cb6567ae423ac3757db8
[SCSI] ses: add subenclosure support

There have been many complaints that an enclosure with subenclosures
isn't attached to by the ses driver.   Until now, though, no-one had
been willing to provide access to one.

Subenclosures are added simply by flattening the tree (i.e. all
subenclosure devices show up under the one main device).  This may have
consequences if the naming is only unique per subenclosure, but that's a
bug for another day.  The tested array had no page 7, so no device
naming at all.  It also only had the disk devices on one of its
subenclosures (all the others had power, fans, temperature and various
sensors), so testing of this is fairly rudimentary.

Signed-off-by: James Bottomley <James.Bottomley@suse.de>
drivers/scsi/ses.c