Commit d23bc38
coresight: tmc: fix failure to disable/enable ETF after reading
ETF may fail to re-enable after reading, and driver->reading will
not be set to false, this will cause failure to enable/disable to ETF.
This change set driver->reading to false even if re-enabling fail.
Fixes: 669c461 ("coresight: tmc: Don't enable TMC when it's not ready.")
Co-developed-by: Yuanfang Zhang <[email protected]>
Signed-off-by: Yuanfang Zhang <[email protected]>
Signed-off-by: Mao Jinlong <[email protected]>
[ Added a comment to explain why we ignore the error ]
Signed-off-by: Suzuki K Poulose <[email protected]>
Link: https://lore.kernel.org/r/[email protected]1 parent 5161890 commit d23bc38
1 file changed
+5
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
756 | 756 | | |
757 | 757 | | |
758 | 758 | | |
759 | | - | |
760 | 759 | | |
761 | 760 | | |
762 | 761 | | |
| |||
782 | 781 | | |
783 | 782 | | |
784 | 783 | | |
785 | | - | |
786 | | - | |
787 | | - | |
788 | | - | |
789 | | - | |
| 784 | + | |
| 785 | + | |
| 786 | + | |
| 787 | + | |
| 788 | + | |
790 | 789 | | |
791 | 790 | | |
792 | 791 | | |
| |||
0 commit comments