Skip to content

Commit

Permalink
[SCSI] pm8001: do not reset local sata as it will not be found if reset
Browse files Browse the repository at this point in the history
Signed-off-by: Jack Wang <jack_wang@usish.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
  • Loading branch information
jack wang authored and James Bottomley committed Dec 10, 2009
1 parent a61b869 commit 8257ec8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/scsi/pm8001/pm8001_sas.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 ,
Expand Down

0 comments on commit 8257ec8

Please sign in to comment.