Suzuki K. Poulose 297ab90f15 coresight: tmc: Cleanup operation mode handling
The mode of operation of the TMC tracked in drvdata->mode is defined
as a local_t type. This is always checked and modified under the
drvdata->spinlock and hence we don't need local_t for it and the
unnecessary synchronisation instructions that comes with it. This
change makes the code a bit more cleaner.

Also fixes the order in which we update the drvdata->mode to
CS_MODE_DISABLED. i.e, in tmc_disable_etX_sink we change the
mode to CS_MODE_DISABLED before invoking tmc_disable_etX_hw()
which in turn depends on the mode to decide whether to dump the
trace to a buffer.

Applies on mathieu's coresight/next tree [1]

https://git.linaro.org/kernel/coresight.git next

Reported-by: Venkatesh Vivekanandan <venkatesh.vivekanandan@broadcom.com>
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2016-11-29 20:05:32 +01:00
..
2016-11-11 23:23:02 +01:00
2016-11-13 10:22:07 -08:00
2016-11-16 16:32:57 +01:00
2016-10-06 17:13:54 -07:00
2016-11-14 16:39:47 +01:00
2016-10-21 21:40:29 +02:00
2016-11-13 10:02:22 -08:00
2016-10-07 21:23:40 -07:00
2016-10-07 08:35:35 -07:00
2016-11-05 10:52:29 -07:00
2016-11-14 16:39:47 +01:00
2016-11-11 16:38:26 -08:00
2016-10-06 17:03:49 -07:00
2016-10-14 13:13:44 -07:00
2016-11-13 10:07:08 -08:00
2016-10-14 11:07:42 -07:00
2016-11-13 10:13:33 -08:00
2016-11-09 16:54:31 +01:00
2016-11-10 13:12:59 +01:00
2016-11-01 09:04:04 -06:00
2016-10-19 08:39:47 -07:00
2016-10-24 19:52:24 -07:00