diff options
author | Dan Williams <dan.j.williams@intel.com> | 2012-01-30 22:53:51 -0800 |
---|---|---|
committer | James Bottomley <JBottomley@Parallels.com> | 2012-02-29 15:43:54 -0600 |
commit | 16d3db1b298529e6aec4a4cf0f56225d9e0bc641 (patch) | |
tree | 6344a6a694fd6e4053782ddc72a13a67f4983b40 /drivers/scsi | |
parent | 26a2e68f816ebd736a0484ca293457b280af4ef1 (diff) | |
download | op-kernel-dev-16d3db1b298529e6aec4a4cf0f56225d9e0bc641.zip op-kernel-dev-16d3db1b298529e6aec4a4cf0f56225d9e0bc641.tar.gz |
[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')
-rw-r--r-- | drivers/scsi/scsi_transport_sas.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/scsi/scsi_transport_sas.c b/drivers/scsi/scsi_transport_sas.c index 7d69a25..f7565fc 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; }; |