Received: by 2002:ab2:620c:0:b0:1ef:ffd0:ce49 with SMTP id o12csp1357004lqt; Wed, 20 Mar 2024 00:59:18 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVcXPDk0Z8o/VP5CsRFgU01ZdonN0ZNepUCI5yn2YWdzs0Zxbh2x9MkrUhDviRCYA9I4Fy7ceeq1dsVeJecPpkKul7NYmVtfeKIRy620Q== X-Google-Smtp-Source: AGHT+IGvGZ1SbXhcpfV/PUXGUjIlO63JdirqJ76mn9b3QFGOdaSixJPfMQJnBigs3Khyf9iRyd6w X-Received: by 2002:a05:620a:55ae:b0:788:63e9:99ed with SMTP id vr14-20020a05620a55ae00b0078863e999edmr18309259qkn.39.1710921558656; Wed, 20 Mar 2024 00:59:18 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710921558; cv=pass; d=google.com; s=arc-20160816; b=uSP0LZ4PIbubf7rdhosH+qKPQ/CjPTx2EMPquMZW+hrVh0Vbd/tQ7qvd6va+p2p/Sh lc+MRiYbQ3uBuaNImhaxkXk4BhoB8Bij39fSN/4w4bFpg33KlggjwqqGikobqRmscm3m jjQQYIGr/RekThaxJEMf7fWHLn2Km696iwZWekfkOfu3AKBHgv83LJhAeLpG8DQQtZD2 Ky8XvKxrF1EWBgOpOgpVfDiVKO5/JzZZkjU3QV5VAjnde68D/AadDE4rU0/fimkKE17T WXfK4y7ckV+w10+AlEX3/JWEyWVZZxHWzOz2mw10bXDKOrkwZU/9l5xhsS8j6fqXmr2K 6b3Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=ebaLRVvU8Sp+yQUGa6mE7rY/QNrur5DTJAHB0eGayUk=; fh=B3JIzf5YvuGIGItg4iE6wIPOqvZdXlTDamKhddhZPcU=; b=EbNZ5NZ5R0LW15JY0zwTh2hqrES+wpdsowpHS/gVibczWs1nkHEJoxTMdIJ38fKhuk LZAXb3sZtazVcutS9LzLIcr6cyh3ReKisdbdgAcMh0BE9UXnDOex6MvBxdeJ+QFZ3QxA L3Qn19JyDkF6mKG/I+X7nvPfcAQt0yOK08jlcq4cbHMTX4/oehGPBEbiY1pEqlgCWcWu pqRnDzrirAdN9xWSRC5O4PzfYAU1MISqC+7AM2S+fEQk42iKjv8dZvOQEupmEypCRUKy pGNFza8Cqhbpzz2bA9egtpefwKrBNnQAjthpL1qnPa6nym9Jah5YXuSD3imGznEr6tYG qXjA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=hRYtmJoT; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-bluetooth+bounces-2651-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-2651-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id s11-20020a05620a080b00b0078a176d6a36si2373751qks.83.2024.03.20.00.59.18 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Mar 2024 00:59:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth+bounces-2651-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=hRYtmJoT; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-bluetooth+bounces-2651-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-2651-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 157341C2247F for ; Wed, 20 Mar 2024 07:59:18 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 629833A1C9; Wed, 20 Mar 2024 07:58:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="hRYtmJoT" X-Original-To: linux-bluetooth@vger.kernel.org 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 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 Content-Transfer-Encoding: 8bit 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 --- 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; }; }; -- 2.43.2