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)
committerBrad Figg <brad.figg@canonical.com>
Wed, 27 Apr 2011 18:40:29 +0000 (11:40 -0700)
commit8b7dec9854cbb310e4022f69f899384ea5b59cf9
treee6ef077e710150b5370cd8a23dbe23c2bed76499
parentf39b185fc6e1f79dc81a53dd305afaaed0c68d19
ses: show devices for enclosures with no page 7

BugLink: http://bugs.launchpad.net/bugs/761134

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: Tim Gardner <tim.gardner@canonical.com>
drivers/scsi/ses.c