Commit 4db8a9d4 authored by James Clark's avatar James Clark Committed by huangfangrun
Browse files

coresight: Make new csdev_access offsets unsigned

mainline inclusion
from mainline-v6.1-rc1
commit 0a98181f
category: cleanup
bugzilla: https://gitee.com/openeuler/kernel/issues/I6XLGY
CVE: NA

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=0a98181f805058773961c5ab3172ecf1bf1ed0e1



----------------------------------------------------------------------

New csdev_access functions were added as part of the previous
refactor. In order to make them more consistent with the
existing ones, change any signed offset types to be unsigned.

Now that they are unsigned, stop using hi_off = -1 to signify
a single 32bit access. Instead just call the existing 32bit
accessors. This is also applied to other parts of the codebase,
and the coresight_{read,write}_reg_pair() functions can be
deleted.

Signed-off-by: default avatarJames Clark <james.clark@arm.com>
Reviewed-by: default avatarMike Leach <mike.leach@linaro.org>
Link: https://lore.kernel.org/r/20220830172614.340962-6-james.clark@arm.com


Signed-off-by: default avatarMathieu Poirier <mathieu.poirier@linaro.org>
Signed-off-by: default avatarhuangfangrun <huangfangrun1@h-partners.com>
parent 70df4d75
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment