diff options
| author | Emmanuel Vadot <manu@FreeBSD.org> | 2026-10-20 11:35:59 +0000 |
|---|---|---|
| committer | Emmanuel Vadot <manu@FreeBSD.org> | 2026-10-20 11:47:20 +0000 |
| commit | 6aa2c651df0b0d9e0f8693dbab09d11ecea8e1f8 (patch) | |
| tree | a32cb84150fadfcd614d1b34139bca7632fcde8a /contrib/opencsd/decoder/include/i_dec/(public-mirror) | |
| parent | d3bad289dfd536d8019e7bcbd7701b1d6dfb11c3 (diff) | |
The clock framework can sleep, it takes the clock topology sx lock. Calling
clk_set_freq() and clk_get_freq() from rk_spi_hw_setup() with the driver
mutex held triggers a witness warning about a sleepable lock acquired after
a non-sleepable one, on the first transfer that raises the clock.
Set the clock in a new function that is called before taking the lock, and
only keep the register setup under the lock.
Diffstat (limited to 'contrib/opencsd/decoder/include/i_dec/(public-mirror)')
0 files changed, 0 insertions, 0 deletions
