]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/blob - queue-5.10/arm64-dts-qcom-sc7180-trogdor-mark-bluetooth-address.patch
5.10-stable patches
[thirdparty/kernel/stable-queue.git] / queue-5.10 / arm64-dts-qcom-sc7180-trogdor-mark-bluetooth-address.patch
1 From 348a148e469a5a660ca54441b1a5a30bc6642dcd Mon Sep 17 00:00:00 2001
2 From: Sasha Levin <sashal@kernel.org>
3 Date: Wed, 20 Mar 2024 08:55:52 +0100
4 Subject: arm64: dts: qcom: sc7180-trogdor: mark bluetooth address as broken
5
6 From: Johan Hovold <johan+linaro@kernel.org>
7
8 [ Upstream commit e12e28009e584c8f8363439f6a928ec86278a106 ]
9
10 Several Qualcomm Bluetooth controllers lack persistent storage for the
11 device address and instead one can be provided by the boot firmware
12 using the 'local-bd-address' devicetree property.
13
14 The Bluetooth bindings clearly states that the address should be
15 specified in little-endian order, but due to a long-standing bug in the
16 Qualcomm driver which reversed the address some boot firmware has been
17 providing the address in big-endian order instead.
18
19 The boot firmware in SC7180 Trogdor Chromebooks is known to be affected
20 so mark the 'local-bd-address' property as broken to maintain backwards
21 compatibility with older firmware when fixing the underlying driver bug.
22
23 Note that ChromeOS always updates the kernel and devicetree in lockstep
24 so that there is no need to handle backwards compatibility with older
25 devicetrees.
26
27 Fixes: 7ec3e67307f8 ("arm64: dts: qcom: sc7180-trogdor: add initial trogdor and lazor dt")
28 Cc: stable@vger.kernel.org # 5.10
29 Cc: Rob Clark <robdclark@chromium.org>
30 Reviewed-by: Douglas Anderson <dianders@chromium.org>
31 Signed-off-by: Johan Hovold <johan+linaro@kernel.org>
32 Acked-by: Bjorn Andersson <andersson@kernel.org>
33 Reviewed-by: Bjorn Andersson <andersson@kernel.org>
34 Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
35 Signed-off-by: Sasha Levin <sashal@kernel.org>
36 ---
37 arch/arm64/boot/dts/qcom/sc7180-trogdor.dtsi | 2 ++
38 1 file changed, 2 insertions(+)
39
40 diff --git a/arch/arm64/boot/dts/qcom/sc7180-trogdor.dtsi b/arch/arm64/boot/dts/qcom/sc7180-trogdor.dtsi
41 index 3f5883e8bf319..9ce8bfbf7ea21 100644
42 --- a/arch/arm64/boot/dts/qcom/sc7180-trogdor.dtsi
43 +++ b/arch/arm64/boot/dts/qcom/sc7180-trogdor.dtsi
44 @@ -810,6 +810,8 @@ ap_spi_fp: &spi10 {
45 vddrf-supply = <&pp1300_l2c>;
46 vddch0-supply = <&pp3300_l10c>;
47 max-speed = <3200000>;
48 +
49 + qcom,local-bd-address-broken;
50 };
51 };
52
53 --
54 2.43.0
55