Skip to content

Commit 84684c5

Browse files
maulik-k-shahandersson
authored andcommitted
soc: qcom: rpmh-rsc: Add RSC version 4 support
Register offsets for v3 and v4 versions are backward compatible. Assign v3 offsets for v4 and all higher versions to avoid end up using v2 offsets. Signed-off-by: Maulik Shah <[email protected]> Reviewed-by: Konrad Dybcio <[email protected]> Reviewed-by: Neil Armstrong <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Bjorn Andersson <[email protected]>
1 parent 9f35ab0 commit 84684c5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/soc/qcom/rpmh-rsc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1072,7 +1072,7 @@ static int rpmh_rsc_probe(struct platform_device *pdev)
10721072
drv->ver.minor = rsc_id & (MINOR_VER_MASK << MINOR_VER_SHIFT);
10731073
drv->ver.minor >>= MINOR_VER_SHIFT;
10741074

1075-
if (drv->ver.major == 3)
1075+
if (drv->ver.major >= 3)
10761076
drv->regs = rpmh_rsc_reg_offset_ver_3_0;
10771077
else
10781078
drv->regs = rpmh_rsc_reg_offset_ver_2_7;

0 commit comments

Comments
 (0)