forked from Minki/linux
[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>
This commit is contained in:
parent
26a2e68f81
commit
16d3db1b29
@ -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);
|
error = i->f->phy_reset(phy, hard_reset);
|
||||||
if (error)
|
if (error)
|
||||||
return error;
|
return error;
|
||||||
|
phy->enabled = 1;
|
||||||
return count;
|
return count;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user