We zero out the entire trace buffer used for ETR before it is enabled,
for helping with debugging. With the addition of scatter-gather mode,
the buffer could be bigger and non-contiguous.
Get rid of this step; if someone wants to debug, they can always add it
as and when needed.
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>
 {
        u32 axictl, sts;
 
-       /* Zero out the memory to help with debug */
-       memset(drvdata->vaddr, 0, drvdata->size);
-
        CS_UNLOCK(drvdata->base);
 
        /* Wait for TMCSReady bit to be set */
        if (drvdata->mode == CS_MODE_SYSFS) {
                /*
                 * The trace run will continue with the same allocated trace
-                * buffer. The trace buffer is cleared in tmc_etr_enable_hw(),
-                * so we don't have to explicitly clear it. Also, since the
-                * tracer is still enabled drvdata::buf can't be NULL.
+                * buffer. Since the tracer is still enabled drvdata::buf can't
+                * be NULL.
                 */
                tmc_etr_enable_hw(drvdata);
        } else {