diff options
author | Jeff Skirvin <jeffrey.d.skirvin@intel.com> | 2011-06-20 17:08:51 -0400 |
---|---|---|
committer | Dan Williams <dan.j.williams@intel.com> | 2011-07-03 07:04:50 -0400 |
commit | ff717ab05f0c33f93514eccea6dfe1a15983e1d1 (patch) | |
tree | e5894d5bd8138ec1c56bcb6b754d04a862f86804 /drivers/scsi/isci | |
parent | 7c78da3175177c905a75c54b5830029c778494ea (diff) |
isci: Move the reset delay after the remote node resumption.
Delay after bringing up the RNC to allow for resumption latency.
Signed-off-by: Jeff Skirvin <jeffrey.d.skirvin@intel.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'drivers/scsi/isci')
-rw-r--r-- | drivers/scsi/isci/task.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/scsi/isci/task.c b/drivers/scsi/isci/task.c index b54ef2b0fca1..69f17b98e4fa 100644 --- a/drivers/scsi/isci/task.c +++ b/drivers/scsi/isci/task.c | |||
@@ -1433,15 +1433,17 @@ static int isci_reset_device(struct domain_device *dev, int hard_reset) | |||
1433 | isci_device_clear_reset_pending(ihost, idev); | 1433 | isci_device_clear_reset_pending(ihost, idev); |
1434 | 1434 | ||
1435 | rc = sas_phy_reset(phy, hard_reset); | 1435 | rc = sas_phy_reset(phy, hard_reset); |
1436 | msleep(2000); /* just like mvsas */ | ||
1437 | 1436 | ||
1438 | /* Terminate in-progress I/O now. */ | 1437 | /* Terminate in-progress I/O now. */ |
1439 | isci_remote_device_nuke_requests(ihost, idev); | 1438 | isci_remote_device_nuke_requests(ihost, idev); |
1440 | 1439 | ||
1440 | /* Since all pending TCs have been cleaned, resume the RNC. */ | ||
1441 | spin_lock_irqsave(&ihost->scic_lock, flags); | 1441 | spin_lock_irqsave(&ihost->scic_lock, flags); |
1442 | status = scic_remote_device_reset_complete(&idev->sci); | 1442 | status = scic_remote_device_reset_complete(&idev->sci); |
1443 | spin_unlock_irqrestore(&ihost->scic_lock, flags); | 1443 | spin_unlock_irqrestore(&ihost->scic_lock, flags); |
1444 | 1444 | ||
1445 | msleep(2000); /* just like mvsas */ | ||
1446 | |||
1445 | if (status != SCI_SUCCESS) { | 1447 | if (status != SCI_SUCCESS) { |
1446 | dev_warn(&ihost->pdev->dev, | 1448 | dev_warn(&ihost->pdev->dev, |
1447 | "%s: scic_remote_device_reset_complete(%p) " | 1449 | "%s: scic_remote_device_reset_complete(%p) " |