]> 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)
committerPaul Gortmaker <paul.gortmaker@windriver.com>
Wed, 14 Mar 2012 14:56:52 +0000 (10:56 -0400)
commit3916210a51756e835f2dfe8df40bb0a79d3a9fe8
tree9b02ef4cf61ab09e109a39dfa9465a35845b6798
parentf819b2bb8ac398f2f0461ae3aad95cfc4906499d
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: Paul Gortmaker <paul.gortmaker@windriver.com>
drivers/scsi/ses.c