Bluetooth: hci_qca: use the power sequencer for wcn7850 and wcn6855
authorBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Tue, 9 Jul 2024 12:18:36 +0000 (14:18 +0200)
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Mon, 15 Jul 2024 14:12:17 +0000 (10:12 -0400)
commit921ad2879aa7733620585e4904ba673c6c916dab
treed55d6411a220e1ac829d4a188dbd8847bb28dc8d
parenteba1718717b097d825f26a33ae7d8a5b9d478396
Bluetooth: hci_qca: use the power sequencer for wcn7850 and wcn6855

In preparation for using the power sequencing subsystem on sm8650 boards
and X13s laptop let's make pwrseq the default for wcn7850 and wcn6855.

Both these models require an enable GPIO so we can safely assume that if
the property is not there, then we should try to get the power
sequencer. Due to how the pwrseq lookup works - checking the provider at
run-time - we cannot really do it the other way around as we'd get stuck
forever on -EPROBE_DEFER.

If the relevant OF node does have the 'enable-gpios' property, we
fallback to the existing code for backward compatibility with older DTs.

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