From 16d3db1b298529e6aec4a4cf0f56225d9e0bc641 Mon Sep 17 00:00:00 2001 From: Dan Williams Date: Mon, 30 Jan 2012 22:53:51 -0800 Subject: [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 Signed-off-by: James Bottomley --- drivers/scsi/scsi_transport_sas.c | 1 + 1 file changed, 1 insertion(+) (limited to 'drivers/scsi/scsi_transport_sas.c') 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; }; -- cgit v1.2.3