soc: qcom: llcc: Update the logic for version info extraction
authorSai Prakash Ranjan <quic_saipraka@quicinc.com>
Fri, 28 Jan 2022 07:47:09 +0000 (13:17 +0530)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Fri, 11 Feb 2022 00:29:33 +0000 (18:29 -0600)
commit8008e7902f28eb9e5459b21d375b3e5b4090efff
tree93e98a497fc9c4b7c0b19a66e2654ba37aeafe00
parent06b24ab364403094884b71234b44e17f746e5090
soc: qcom: llcc: Update the logic for version info extraction

LLCC HW version info is made up of major, branch, minor and echo
version bits each of which are 8bits. Several features in newer
LLCC HW are based on the full version rather than just major or
minor versions such as write-subcache enable which is applicable
for versions v2.0.0.0 and later, also upcoming write-subcache
cacheable for SM8450 SoC which is only present in versions v2.1.0.0
and later, so it makes it easier and cleaner to just directly
compare with the full version than adding additional major/branch/
minor/echo version checks. So remove the earlier major version check
and add full version check for those features.

Signed-off-by: Sai Prakash Ranjan <quic_saipraka@quicinc.com>
Tested-by: Vinod Koul <vkoul@kernel.org>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Link: https://lore.kernel.org/r/a82d7c32348c51fcc2b63e220d91b318bf706c83.1643355594.git.quic_saipraka@quicinc.com
drivers/soc/qcom/llcc-qcom.c
include/linux/soc/qcom/llcc-qcom.h