]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
interconnect: qcom: sdm660: Correct NOC_QOS_PRIORITY shift and mask
authorShawn Guo <shawn.guo@linaro.org>
Mon, 13 Sep 2021 12:49:55 +0000 (15:49 +0300)
committerGeorgi Djakov <djakov@kernel.org>
Mon, 13 Sep 2021 12:49:55 +0000 (15:49 +0300)
commit5833c9b8766298e73c11766f9585d4ea4fa785ff
tree4970d2d93138969e626825171c67209fe013d95b
parenta06c2e5c048e5e07fac9daf3073bd0b6582913c7
interconnect: qcom: sdm660: Correct NOC_QOS_PRIORITY shift and mask

The NOC_QOS_PRIORITY shift and mask do not match what vendor kernel
defines [1].  Correct them per vendor kernel.  As the result of
NOC_QOS_PRIORITY_P0_SHIFT being 0, the definition can be dropped and
regmap_update_bits() call on P0 can be simplified a bit.

[1] https://source.codeaurora.org/quic/la/kernel/msm-4.4/tree/drivers/soc/qcom/msm_bus/msm_bus_noc_adhoc.c?h=LA.UM.8.2.r1-04800-sdm660.0#n37

Fixes: f80a1d414328 ("interconnect: qcom: Add SDM660 interconnect provider driver")
Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@somainline.org>
Link: https://lore.kernel.org/r/20210902054915.28689-1-shawn.guo@linaro.org
Signed-off-by: Georgi Djakov <djakov@kernel.org>
drivers/interconnect/qcom/sdm660.c