]> git.baikalelectronics.ru Git - kernel.git/commit
coresight: Make new csdev_access offsets unsigned
authorJames Clark <james.clark@arm.com>
Tue, 30 Aug 2022 17:26:13 +0000 (18:26 +0100)
committerMathieu Poirier <mathieu.poirier@linaro.org>
Wed, 31 Aug 2022 16:56:36 +0000 (10:56 -0600)
commite279a2e12767509c635c6cb401a73205512be4ba
tree2d3fe2b4f9573852c01633b0666085bdae072ac5
parentf840f3c63764665c5540676ae3b9ee8c95c58c79
coresight: Make new csdev_access offsets unsigned

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: James Clark <james.clark@arm.com>
Reviewed-by: Mike Leach <mike.leach@linaro.org>
Link: https://lore.kernel.org/r/20220830172614.340962-6-james.clark@arm.com
Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
drivers/hwtracing/coresight/coresight-catu.h
drivers/hwtracing/coresight/coresight-core.c
drivers/hwtracing/coresight/coresight-priv.h
drivers/hwtracing/coresight/coresight-tmc.h
include/linux/coresight.h