summaryrefslogtreecommitdiff
path: root/drivers/scsi/scsi_transport_sas.c
diff options
context:
space:
mode:
authorDan Williams <dan.j.williams@intel.com>2012-01-31 10:53:51 +0400
committerJames Bottomley <JBottomley@Parallels.com>2012-03-01 01:43:54 +0400
commit16d3db1b298529e6aec4a4cf0f56225d9e0bc641 (patch)
tree6344a6a694fd6e4053782ddc72a13a67f4983b40 /drivers/scsi/scsi_transport_sas.c
parent26a2e68f816ebd736a0484ca293457b280af4ef1 (diff)
downloadlinux-16d3db1b298529e6aec4a4cf0f56225d9e0bc641.tar.xz
[SCSI] scsi_transport_sas: 'enable' phys on reset
If userspace requests a phy reset, treat that as a request for the phy to be enabled since that is the effect on hardware. Signed-off-by: Dan Williams <dan.j.williams@intel.com> Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Diffstat (limited to 'drivers/scsi/scsi_transport_sas.c')
-rw-r--r--drivers/scsi/scsi_transport_sas.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/scsi/scsi_transport_sas.c b/drivers/scsi/scsi_transport_sas.c
index 7d69a25d2004..f7565fc4f0e3 100644
--- a/drivers/scsi/scsi_transport_sas.c
+++ b/drivers/scsi/scsi_transport_sas.c
@@ -615,6 +615,7 @@ do_sas_phy_reset(struct device *dev, size_t count, int hard_reset)
error = i->f->phy_reset(phy, hard_reset);
if (error)
return error;
+ phy->enabled = 1;
return count;
};