]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ses: show devices for enclosures with no page 7
authorJohn Hughes <john@Calva.COM>
Wed, 4 Nov 2009 18:01:22 +0000 (19:01 +0100)
committerAK <andi@firstfloor.org>
Thu, 31 Mar 2011 18:58:50 +0000 (11:58 -0700)
commit4fec50c333c8b4ed55ba05320b781e63ed829e8d
tree959df54390999fac53ef3ec84f7c3cc3bbad971f
parent6e59c823bf33fbbf211fa55198aafaf125fab95f
ses: show devices for enclosures with no page 7

commit 877a55979c189c590e819a61cbbe2b7947875f17 upstream.

enclosure page 7 gives us the "pretty" names of the enclosure slots.
Without a page 7, we can still use the enclosure code as long as we
make up numeric names for the slots. Unfortunately, the current code
fails to add any devices because the check for page 10 is in the wrong
place if we have no page 7.  Fix it so that devices show up even if
the enclosure has no page 7.

Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: Andi Kleen <ak@linux.intel.com>
drivers/scsi/ses.c