coresight: etm3x: set progbit to stop trace collection
authorMathieu Poirier <mathieu.poirier@linaro.org>
Thu, 18 Feb 2016 00:51:53 +0000 (17:51 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 20 Feb 2016 22:11:01 +0000 (14:11 -0800)
There is no need to use the event enable's "always false" event to
stop trace collection.  For that purpose setting the programming bit
(ETMCR:10) is enough.

Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/hwtracing/coresight/coresight-etm3x.c

index e16501b41ed851ec97760f39dd0a832b59ce65b6..447459969cb54363f7072de81c8abc7e3f835dd4 100644 (file)
@@ -398,9 +398,6 @@ static void etm_disable_hw(void *info)
        CS_UNLOCK(drvdata->base);
        etm_set_prog(drvdata);
 
-       /* Program trace enable to low by using always false event */
-       etm_writel(drvdata, ETM_HARD_WIRE_RES_A | ETM_EVENT_NOT_A, ETMTEEVR);
-
        /* Read back sequencer and counters for post trace analysis */
        config->seq_curr_state = (etm_readl(drvdata, ETMSQR) & ETM_SQR_MASK);