summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/ufs
diff options
context:
space:
mode:
authorYaniv Gardi <ygardi@codeaurora.org>2015-05-17 11:55:04 -0400
committerJames Bottomley <JBottomley@Odin.com>2015-06-02 16:19:52 -0400
commit2c0cc2e2693b3c13cf007cfd25b6ea43a1eceb45 (patch)
treebe2e17c85e5b410e7f237d7fc328c1e43668e270 /drivers/scsi/ufs
parent874237f7f2aae61d166613cc191238d8335087f8 (diff)
scsi: ufs-qcom: enable UFSHCD_QUIRK_DME_PEER_ACCESS_AUTO_MODE quirk
Current version of host controller on QUALCOMM Technologies requires this quirk to be enabled, as DME commands to device must be sent only in AUTO mode (SLOW AUTO or FAST AUTO). Signed-off-by: Yaniv Gardi <ygardi@codeaurora.org> Reviewed-by: Akinobu Mita <akinobu.mita@gmail.com> Signed-off-by: James Bottomley <JBottomley@Odin.com>
Diffstat (limited to 'drivers/scsi/ufs')
-rw-r--r--drivers/scsi/ufs/ufs-qcom.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/scsi/ufs/ufs-qcom.c b/drivers/scsi/ufs/ufs-qcom.c
index 6e5b1830138e..de9cfb05598a 100644
--- a/drivers/scsi/ufs/ufs-qcom.c
+++ b/drivers/scsi/ufs/ufs-qcom.c
@@ -709,7 +709,8 @@ static void ufs_qcom_advertise_quirks(struct ufs_hba *hba)
709 709
710 if (host->hw_ver.major == 0x01) { 710 if (host->hw_ver.major == 0x01) {
711 hba->quirks |= UFSHCD_QUIRK_DELAY_BEFORE_DME_CMDS 711 hba->quirks |= UFSHCD_QUIRK_DELAY_BEFORE_DME_CMDS
712 | UFSHCD_QUIRK_BROKEN_PA_RXHSUNTERMCAP; 712 | UFSHCD_QUIRK_BROKEN_PA_RXHSUNTERMCAP
713 | UFSHCD_QUIRK_DME_PEER_ACCESS_AUTO_MODE;
713 714
714 if (host->hw_ver.minor == 0x0001 && host->hw_ver.step == 0x0001) 715 if (host->hw_ver.minor == 0x0001 && host->hw_ver.step == 0x0001)
715 hba->quirks |= UFSHCD_QUIRK_BROKEN_INTR_AGGR; 716 hba->quirks |= UFSHCD_QUIRK_BROKEN_INTR_AGGR;
@@ -721,6 +722,7 @@ static void ufs_qcom_advertise_quirks(struct ufs_hba *hba)
721 if (!ufs_qcom_cap_qunipro(host)) 722 if (!ufs_qcom_cap_qunipro(host))
722 /* Legacy UniPro mode still need following quirks */ 723 /* Legacy UniPro mode still need following quirks */
723 hba->quirks |= (UFSHCD_QUIRK_DELAY_BEFORE_DME_CMDS 724 hba->quirks |= (UFSHCD_QUIRK_DELAY_BEFORE_DME_CMDS
725 | UFSHCD_QUIRK_DME_PEER_ACCESS_AUTO_MODE
724 | UFSHCD_QUIRK_BROKEN_PA_RXHSUNTERMCAP); 726 | UFSHCD_QUIRK_BROKEN_PA_RXHSUNTERMCAP);
725 } 727 }
726} 728}