Skip to content

Commit

Permalink
coresight: Cleanup TMC status check
Browse files Browse the repository at this point in the history
Use the defined symbol rather than hardcoding the value to
check whether the TMC buffer is full.

Cc: Mathieu Poirier <[email protected]>
Signed-off-by: Suzuki K Poulose <[email protected]>
Signed-off-by: Mathieu Poirier <[email protected]>
  • Loading branch information
Suzuki K Poulose authored and mathieupoirier committed Jun 20, 2016
1 parent 7f54818 commit 73d2def
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/hwtracing/coresight/coresight-tmc-etr.c
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ static void tmc_etr_dump_hw(struct tmc_drvdata *drvdata)
val = readl_relaxed(drvdata->base + TMC_STS);

/* How much memory do we still have */
if (val & BIT(0))
if (val & TMC_STS_FULL)
drvdata->buf = drvdata->vaddr + rwp - drvdata->paddr;
else
drvdata->buf = drvdata->vaddr;
Expand Down

0 comments on commit 73d2def

Please sign in to comment.