Commit 88704a0c authored by Tushar Nimkar's avatar Tushar Nimkar Committed by Bjorn Andersson

soc: qcom: rpmh-rsc: Support RSC v3 minor versions

RSC v3 register offsets are same for all minor versions of v3. Fix a
minor version check to pick correct offsets for all v3 minor versions.

Fixes: 40482e4f ("soc: qcom: rpmh-rsc: Add support for RSC v3 register offsets")
Signed-off-by: default avatarTushar Nimkar <quic_tnimkar@quicinc.com>
Signed-off-by: default avatarBjorn Andersson <andersson@kernel.org>
Link: https://lore.kernel.org/r/20230406115732.9293-1-quic_tnimkar@quicinc.com
parent 5808c532
...@@ -1073,7 +1073,7 @@ static int rpmh_rsc_probe(struct platform_device *pdev) ...@@ -1073,7 +1073,7 @@ static int rpmh_rsc_probe(struct platform_device *pdev)
drv->ver.minor = rsc_id & (MINOR_VER_MASK << MINOR_VER_SHIFT); drv->ver.minor = rsc_id & (MINOR_VER_MASK << MINOR_VER_SHIFT);
drv->ver.minor >>= MINOR_VER_SHIFT; drv->ver.minor >>= MINOR_VER_SHIFT;
if (drv->ver.major == 3 && drv->ver.minor == 0) if (drv->ver.major == 3 && drv->ver.minor >= 0)
drv->regs = rpmh_rsc_reg_offset_ver_3_0; drv->regs = rpmh_rsc_reg_offset_ver_3_0;
else else
drv->regs = rpmh_rsc_reg_offset_ver_2_7; drv->regs = rpmh_rsc_reg_offset_ver_2_7;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment