]> www.infradead.org Git - nvme.git/commit
Bluetooth: hci_qca: schedule a devm action for disabling the clock
authorBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Tue, 9 Jul 2024 12:18:33 +0000 (14:18 +0200)
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Mon, 15 Jul 2024 14:12:10 +0000 (10:12 -0400)
commitb80f4e3b8cb8a4a41cc038807cd0a1e889154902
treeac31dabd2752553adcaa4a2eb344f0b1d6125d21
parentbd3f305886adc07c27b8e998719c73688dad0991
Bluetooth: hci_qca: schedule a devm action for disabling the clock

In preparation for unduplicating the hci_uart registration code,
schedule a devres action for disabling the SUSCLK rather than doing it
manually.

We cannot really use devm_clk_get_enabled() as we also set the rate
before enabling the clock. While this should in theory work, I don't
want to risk breaking existing users. One solution for the future is to
add devm_clk_get_enabled_with_rate() to the clock framework.

Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
drivers/bluetooth/hci_qca.c