soc: qcom: llcc: Fix LLCC_TRP_ATTR2_CFGn offset
Subsystems (2)
PATCH 1/1 soc: qcom: llcc: Fix LLCC_TRP_ATTR2_CFGn offset
According to documentation, it has increments of 4, not 8.
Fixes c72ca343f911 ("soc: qcom: llcc: Add v4.1 HW version support")
Reported-by Umnathi Chalicheemala <[email protected]>
Signed-off-by Abel Vesa <[email protected]>
--- drivers/soc/qcom/llcc-qcom.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/soc/qcom/llcc-qcom.c +1 -1
@@ -47,7 +47,7 @@#define LLCC_TRP_STATUSn (n) (4 + n * SZ_4K)#define LLCC_TRP_ATTR0_CFGn (n) (0x21000 + SZ_8 * n)#define LLCC_TRP_ATTR1_CFGn (n) (0x21004 + SZ_8 * n) -#define LLCC_TRP_ATTR2_CFGn (n) (0x21100 + SZ_8 * n) +#define LLCC_TRP_ATTR2_CFGn (n) (0x21100 + SZ_4 * n)#define LLCC_TRP_SCID_DIS_CAP_ALLOC 0x21f00#define LLCC_TRP_PCB_ACT 0x21f04
Signature · 1 line
2.34.1
Quoted 5 lines · Abel Vesa
According to documentation, it has increments of 4, not 8.
Fixes c72ca343f911 ("soc: qcom: llcc: Add v4.1 HW version support")Reported-by Umnathi Chalicheemala <[email protected]>Signed-off-by Abel Vesa <[email protected]>
Thanks Abel.
Quoted 17 lines
--- drivers/soc/qcom/llcc-qcom.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/soc/qcom/llcc-qcom.c +1
-1@@ -47,7 +47,7 @@#define LLCC_TRP_STATUSn (n) (4 + n * SZ_4K)#define LLCC_TRP_ATTR0_CFGn (n) (0x21000 + SZ_8 * n)#define LLCC_TRP_ATTR1_CFGn (n) (0x21004 + SZ_8 * n) -#define LLCC_TRP_ATTR2_CFGn (n) (0x21100 + SZ_8 * n) +#define LLCC_TRP_ATTR2_CFGn (n) (0x21100 + SZ_4 * n)#define LLCC_TRP_SCID_DIS_CAP_ALLOC 0x21f00#define LLCC_TRP_PCB_ACT 0x21f04
Quoted 6 lines · Abel Vesa
According to documentation, it has increments of 4, not 8.
Fixes c72ca343f911 ("soc: qcom: llcc: Add v4.1 HW version support")Reported-by Umnathi Chalicheemala <[email protected]>Signed-off-by Abel Vesa <[email protected]>---
Reviewed-by Konrad Dybcio <[email protected]>
Konrad