coresight: etm4x: Fix accesses to TRCVMIDCTLR1
authorSuzuki K Poulose <suzuki.poulose@arm.com>
Fri, 27 Nov 2020 17:52:44 +0000 (10:52 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 27 Nov 2020 19:23:12 +0000 (20:23 +0100)
commit93dd64404cbe63b0afba371acd8db36e84b286c7
tree712f4f47ab2b51ff25ec35295e59a4037b6b6173
parent3ac1e0069b2c4fafce1317b389e7d1cfac69a039
coresight: etm4x: Fix accesses to TRCVMIDCTLR1

TRCVMIDCTRL1 is only implemented only if the TRCIDR4.NUMVMIDC > 4.
We must not touch the register otherwise.

Cc: stable@vger.kernel.org
Cc: Mathieu Poirier <mathieu.poirier@linaro.org>
Cc: Mike Leach <mike.leach@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/20201127175256.1092685-4-mathieu.poirier@linaro.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/hwtracing/coresight/coresight-etm4x-core.c