linux-stable/include/net/bluetooth
Johan Hovold 3e773d04ae Bluetooth: add quirk for broken address properties
commit 39646f29b1 upstream.

Some Bluetooth controllers lack persistent storage for the device
address and instead one can be provided by the boot firmware using the
'local-bd-address' devicetree property.

The Bluetooth devicetree bindings clearly states that the address should
be specified in little-endian order, but due to a long-standing bug in
the Qualcomm driver which reversed the address some boot firmware has
been providing the address in big-endian order instead.

Add a new quirk that can be set on platforms with broken firmware and
use it to reverse the address when parsing the property so that the
underlying driver bug can be fixed.

Fixes: 5c0a1001c8 ("Bluetooth: hci_qca: Add helper to set device address")
Cc: stable@vger.kernel.org      # 5.1
Reviewed-by: Douglas Anderson <dianders@chromium.org>
Signed-off-by: Johan Hovold <johan+linaro@kernel.org>
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2024-04-10 16:28:24 +02:00
..
bluetooth.h
hci.h Bluetooth: add quirk for broken address properties 2024-04-10 16:28:24 +02:00
hci_core.h Bluetooth: hci_core: Fix missing instances using HCI_MAX_AD_LENGTH 2024-03-26 18:20:42 -04:00
hci_mon.h Bluetooth: hci_sock: Correctly bounds check and pad HCI_MON_NEW_INDEX name 2023-10-25 12:03:16 +02:00
hci_sock.h
hci_sync.h Bluetooth: hci_core: Cancel request on command timeout 2024-03-26 18:20:40 -04:00
iso.h
l2cap.h
mgmt.h Bluetooth: MGMT: Fix marking SCAN_RSP as not connectable 2023-07-19 16:22:02 +02:00
rfcomm.h
sco.h