File tree Expand file tree Collapse file tree 1 file changed +6
-7
lines changed
drivers/hwtracing/coresight Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -583,15 +583,14 @@ int tmc_read_unprepare_etb(struct tmc_drvdata *drvdata)
583
583
584
584
spin_lock_irqsave (& drvdata -> spinlock , flags );
585
585
586
- /* There is no point in reading a TMC in HW FIFO mode */
587
- mode = readl_relaxed (drvdata -> base + TMC_MODE );
588
- if (mode != TMC_MODE_CIRCULAR_BUFFER ) {
589
- spin_unlock_irqrestore (& drvdata -> spinlock , flags );
590
- return - EINVAL ;
591
- }
592
-
593
586
/* Re-enable the TMC if need be */
594
587
if (drvdata -> mode == CS_MODE_SYSFS ) {
588
+ /* There is no point in reading a TMC in HW FIFO mode */
589
+ mode = readl_relaxed (drvdata -> base + TMC_MODE );
590
+ if (mode != TMC_MODE_CIRCULAR_BUFFER ) {
591
+ spin_unlock_irqrestore (& drvdata -> spinlock , flags );
592
+ return - EINVAL ;
593
+ }
595
594
/*
596
595
* The trace run will continue with the same allocated trace
597
596
* buffer. As such zero-out the buffer so that we don't end
You can’t perform that action at this time.
0 commit comments