scsi: ufs-qcom: enable quirk to fix gear change to HS
authorYaniv Gardi <ygardi@codeaurora.org>
Sun, 17 May 2015 15:55:02 +0000 (18:55 +0300)
committerJames Bottomley <JBottomley@Odin.com>
Tue, 2 Jun 2015 20:16:20 +0000 (13:16 -0700)
With the G3 UFS devices, changing gear into HS is failing in UFS host
controllers of version 0x2.
The quirk solves the problem of changing gear into HS by enabling
the attribute that specifies whether or not the inbound Link supports
unterminated line in HS mode.

Signed-off-by: Yaniv Gardi <ygardi@codeaurora.org>
Reviewed-by: Akinobu Mita <akinobu.mita@gmail.com>
Signed-off-by: James Bottomley <JBottomley@Odin.com>
drivers/scsi/ufs/ufs-qcom.c

index 76d6e9d95a19373a1d2e057362ba86ae2a60af2d..6e5b1830138e21641191a61cb4bf3d48e2977f7c 100644 (file)
@@ -708,7 +708,8 @@ static void ufs_qcom_advertise_quirks(struct ufs_hba *hba)
        struct ufs_qcom_host *host = hba->priv;
 
        if (host->hw_ver.major == 0x01) {
-               hba->quirks |= UFSHCD_QUIRK_DELAY_BEFORE_DME_CMDS;
+               hba->quirks |= UFSHCD_QUIRK_DELAY_BEFORE_DME_CMDS
+                           | UFSHCD_QUIRK_BROKEN_PA_RXHSUNTERMCAP;
 
                if (host->hw_ver.minor == 0x0001 && host->hw_ver.step == 0x0001)
                        hba->quirks |= UFSHCD_QUIRK_BROKEN_INTR_AGGR;
@@ -719,7 +720,8 @@ static void ufs_qcom_advertise_quirks(struct ufs_hba *hba)
 
                if (!ufs_qcom_cap_qunipro(host))
                        /* Legacy UniPro mode still need following quirks */
-                       hba->quirks |= UFSHCD_QUIRK_DELAY_BEFORE_DME_CMDS;
+                       hba->quirks |= (UFSHCD_QUIRK_DELAY_BEFORE_DME_CMDS
+                               | UFSHCD_QUIRK_BROKEN_PA_RXHSUNTERMCAP);
        }
 }
 
This page took 0.025268 seconds and 5 git commands to generate.