]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
Bluetooth: hci_qca: Set BDA quirk bit if fwnode exists in DT
authorJanaki Ramaiah Thota <quic_janathot@quicinc.com>
Wed, 24 Jan 2024 14:30:42 +0000 (20:00 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 6 Mar 2024 14:48:36 +0000 (14:48 +0000)
commitc50ce483c28ae06f3ddbf8110f9affe1a6ae1d0f
treeb6bc4d29212e8aa94bdf0a5126ad03d7e140d9b2
parentfb3e827badce092b58f3fc97339c4ff804d0e6c7
Bluetooth: hci_qca: Set BDA quirk bit if fwnode exists in DT

[ Upstream commit 7dcd3e014aa7faeeaf4047190b22d8a19a0db696 ]

BT adapter going into UNCONFIGURED state during BT turn ON when
devicetree has no local-bd-address node.

Bluetooth will not work out of the box on such devices, to avoid this
problem, added check to set HCI_QUIRK_USE_BDADDR_PROPERTY based on
local-bd-address node entry.

When this quirk is not set, the public Bluetooth address read by host
from controller though HCI Read BD Address command is
considered as valid.

Fixes: e668eb1e1578 ("Bluetooth: hci_core: Don't stop BT if the BD address missing in dts")
Signed-off-by: Janaki Ramaiah Thota <quic_janathot@quicinc.com>
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/bluetooth/hci_qca.c