diff options
author | jack wang <jack_wang@usish.com> | 2009-12-07 17:23:05 +0800 |
---|---|---|
committer | James Bottomley <James.Bottomley@suse.de> | 2009-12-10 10:07:30 -0600 |
commit | 8257ec80ba5b333dedf3395acf90055075aeba94 (patch) | |
tree | cea9eb2bfdfa0222011106e0465fba60f406da8f /drivers/scsi | |
parent | a61b8699c764cccf85ccbf489e1772b2950ba4c6 (diff) | |
download | linux-8257ec80ba5b333dedf3395acf90055075aeba94.tar.gz linux-8257ec80ba5b333dedf3395acf90055075aeba94.tar.bz2 linux-8257ec80ba5b333dedf3395acf90055075aeba94.zip |
[SCSI] pm8001: do not reset local sata as it will not be found if reset
Signed-off-by: Jack Wang <jack_wang@usish.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Diffstat (limited to 'drivers/scsi')
-rw-r--r-- | drivers/scsi/pm8001/pm8001_sas.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/scsi/pm8001/pm8001_sas.c b/drivers/scsi/pm8001/pm8001_sas.c index c86f92160c7a..e3d4f385dcce 100644 --- a/drivers/scsi/pm8001/pm8001_sas.c +++ b/drivers/scsi/pm8001/pm8001_sas.c @@ -944,6 +944,8 @@ int pm8001_I_T_nexus_reset(struct domain_device *dev) if (dev_is_sata(dev)) { DECLARE_COMPLETION_ONSTACK(completion_setstate); + if (scsi_is_sas_phy_local(phy)) + return 0; rc = sas_phy_reset(phy, 1); msleep(2000); rc = pm8001_exec_internal_task_abort(pm8001_ha, pm8001_dev , |