aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/task-analyzer.py
diff options
context:
space:
mode:
authorMartin Kaiser <[email protected]>2023-07-02 19:35:02 +0200
committerHerbert Xu <[email protected]>2023-07-20 22:16:23 +1200
commit039980de89dc9dd757418d6f296e4126cc3f86c3 (patch)
treeb51f4304102436bd96f5b1a86054299a847da1b5 /tools/perf/scripts/python/task-analyzer.py
parentbec61a294dbec1c5929aa6f138cddcab68a62311 (diff)
hwrng: nomadik - keep clock enabled while hwrng is registered
The nomadik driver uses devres to register itself with the hwrng core, the driver will be unregistered from hwrng when its device goes out of scope. This happens after the driver's remove function is called. However, nomadik's clock is disabled in the remove function. There's a short timeframe where nomadik is still registered with the hwrng core although its clock is disabled. I suppose the clock must be active to access the hardware and serve requests from the hwrng core. Switch to devm_clk_get_enabled and let devres disable the clock and unregister the hwrng. This avoids the race condition. Fixes: 3e75241be808 ("hwrng: drivers - Use device-managed registration API") Signed-off-by: Martin Kaiser <[email protected]> Signed-off-by: Herbert Xu <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/task-analyzer.py')
0 files changed, 0 insertions, 0 deletions