summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/mvsas/mv_94xx.c
diff options
context:
space:
mode:
authorXiangliang Yu <yuxiangl@marvell.com>2011-09-29 09:33:49 +0200
committerJames Bottomley <JBottomley@Parallels.com>2011-10-02 20:12:13 +0200
commit477f6d190bdebc9a3ec99e4bb396b981f747bf19 (patch)
treed3e7f2f96b7add89360f60a74485b0d303eb4175 /drivers/scsi/mvsas/mv_94xx.c
parent[SCSI] mvsas: add support for 9480 device id (diff)
downloadlinux-477f6d190bdebc9a3ec99e4bb396b981f747bf19.tar.xz
linux-477f6d190bdebc9a3ec99e4bb396b981f747bf19.zip
[SCSI] mvsas: fixed some disk spin up issue
spin up issue: some direct attached SAS device can't spin up Signed-off-by: Xiangliang Yu <yuxiangl@marvell.com> Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Diffstat (limited to 'drivers/scsi/mvsas/mv_94xx.c')
-rw-r--r--drivers/scsi/mvsas/mv_94xx.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/scsi/mvsas/mv_94xx.c b/drivers/scsi/mvsas/mv_94xx.c
index 3501291618fd..8f32c7c567cf 100644
--- a/drivers/scsi/mvsas/mv_94xx.c
+++ b/drivers/scsi/mvsas/mv_94xx.c
@@ -823,6 +823,10 @@ static void mvs_94xx_fix_phy_info(struct mvs_info *mvi, int i,
phy->att_dev_info = PORT_DEV_STP_TRGT | 1;
}
+ /* enable spin up bit */
+ mvs_write_port_cfg_addr(mvi, i, PHYR_PHY_STAT);
+ mvs_write_port_cfg_data(mvi, i, 0x04);
+
}
void mvs_94xx_phy_set_link_rate(struct mvs_info *mvi, u32 phy_id,