File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed
drivers/hwtracing/coresight Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -94,6 +94,7 @@ static int cti_enable_hw(struct cti_drvdata *drvdata)
94
94
unsigned long flags ;
95
95
int rc = 0 ;
96
96
97
+ pm_runtime_get_sync (dev -> parent );
97
98
spin_lock_irqsave (& drvdata -> spinlock , flags );
98
99
99
100
/* no need to do anything if enabled or unpowered*/
@@ -118,6 +119,7 @@ static int cti_enable_hw(struct cti_drvdata *drvdata)
118
119
/* cannot enable due to error */
119
120
cti_err_not_enabled :
120
121
spin_unlock_irqrestore (& drvdata -> spinlock , flags );
122
+ pm_runtime_put (dev -> parent );
121
123
return rc ;
122
124
}
123
125
@@ -173,6 +175,7 @@ static int cti_disable_hw(struct cti_drvdata *drvdata)
173
175
coresight_disclaim_device_unlocked (csdev );
174
176
CS_LOCK (drvdata -> base );
175
177
spin_unlock (& drvdata -> spinlock );
178
+ pm_runtime_put (dev -> parent );
176
179
return 0 ;
177
180
178
181
/* not disabled this call */
You can’t perform that action at this time.
0 commit comments