Received: by 2002:ab2:620c:0:b0:1ef:ffd0:ce49 with SMTP id o12csp1356948lqt; Wed, 20 Mar 2024 00:59:09 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV8NUjfbKQ+1PXTCEWejuyZoiU0GVitPWr0vzy6lorzMh/KIVZeyz59GKMo/zlEJPFaB364RjibhNeGzodtysjhJJ0kqGgeLy+kydM43A== X-Google-Smtp-Source: AGHT+IHAv2eiKj9ZP6U4LfnFsTwet6QyBDGJptJ4T9P/JnEo+4P2x64o/1GImmIAtdzlvXTYYCl6 X-Received: by 2002:a17:90a:ead5:b0:29b:f981:1363 with SMTP id ev21-20020a17090aead500b0029bf9811363mr15652226pjb.5.1710921549238; Wed, 20 Mar 2024 00:59:09 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710921549; cv=pass; d=google.com; s=arc-20160816; b=hB5kOiWBC23w0PSvz5I2lHMEou8qmHgourz7v9CRdcHvWgdjt7rOHfJaGqtPoPSY/3 OdwvYINmyEr5zxkRYH588Efcz0xNXlEckX0/LmKzUOcH4DvXBUy6bJHm5TRCB6KCR5C4 uY2ydJHYBE1GfwEnOYKJZ49ys+EGR3cU82en9IzuHTfmM+EEgrx1Yg7E/MvXhnyNLpnh zWP67Cu4F3xajZEdFN1asrdT8KkDZNOU/nHi7CeAM8aIVeYVUCnnZDmW4SUBemimTcPF CWZPosLj037f2LlwE06mznMaQXrZ/jJsEzKogHrXXnmYuiuLWwVJZWCg8WvnFPxiVH+1 SyNw== 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=yRW2FGUCYfq0vo4MRJ8MtfiJ+LXQbNbBJwQBTW9a5zs=; fh=KhnvXj9wNACRHsGM1CvOrN/pRB1vU8aTK81JzIVJuyE=; b=Sx7YBzSPq+35NmQorytFqkrqrxAYjw1A2GuVNoqUjccJO+hpxNdhQQcLrGeLh5Ngwd Tn+0nYSfvB4J7e+LyTnf0xlFXEntkngKP7w40WxEHXv2KyShnUJEICAYA+Pr/nfTawzI yiw4hudqTzdcgBnUL1NVm51Oqp+1f3EvWpYachV1Mhy8A4H9g74E0cy4mLTEPMoM4woN wLVloSdLZS6wbMwUAX15OFNEDL56Pxm8AqDcNHRLnQdKy4F3RXMSzwg0hVRCqN/n6k2x yez0uY221HiDn4FAVAyJ3PyhL1Q9xLt4ShOD1omCUDhkJ/xEJJody+MQSdnHjeNAsvM/ N2SQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=qweS+dAd; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-bluetooth+bounces-2650-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-2650-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id v11-20020a17090a0c8b00b0029fe846f872si909493pja.90.2024.03.20.00.59.09 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Mar 2024 00:59:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth+bounces-2650-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=qweS+dAd; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-bluetooth+bounces-2650-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-2650-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id C917E283CB4 for ; Wed, 20 Mar 2024 07:59:08 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5E51F3A1BF; 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="qweS+dAd" 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 7D8952BD01; 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=YiUaEl3bTfh3HdK7cYJLifATQ95tSXP5mbGsn2e96RLKQePWbwkC5FCeAGXoO9jBNMAwDhtjR1i8V97pg0rXG1r7/6Z1vZ+4c7SdWcXZEvjcSWVAXVxhWe5kZU3Dj92j4Uf6N/1ggE/hwMXGeOX/pYheE2MKTeefyw8onF+zunE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710921499; c=relaxed/simple; bh=Vmdh+vWcv9Qh7j4Gv87DPTe0KSHtausnDIvXv9rreDg=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=ZNPHFemXfdAizBsUKRgcUDOvt/fa7nWjOwjZTKKX1EEZEkMK/Nzn2X1QyISb7P0jHbLbw9h00g/oyuUArpohYhSLMsG/bEtzCIRRlKisLF4ypHFjTN/xq7AdfoWMoYijM0vGSc1lpCGvfqI1hHgp28N06e3SFErR6tlnUgN7hp4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=qweS+dAd; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1B31FC433B2; 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=Vmdh+vWcv9Qh7j4Gv87DPTe0KSHtausnDIvXv9rreDg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=qweS+dAdyHfejLbT6tXXJbz5wveNirqZQNYgMtRMEsBJdFzJy91qJN9ZN0IA3L+dt aooGZgm/1ZWXVPE/YA6+6wY2H/Qa73rcj/ZGXiD2uzBIcyYxTBilDXUMugQ1wojMLz iiEK01ChERPXt9EphpqqFfDREeMLMbodoTioIuQadHKErR0Pt0weGQ/ugQ7rEeNY8m iiK1j1/o38TXyJiuVNfRRNLwWc0//zxn2jCWiafYcNxuhqqKj9qCAw4xXg7Zsottqm zg/Kt+0wiNPs6XU0PinoCQeNvACWwc5a5CJ73RRR4wwvk8Eiz27Sc8SQa9UFcy1Aq3 9YfZyz4Kh+Erw== Received: from johan by xi.lan with local (Exim 4.97.1) (envelope-from ) id 1rmqq9-0000000029M-1Pp1; 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 Subject: [PATCH v4 1/4] dt-bindings: bluetooth: add 'qcom,local-bd-address-broken' Date: Wed, 20 Mar 2024 08:55:51 +0100 Message-ID: <20240320075554.8178-2-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 only device out there that should be affected by this is the WCN3991 used in some Chromebooks. Add a 'qcom,local-bd-address-broken' property which can be set on these platforms to indicate that the boot firmware is using the wrong byte order. Note that ChromeOS always updates the kernel and devicetree in lockstep so that there is no need to handle backwards compatibility with older devicetrees. Reviewed-by: Douglas Anderson Signed-off-by: Johan Hovold --- .../devicetree/bindings/net/bluetooth/qualcomm-bluetooth.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Documentation/devicetree/bindings/net/bluetooth/qualcomm-bluetooth.yaml b/Documentation/devicetree/bindings/net/bluetooth/qualcomm-bluetooth.yaml index eba2f3026ab0..fdaea08e7442 100644 --- a/Documentation/devicetree/bindings/net/bluetooth/qualcomm-bluetooth.yaml +++ b/Documentation/devicetree/bindings/net/bluetooth/qualcomm-bluetooth.yaml @@ -94,6 +94,10 @@ properties: local-bd-address: true + qcom,local-bd-address-broken: + type: boolean + description: + boot firmware is incorrectly passing the address in big-endian order required: - compatible -- 2.43.2