aboutsummaryrefslogtreecommitdiff
path: root/sys/modules/hid/(developers-only)
diff options
context:
space:
mode:
authorEmmanuel Vadot <manu@FreeBSD.org>2026-10-20 11:35:59 +0000
committerEmmanuel Vadot <manu@FreeBSD.org>2026-10-20 11:47:20 +0000
commit6aa2c651df0b0d9e0f8693dbab09d11ecea8e1f8 (patch)
treea32cb84150fadfcd614d1b34139bca7632fcde8a /sys/modules/hid/(developers-only)
parentd3bad289dfd536d8019e7bcbd7701b1d6dfb11c3 (diff)
rk_spi: Do not change the clock with the driver lock heldHEADmain
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 'sys/modules/hid/(developers-only)')
0 files changed, 0 insertions, 0 deletions