diff options
author | Tushar Nimkar <quic_tnimkar@quicinc.com> | 2023-04-06 13:57:32 +0200 |
---|---|---|
committer | Bjorn Andersson <andersson@kernel.org> | 2023-04-07 18:17:46 +0200 |
commit | 88704a0cd71909c3107561261412a5d5beb23358 (patch) | |
tree | 31966ca45d15493f0ec9da1510d94ba8f2bf65ea /drivers/soc/qcom/rpmh-rsc.c | |
parent | soc: qcom: smd-rpm: Use GFP_ATOMIC in write path (diff) | |
download | linux-88704a0cd71909c3107561261412a5d5beb23358.tar.xz linux-88704a0cd71909c3107561261412a5d5beb23358.zip |
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: 40482e4f7364 ("soc: qcom: rpmh-rsc: Add support for RSC v3 register offsets")
Signed-off-by: Tushar Nimkar <quic_tnimkar@quicinc.com>
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Link: https://lore.kernel.org/r/20230406115732.9293-1-quic_tnimkar@quicinc.com
Diffstat (limited to '')
-rw-r--r-- | drivers/soc/qcom/rpmh-rsc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/soc/qcom/rpmh-rsc.c b/drivers/soc/qcom/rpmh-rsc.c index 0f8b2249f889..f93544f6d796 100644 --- a/drivers/soc/qcom/rpmh-rsc.c +++ b/drivers/soc/qcom/rpmh-rsc.c @@ -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 >>= 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; else drv->regs = rpmh_rsc_reg_offset_ver_2_7; |