]> git.baikalelectronics.ru Git - kernel.git/commit
coresight: tmc-etr: Check if non-secure access is enabled
authorSuzuki K Poulose <suzuki.poulose@arm.com>
Thu, 29 Aug 2019 20:28:31 +0000 (14:28 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 3 Sep 2019 20:01:16 +0000 (22:01 +0200)
commit06579911746dc2d9ae50571e658b05226ff3c18d
treeaadd5ab4df9c571608199ba1f74fc1d2030b3256
parentdd32bb16c0613a7c3e08717883a85fe2ba6cda7c
coresight: tmc-etr: Check if non-secure access is enabled

CoreSight TMC-ETR must have the non-secure invasive debug access
enabled for use by self-hosted tracing. Without it, there is no
point in enabling the ETR. So, let us check it in the TMC_AUTHSTATUS
register and fail the probe if it is disabled.

Cc: Mathieu Poirier <mathieu.poirier@linaro.org>
Signed-off-by: Suzuki K Poulose <suzuki.poulose@arm.com>
Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
Link: https://lore.kernel.org/r/20190829202842.580-7-mathieu.poirier@linaro.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/hwtracing/coresight/coresight-tmc.c
drivers/hwtracing/coresight/coresight-tmc.h