diff options
author | Csókás Bence <[email protected]> | 2022-09-01 16:04:03 +0200 |
---|---|---|
committer | Jakub Kicinski <[email protected]> | 2022-09-02 21:15:39 -0700 |
commit | b353b241f1eb9b6265358ffbe2632fdcb563354f (patch) | |
tree | a0ebbdf9ae3e51d02b245563716095eca5b8c466 /tools/perf/scripts/python/compaction-times.py | |
parent | 7d650df99d528f674cc744719a00a20be1f912f8 (diff) |
net: fec: Use a spinlock to guard `fep->ptp_clk_on`
Mutexes cannot be taken in a non-preemptible context,
causing a panic in `fec_ptp_save_state()`. Replacing
`ptp_clk_mutex` by `tmreg_lock` fixes this.
Fixes: 6a4d7234ae9a ("net: fec: ptp: avoid register access when ipg clock is disabled")
Fixes: f79959220fa5 ("fec: Restart PPS after link state change")
Reported-by: Marc Kleine-Budde <[email protected]>
Link: https://lore.kernel.org/all/[email protected]/
Signed-off-by: Csókás Bence <[email protected]>
Tested-by: Francesco Dolcini <[email protected]> # Toradex Apalis iMX6
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/compaction-times.py')
0 files changed, 0 insertions, 0 deletions