coresight: tmc: make sysFS and Perf mode mutually exclusive
authorMathieu Poirier <mathieu.poirier@linaro.org>
Tue, 3 May 2016 17:33:56 +0000 (11:33 -0600)
committerMathieu Poirier <mathieu.poirier@linaro.org>
Wed, 1 Jun 2016 21:46:39 +0000 (15:46 -0600)
commit6b21a3edf2e21fb3267efe6d1a67e68f8e73b14e
treedd9b0f817bfb684c6b3996a98fd30626cafa9581
parent29b1d2628eb749a6fe9675f2165b2a53721fde55
coresight: tmc: make sysFS and Perf mode mutually exclusive

The sysFS and Perf access methods can't be allowed to interfere
with one another.  As such introducing guards to access
functions that prevents moving forward if a TMC is already
being used.

Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
Reviewed-by: Suzuki K Poulose <suzuki.poulose@arm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
(cherry picked from commit b217601e9adce4d2dccc95a9e6814bdbf5a4a815)
drivers/hwtracing/coresight/coresight-tmc-etf.c
drivers/hwtracing/coresight/coresight-tmc-etr.c