]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
scsi: ufs: ufs-qcom: Fix the Qcom register name for offset 0xD0
authorManivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Thu, 22 Dec 2022 14:09:55 +0000 (19:39 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 16 Jun 2024 11:32:03 +0000 (13:32 +0200)
[ Upstream commit 7959587f3284bf163e4f1baff3c6fa71fc6a55b1 ]

On newer UFS revisions, the register at offset 0xD0 is called,
REG_UFS_PARAM0. Since the existing register, RETRY_TIMER_REG is not used
anywhere, it is safe to use the new name.

Reviewed-by: Andrew Halaney <ahalaney@redhat.com>
Reviewed-by: Asutosh Das <quic_asutoshd@quicinc.com>
Tested-by: Andrew Halaney <ahalaney@redhat.com> # Qdrive3/sa8540p-ride
Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Stable-dep-of: 823150ecf04f ("scsi: ufs: qcom: Perform read back after writing unipro mode")
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/scsi/ufs/ufs-qcom.h

index 478134ba80864480df26a0ed54cb1f3391225bc7..70bee1d1f1139e203343b36068d3b66f07816677 100644 (file)
@@ -46,7 +46,8 @@ enum {
        REG_UFS_TX_SYMBOL_CLK_NS_US         = 0xC4,
        REG_UFS_LOCAL_PORT_ID_REG           = 0xC8,
        REG_UFS_PA_ERR_CODE                 = 0xCC,
-       REG_UFS_RETRY_TIMER_REG             = 0xD0,
+       /* On older UFS revisions, this register is called "RETRY_TIMER_REG" */
+       REG_UFS_PARAM0                      = 0xD0,
        REG_UFS_PA_LINK_STARTUP_TIMER       = 0xD8,
        REG_UFS_CFG1                        = 0xDC,
        REG_UFS_CFG2                        = 0xE0,