diff options
author | Kashyap, Desai <kashyap.desai@lsi.com> | 2009-09-23 08:02:06 -0400 |
---|---|---|
committer | James Bottomley <James.Bottomley@suse.de> | 2009-10-29 13:03:14 -0400 |
commit | 96b681c6ad3f2f5013c0ffc558969ee6ac8c450b (patch) | |
tree | 7ef2646232624ce8beade229ea351ee57cd841bf /drivers/scsi/mpt2sas | |
parent | ec6c2b43b08f29e08ed5440abae1ec18d80fa8b7 (diff) |
[SCSI] mpt2sas: Retrieve the ioc facts prior to putting the controller into READY state
The driver needs to retrieve the ioc facts prior to putting the controller
into READY state. The current design is calling ioc facts after putting the
controller into READY state, which means the driver is sending a diag reset
instead of message unit reset becuase the capability information is not yet
available.
Signed-off-by: Kashyap Desai <kashyap.desai@lsi.com>
Signed-off-by: Eric Moore <Eric.moore@lsi.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Diffstat (limited to 'drivers/scsi/mpt2sas')
-rw-r--r-- | drivers/scsi/mpt2sas/mpt2sas_base.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/scsi/mpt2sas/mpt2sas_base.c b/drivers/scsi/mpt2sas/mpt2sas_base.c index c3524bcefd54..84087cc2d772 100644 --- a/drivers/scsi/mpt2sas/mpt2sas_base.c +++ b/drivers/scsi/mpt2sas/mpt2sas_base.c | |||
@@ -3545,11 +3545,11 @@ mpt2sas_base_attach(struct MPT2SAS_ADAPTER *ioc) | |||
3545 | return r; | 3545 | return r; |
3546 | 3546 | ||
3547 | pci_set_drvdata(ioc->pdev, ioc->shost); | 3547 | pci_set_drvdata(ioc->pdev, ioc->shost); |
3548 | r = _base_make_ioc_ready(ioc, CAN_SLEEP, SOFT_RESET); | 3548 | r = _base_get_ioc_facts(ioc, CAN_SLEEP); |
3549 | if (r) | 3549 | if (r) |
3550 | goto out_free_resources; | 3550 | goto out_free_resources; |
3551 | 3551 | ||
3552 | r = _base_get_ioc_facts(ioc, CAN_SLEEP); | 3552 | r = _base_make_ioc_ready(ioc, CAN_SLEEP, SOFT_RESET); |
3553 | if (r) | 3553 | if (r) |
3554 | goto out_free_resources; | 3554 | goto out_free_resources; |
3555 | 3555 | ||