summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYaniv Gardi2015-05-17 17:55:02 +0200
committerJames Bottomley2015-06-02 22:16:20 +0200
commit8163743e23035dd2e2ab531878517137033d62bf (patch)
tree9b680f8580d4342d98ec53e967e0fad1e57ce1e8
parentscsi: ufs: introduce a broken PA_RXHSUNTERMCAP quirk (diff)
downloadkernel-qcow2-linux-8163743e23035dd2e2ab531878517137033d62bf.tar.gz
kernel-qcow2-linux-8163743e23035dd2e2ab531878517137033d62bf.tar.xz
kernel-qcow2-linux-8163743e23035dd2e2ab531878517137033d62bf.zip
scsi: ufs-qcom: enable quirk to fix gear change to HS
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>
-rw-r--r--drivers/scsi/ufs/ufs-qcom.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/scsi/ufs/ufs-qcom.c b/drivers/scsi/ufs/ufs-qcom.c
index 76d6e9d95a19..6e5b1830138e 100644
--- a/drivers/scsi/ufs/ufs-qcom.c
+++ b/drivers/scsi/ufs/ufs-qcom.c
@@ -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);
}
}