android_kernel_oneplus_msm8998/drivers/hwtracing
Mathieu Poirier 66c6e1177c coresight: tmc: waiting for TMCReady bit before programming
According to the TRM before programming the TMC in circular
buffer mode (and that for any configuration, ETB, ETR, ETF),
the TMCReady bit in the status register has to be set.

This patch adds a check to make sure the state machine is in
a state where it can be configured, and complains otherwise.

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 358f42184e97f9a216b927a5a744597b98e0eee1)
2016-06-01 15:46:30 -06:00
..
coresight coresight: tmc: waiting for TMCReady bit before programming 2016-06-01 15:46:30 -06:00
intel_th intel_th: Check for NULL instead of ERR_PTR 2015-10-16 23:25:48 -07:00
stm stm class: Support devices that override software assigned masters 2016-06-01 15:42:54 -06:00