[SCSI] mpt2sas: Fix to use sas device list instead of enclosure list for _transpor_ge...
commitab6ce92541ea24c6a92be8498d7d1b26c14ec62d
authorKashyap, Desai <kashyap.desai@lsi.com>
Thu, 17 Jun 2010 07:55:13 +0000 (17 13:25 +0530)
committerJames Bottomley <James.Bottomley@suse.de>
Tue, 27 Jul 2010 17:02:06 +0000 (27 12:02 -0500)
treef56c00fede2575053251c402dad1583b63b26822
parent593d5720745658a4a973952fb74f6d863c531e97
[SCSI] mpt2sas: Fix to use sas device list instead of enclosure list for _transpor_get_enclosure_identifier.

Enclosure_identifier not being returned by mpt2sas
The driver exports callback function to the sas transport layer
for obtaining the enclosure logical id.  This function is called
_transport_get_enclosure_identifier.  The driver was searching
the wrong list for the enclosure_identifier.  The driver should be
searching the sas device list instead of enclosure list.  The
sas address that is passed to the driver is for the end device, not
enclosure.

Signed-off-by: Kashyap Desai <kashyap.desai@lsi.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
drivers/scsi/mpt2sas/mpt2sas_transport.c