|
@@ -13,9 +13,6 @@ static void tmc_etr_enable_hw(struct tmc_drvdata *drvdata)
|
|
{
|
|
{
|
|
u32 axictl, sts;
|
|
u32 axictl, sts;
|
|
|
|
|
|
- /* Zero out the memory to help with debug */
|
|
|
|
- memset(drvdata->vaddr, 0, drvdata->size);
|
|
|
|
-
|
|
|
|
CS_UNLOCK(drvdata->base);
|
|
CS_UNLOCK(drvdata->base);
|
|
|
|
|
|
/* Wait for TMCSReady bit to be set */
|
|
/* Wait for TMCSReady bit to be set */
|
|
@@ -340,9 +337,8 @@ int tmc_read_unprepare_etr(struct tmc_drvdata *drvdata)
|
|
if (drvdata->mode == CS_MODE_SYSFS) {
|
|
if (drvdata->mode == CS_MODE_SYSFS) {
|
|
/*
|
|
/*
|
|
* The trace run will continue with the same allocated trace
|
|
* 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);
|
|
tmc_etr_enable_hw(drvdata);
|
|
} else {
|
|
} else {
|