From patchwork Wed Mar 20 07:55:52 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Johan Hovold X-Patchwork-Id: 781389 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7D8632BB19; Wed, 20 Mar 2024 07:58:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710921499; cv=none; b=J1tWVlR8KfIJZdNgytDKo38pPv+wpLFibIFcuI+WlVlCB5e2JRsubivwbDdnjPnK9fAhs7+n8fBf4Bdhryz+c8EHYpyVgoJBK2nfeQXj97/ccppYJr02rnOz+X6O6cv9xjmgeb+mZdI/IWpIjiZJrZBCtAL4Ah/BoW5vgh5qlwo= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710921499; c=relaxed/simple; bh=+dlcEg2uBrLolIuIaoI2lAxqlNTQCPQTLcUqxo2cAGg=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=jcfn2I1mcPuKbdJx9deT87WnEbARZPjoOJy0qxr+riOIYTEI1mpQuLdfLYa98PvX7+p9GZ+LLnszvZOUyAyi26caOJQaM7nM5QqIrspnk0L6OkWlovfuNiVYHZ0fJuXuCh02x8Sz+Pw8lPoUM+XJIz/5TGeNgDp+RSofc6Yr/yI= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=hRYtmJoT; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="hRYtmJoT" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 173DAC43394; Wed, 20 Mar 2024 07:58:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1710921499; bh=+dlcEg2uBrLolIuIaoI2lAxqlNTQCPQTLcUqxo2cAGg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=hRYtmJoTUo0d4GOg2jNXCJa60EBGAiVFeTa6y/xw9sTQ/Qa+uWkYiqDlF+mR1LrWH aLPvv/CM9w03SdmkYYUqBCHQ9Cqe6pB6S1asVKPxqukWYqHcViL0yq2xurZM1KXyqt 6wIIslSPHpwRcHQxaBbB+kk0hSL8JbyG0My0p/Si3Q9nowITUisWwvR/To9bKJlZZN kxRzZtlY+gzlIXl+xAsXajnImLf3JiMgRWVxvhUCSUOrFMfBG7s5/L1rq36OHiyn3h 1jIjdRfh4MYT97WHD+VXOMRZSQfOoO8vaTSnqAahrAJoFWpKyQRFf7QjgbW8EtKTdd N1hUyeqQlRt6Q== Received: from johan by xi.lan with local (Exim 4.97.1) (envelope-from ) id 1rmqq9-0000000029O-1k05; Wed, 20 Mar 2024 08:58:25 +0100 From: Johan Hovold To: Marcel Holtmann , Luiz Augusto von Dentz , Bjorn Andersson Cc: Rob Herring , Krzysztof Kozlowski , Conor Dooley , cros-qcom-dts-watchers@chromium.org, Konrad Dybcio , Johan Hedberg , Balakrishna Godavarthi , Matthias Kaehlcke , Douglas Anderson , Rocky Liao , Dmitry Baryshkov , linux-bluetooth@vger.kernel.org, netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, Johan Hovold , stable@vger.kernel.org, Rob Clark Subject: [PATCH v4 2/4] arm64: dts: qcom: sc7180-trogdor: mark bluetooth address as broken Date: Wed, 20 Mar 2024 08:55:52 +0100 Message-ID: <20240320075554.8178-3-johan+linaro@kernel.org> X-Mailer: git-send-email 2.43.2 In-Reply-To: <20240320075554.8178-1-johan+linaro@kernel.org> References: <20240320075554.8178-1-johan+linaro@kernel.org> Precedence: bulk X-Mailing-List: linux-bluetooth@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Several Qualcomm 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 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. The boot firmware in SC7180 Trogdor Chromebooks is known to be affected so mark the 'local-bd-address' property as broken to maintain backwards compatibility with older firmware when fixing the underlying driver bug. Note that ChromeOS always updates the kernel and devicetree in lockstep so that there is no need to handle backwards compatibility with older devicetrees. Fixes: 7ec3e67307f8 ("arm64: dts: qcom: sc7180-trogdor: add initial trogdor and lazor dt") Cc: stable@vger.kernel.org # 5.10 Cc: Rob Clark Reviewed-by: Douglas Anderson Signed-off-by: Johan Hovold Acked-by: Bjorn Andersson Reviewed-by: Bjorn Andersson --- arch/arm64/boot/dts/qcom/sc7180-trogdor.dtsi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sc7180-trogdor.dtsi b/arch/arm64/boot/dts/qcom/sc7180-trogdor.dtsi index 46aaeba28604..ebe37678102f 100644 --- a/arch/arm64/boot/dts/qcom/sc7180-trogdor.dtsi +++ b/arch/arm64/boot/dts/qcom/sc7180-trogdor.dtsi @@ -943,6 +943,8 @@ bluetooth: bluetooth { vddrf-supply = <&pp1300_l2c>; vddch0-supply = <&pp3300_l10c>; max-speed = <3200000>; + + qcom,local-bd-address-broken; }; };