]> git.karo-electronics.de Git - mv-sheeva.git/commitdiff
[SCSI] mvsas: fixed wrong destination when hiting NAK for command frame
authorXiangliang Yu <yuxiangl@marvell.com>
Thu, 29 Sep 2011 07:34:11 +0000 (00:34 -0700)
committerJames Bottomley <JBottomley@Parallels.com>
Sun, 2 Oct 2011 18:14:00 +0000 (13:14 -0500)
disable non data frame retry

Signed-off-by: Xiangliang Yu <yuxiangl@marvell.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
drivers/scsi/mvsas/mv_94xx.c

index 8f32c7c567cfdf283bc3e0766576ea1cfab90973..ce4e970bcedfb2b42bd12745bb5235703c286808 100644 (file)
@@ -398,6 +398,16 @@ static int __devinit mvs_94xx_init(struct mvs_info *mvi)
        /* init phys */
        mvs_phy_hacks(mvi);
 
+       /* disable non data frame retry */
+       tmp = mvs_cr32(mvi, CMD_SAS_CTL1);
+       if ((revision == VANIR_A0_REV) ||
+               (revision == VANIR_B0_REV) ||
+               (revision == VANIR_C0_REV)) {
+               tmp &= ~0xffff;
+               tmp |= 0x007f;
+               mvs_cw32(mvi, CMD_SAS_CTL1, tmp);
+       }
+
        /* set LED blink when IO*/
        mw32(MVS_PA_VSR_ADDR, VSR_PHY_ACT_LED);
        tmp = mr32(MVS_PA_VSR_PORT);