[SCSI] scsi_transport_sas: 'enable' phys on reset
authorDan Williams <dan.j.williams@intel.com>
Tue, 31 Jan 2012 06:53:51 +0000 (22:53 -0800)
committerJames Bottomley <JBottomley@Parallels.com>
Wed, 29 Feb 2012 21:43:54 +0000 (15:43 -0600)
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>
drivers/scsi/scsi_transport_sas.c

index 7d69a25d200426dc6de660b5d3732115898494b2..f7565fc4f0e344a0862bfaf02148c826fa7e7538 100644 (file)
@@ -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;
 };