Received: by 2002:a05:7412:2a91:b0:fc:a2b0:25d7 with SMTP id u17csp27850rdh; Tue, 13 Feb 2024 08:24:13 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUvu4CL6uzdgKfkJNJRtdGzIYSHydM5SzwXuaBX22Gwa8lW48yWE0KIXoXm1odXO6OkYHvd2vDvIgGLHiHGU6wFxCwgLnKAfmSgtZb3Qg== X-Google-Smtp-Source: AGHT+IGEw5NvaD8SKxUxEaXBiiaLiDgulYQHk+sq/yq9xTXabZ7CFB8J/feh1gtpGIRUJRwoDmj+ X-Received: by 2002:a05:6a20:e105:b0:19e:9873:aa54 with SMTP id kr5-20020a056a20e10500b0019e9873aa54mr34116pzb.58.1707841453389; Tue, 13 Feb 2024 08:24:13 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707841453; cv=pass; d=google.com; s=arc-20160816; b=Mct8jH8NyzqzOQ7mqnZAhuCC0XGPKhtprlz9KqVpn1UDPDROLBc9F3AcZ7BRLRXzrF bDqRzDPAceDLF0v0F9OMLHp50XDM3QqV3MqoyGItcP4j3NydDbKcsDOCSJd1eUi6JJ70 I0zgO4uy+tK86BIGLj5333h6cFYkOfo1+CUf18zGpbOzyUfVrbGpkH1LcYOLTXa/dapY 2dU4p4h8q7myCyxl31Ja14uYJo93cCLpk3pjABsEj27qmCp0PYIukbOcVAWPXuS6EQvY bfsdOeTmP5np30WAE9MB3B1T4k6EbCY6Y8Q0pSf2n43d04k6vJx8JUYQTLywAQiST8mp /t2g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=bjZZpCG55E0RoDT/ocKGRw7OjOhQcoi1OpntHRMd5kA=; fh=SlMF9BmErJ7ghRA51yYFiLoW+QK6dp8TV1qvQvY1I4A=; b=mxkBSOG73U1X12QSNPt7bNjiraUZCJJr+VS+u0SU3/4uiDUW9NVmkxrT49kfwiDFPa GtlamVL0UXeWY9sulM+OSbgmAZnKtENmJkoQ1y/2EbhG+a8/IqTQ8CPYONyaQTBAbUXo MpFUvGiB8lgcp4EIwLf/xpmotVVo16ySoLfvHfQMYZbIXNkCHkh4LT52wQBQoCA1NAYt 9YhVhy2zZ2PD6kTTJLOx6N6LXwi2X8q+ACYo/H68yO+4YoC2/7/eoVTV+o58TUNtjK6X WHwgm8RNUW2b65MKBpTHDTBfdaa+K3XNOVbaxu9kKE9/uP5FU+Fup2UClS4hdK5BqYUz xDRA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="KKCU/dDh"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-bluetooth+bounces-1824-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-1824-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org X-Forwarded-Encrypted: i=2; AJvYcCWp/uGp/pYo0RKizxYnEsS/y/l2M/jjuA501BOEWcYMqovJmcOHQ6FXlVh8ncK+dxr+VcPXubNhohnKRoTx1w7p7yu3YE49wrbn3jAe8A== Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id jd22-20020a170903261600b001d9773a1991si356465plb.509.2024.02.13.08.24.12 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 13 Feb 2024 08:24:13 -0800 (PST) Received-SPF: pass (google.com: domain of linux-bluetooth+bounces-1824-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="KKCU/dDh"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-bluetooth+bounces-1824-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-1824-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id B8F57B268D7 for ; Tue, 13 Feb 2024 16:03:10 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 87E265F575; Tue, 13 Feb 2024 16:03:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="KKCU/dDh" 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 DA04F5F48A; Tue, 13 Feb 2024 16:02:59 +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=1707840180; cv=none; b=XnoSBgjADhEwHOKrRQaDiDidNArNsME1+dKa5NgwxJLfXmT24LjeuKBh1pwLnSacExI1BsFDAytcGfZmYCexfbQOMpST45oQSx6SdRSJEAiYZw23Eaxn1uuhaZcgEPrHQFsH1PpCNGniHz9bxT8+Hg4XN1KEFycHpAvm0nfxh4Y= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707840180; c=relaxed/simple; bh=raewERgjnOaT1e4+EDmQFCjp+2Q+nD/RhhrjpVO2oiA=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=humhp7feYN5H0bUtlYb/4pggrEEJoRN66/Y2cSWkkzU5dpB2/DS5QG7Ka6Ahm/KvqoS4OrUqBlZxx6ix4gc1Sh+BRiZNILU+WBnA/f8kArRwGVCg8GuZyISSwIM1qNsw0IJnp9zR+NiTBKj+AFjQXNfpt7RIPUW9TfGKYQVkXGo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=KKCU/dDh; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 47E84C433F1; Tue, 13 Feb 2024 16:02:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1707840179; bh=raewERgjnOaT1e4+EDmQFCjp+2Q+nD/RhhrjpVO2oiA=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=KKCU/dDhcjf0FYDMeJlnF2d1lTWHBDod3yoygbRluKaVtF2rNY0FqBkPP3ihYEhxe MduQWcNBtMVSAEB2FPalhUAeV7tR0wd93T/iob7anoMyfGj/wHM0c5p56fXYxFl6K+ xzZYE7E2PDu+x1g6LE4IZY72wFLBp4HWBtJRiwrynhTZFbpxxhuuAW7/Li71TBQIzu fKFZm9dCMp2FuUmo65A/nZ2k3XnnmWG15H6S1ZQPUokMz92sHgDDLeLNTxWL243RTJ 7fdaSQbAjve1e8C5yYV7PWyQVAXyxvsVU8Itn4RADKLXkU/hyISFQ9Tn/oIheRh3OL 9kadbBY5NJ6Og== Received: from johan by xi.lan with local (Exim 4.97.1) (envelope-from ) id 1rZvFb-000000001ga-3I2Y; Tue, 13 Feb 2024 17:03:15 +0100 Date: Tue, 13 Feb 2024 17:03:15 +0100 From: Johan Hovold To: Matthias Kaehlcke Cc: Luiz Augusto von Dentz , Marcel Holtmann , Johan Hedberg , Bjorn Andersson , Konrad Dybcio , linux-bluetooth@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, stable@vger.kernel.org, Balakrishna Godavarthi , Johan Hovold , Doug Anderson , Stephen Boyd Subject: Re: [PATCH] Bluetooth: qca: fix device-address endianness Message-ID: References: <20231227180306.6319-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-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: On Tue, Feb 13, 2024 at 03:55:06PM +0000, Matthias Kaehlcke wrote: > On Tue, Feb 13, 2024 at 03:41:56PM +0100, Johan Hovold wrote: > > On Wed, Dec 27, 2023 at 07:03:06PM +0100, Johan Hovold wrote: > > > The WCN6855 firmware on the Lenovo ThinkPad X13s expects the Bluetooth > > > device address in MSB order when setting it using the > > > EDL_WRITE_BD_ADDR_OPCODE command. > > > Reverse the little-endian address before setting it to make sure that > > > the address can be configured using tools like btmgmt or using the > > > 'local-bd-address' devicetree property. > > > > > > Note that this can potentially break systems with boot firmware which > > > has started relying on the broken behaviour and is incorrectly passing > > > the address via devicetree in MSB order. > > > > > > Fixes: 5c0a1001c8be ("Bluetooth: hci_qca: Add helper to set device address") > > > Cc: stable@vger.kernel.org # 5.1 > > > Cc: Balakrishna Godavarthi > > > Cc: Matthias Kaehlcke > > > Signed-off-by: Johan Hovold > > > > Can we go ahead and merge this one to get this fixed in 6.8? > > > > I've spoken to Bjorn Andersson at Qualcomm about this and he is in > > favour of doing so. The only people actually using the devicetree > > property should be the Chromium team and they control their own boot > > firmware and should be able to update it in lockstep (and Android uses > > some custom hacks to set the address that are not in mainline). > > Unfortunately it's not as trivial as it sounds for Chrome OS. The boot > firmware is controlled by Chrome OS, however for any baseboard (e.g. > 'trogdor') there is a larger number binary firmware packages, one > for every model derived from that baseboard. There can be dozens of > models. Chrome OS Firmware releases are qualified and rolled out per > model. FW qual may involve the ODM, usually there are multiple ODMs > per board. In an absolute emergency it would be possible to coordinate > a qual and synced rollout for all models, but it's definitely > non-trivial in terms of operations. Ok, fair enough. Could you please provide a list of the compatible strings that you guys currently use and I can add new compatible strings for those, while keeping the current ones for backwards compatibility with older boot firmware? Johan