]> git.itanic.dy.fi Git - linux-stable/commitdiff
scsi: ufs: ufs-qcom: remove broken hci version quirk
authorSubhash Jadavani <subhashj@codeaurora.org>
Tue, 21 Apr 2020 12:40:04 +0000 (13:40 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 24 Apr 2020 05:59:09 +0000 (07:59 +0200)
[ Upstream commit 69a6fff068567469c0ef1156ae5ac8d3d71701f0 ]

UFSHCD_QUIRK_BROKEN_UFS_HCI_VERSION is only applicable for QCOM UFS host
controller version 2.x.y and this has been fixed from version 3.x.y
onwards, hence this change removes this quirk for version 3.x.y onwards.

[mkp: applied by hand]

Signed-off-by: Subhash Jadavani <subhashj@codeaurora.org>
Signed-off-by: Asutosh Das <asutoshd@codeaurora.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/scsi/ufs/ufs-qcom.c

index 51d559214db608ba84cc56f78212da768455e21e..1fe193590b8bdc6dad35b57bead00f3ab04c9b20 100644 (file)
@@ -1094,7 +1094,7 @@ static void ufs_qcom_advertise_quirks(struct ufs_hba *hba)
                hba->quirks |= UFSHCD_QUIRK_BROKEN_LCC;
        }
 
-       if (host->hw_ver.major >= 0x2) {
+       if (host->hw_ver.major == 0x2) {
                hba->quirks |= UFSHCD_QUIRK_BROKEN_UFS_HCI_VERSION;
 
                if (!ufs_qcom_cap_qunipro(host))