Bluetooth: hci_qca: fix QCA6390 support on non-DT platforms
authorBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Wed, 31 Jul 2024 15:20:49 +0000 (17:20 +0200)
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Wed, 7 Aug 2024 20:35:37 +0000 (16:35 -0400)
commitf3660957303b822e5dd6e10fe9e1e19afc6d33de
tree66bceb150f9eef54b912b1891f5b2575513b2fb7
parent541b80216cd1d511841c3c8d9559a7b13f4f79f2
Bluetooth: hci_qca: fix QCA6390 support on non-DT platforms

QCA6390 can albo be used on non-DT systems so we must not make the power
sequencing the only option. Check if the serdev device consumes an OF
node. If so: honor the new contract as per the DT bindings. If not: fall
back to the previous behavior by falling through to the existing
default label.

Fixes: 9a15ce685706 ("Bluetooth: qca: use the power sequencer for QCA6390")
Reported-by: Wren Turkal <wt@penguintechs.org>
Closes: https://lore.kernel.org/linux-bluetooth/27e6a6c5-fb63-4219-be0b-eefa2c116e06@penguintechs.org/
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
Reviewed-by: Paul Menzel <pmenzel@molgen.mpg.de>
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
drivers/bluetooth/hci_qca.c