Received: by 2002:ab2:60d1:0:b0:1f7:5705:b850 with SMTP id i17csp286616lqm; Tue, 30 Apr 2024 23:31:37 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVupFPaPZps3tVI4EZ1+5HR6vCo1hkfSvwXY851t4ooO5Et3ZD6qtc5fbzZ+kRa55gpb1qD3nDCsnRDnsAz+//2jhmV3OO1skCSNcgPpw== X-Google-Smtp-Source: AGHT+IFdXMMVLSqlwgocbv0n3d1R3Fk1sYQsO500Fao5xpD2YjAKpiisTgVy/i727Y/unCzZIjJp X-Received: by 2002:a05:6358:178e:b0:186:45c:d6de with SMTP id y14-20020a056358178e00b00186045cd6demr2131096rwm.26.1714545097402; Tue, 30 Apr 2024 23:31:37 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714545097; cv=pass; d=google.com; s=arc-20160816; b=QTe+p0NWgPHgpGAUgZw2+hAsVPnu4Avxro+Kw26TzQkjZXX3qPbQHGmC3fUmoLKYA0 OyRlAiwYpzBS36yPpddMizYnnH1PpydSi3qutBBfzJkpyjcuBvwx5Th3kf0M7NKAYqiJ WlLl8E+d+P5XZ95fWXPQ1F3LSQlQ8xn4L6qwGu4WFCjpHCNcW+hzrqJ6GDBaOhQVKhZw 4Lr+Q2KDBAQiUeo6sNix8bmgI+BmV4F1ZmQd83XaeT0G5gTQkT73IIX+ULvzVrVBVjfq 4yyc1PJHEqd71DS5963hH8lY2nSZZNeff9kJE8umrw0NnxrQ4e5MkjRSnmQLqvfIoD6G GOsw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date:dkim-signature; bh=MYsNUUbzWlRl0ewVEn8pPcmQyw6LyPs0DUY+X+Ig8Rk=; fh=qtQZqEhSCZR/n5MH+x72wYT+/U3nvAd7RevlP2Pwsls=; b=SxwNzurq8LgZjlaxgrlO6oEZrAbRuMa15scO9PI3d/8eYAAtq/MK+2C1pJXaY/LOkO P8C6jV0HiY67niQNCBLwSc4zL460j5veAaz+3bh0z2q7vUKjSPgAPpxqTlQVvVTP9CQZ 12i/Ud6bPSC64sDCsmsH4dW0mRVzWF2gtpdW6a0hZXlmeAZjQOnD3+nuZDfOFjq1ojS3 DO9Zgi3FE2I0VyttKaQ2OtNWA76s2jt29m8cRsX3jznu5kojMMLpdTEgy4ybX4ZSgD2P uY5lsVO/voIwEiC1X2zkuNAQexzDSghwUC2eMhw9NnEPfDnC12ubRwEOa/ASPw5KBQcY NqDQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=cVDPZamX; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-bluetooth+bounces-4213-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-4213-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. [139.178.88.99]) by mx.google.com with ESMTPS id r84-20020a632b57000000b005f7bd3b84d5si21671407pgr.505.2024.04.30.23.31.37 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Apr 2024 23:31:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth+bounces-4213-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=cVDPZamX; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-bluetooth+bounces-4213-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-4213-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 00B9D283E26 for ; Wed, 1 May 2024 06:31:37 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DE55F2233B; Wed, 1 May 2024 06:31:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="cVDPZamX" 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 4147C623; Wed, 1 May 2024 06:31:27 +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=1714545088; cv=none; b=aYtiCWHGkkVPSKGRFRmCQ6vlY1RE81o41jzZ2bbkNTTd0zsN+sb5eN9IRBb/8qJ4vc0x9+QjQg/FnlU5ZXuBilcXkFUC4mSg+zNuSOIr8t4b+P7eu83XwC1X3Kq8O1GMkoNrwD6cTyHV6EiIQqNfFKF1XoCZsswcsE+sd3FHd9k= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714545088; c=relaxed/simple; bh=+NEw0zG256e9wBP7XNqQlXuEItB7kZVWlZ0f0b746fU=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=JcoCMs1yNMZmeQV+aLaW3W0cs12c5WReBlEdU4xvJCmWXw85Df10Md7t/JmvCZGdRdHn/ZVRc+7HWXpOwpafVmM/3TTWfdDUIqFbEa03f4Y0STCOTlACLmGzqROS83fqTEv+/bH+TMAKLbQOY0m25G5pgMuOEhC+TlOSOxJEjhE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=cVDPZamX; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id AC56BC113CC; Wed, 1 May 2024 06:31:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1714545087; bh=+NEw0zG256e9wBP7XNqQlXuEItB7kZVWlZ0f0b746fU=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=cVDPZamX2U6TvxlkPICFGVBeE5BIOdqC+6AFqRLPnGan8VMBHV08RoR6bGMmD3vVe 1JGkyKWr1Vevebd7JsXz+E7aF6EfwPPTbXbJ8aJGvGBqiI/07r+aTnVOPUQQXcZKVX LRENOzCkQtIKpUBwCTeOX1C6YMxExq14ZIAbxrwkKJwokDb5/BzusaEqBg3IT+oNHX vHBc9zsHxfWNr2zBKQx8Q0ZgAzPf4iQoA/HtgeKBuhsbof6oErSc2qwksM/FLAPzgO PI6ungdBllGlRqq8O5Rxui1ZdagpQxThaiNxPRmI5W60SGC9SqKOcMl1ecAeU9qVSy u9HRbFo4JSlnw== Received: from johan by xi.lan with local (Exim 4.97.1) (envelope-from ) id 1s23V3-000000008Gb-34AC; Wed, 01 May 2024 08:31:29 +0200 Date: Wed, 1 May 2024 08:31:29 +0200 From: Johan Hovold To: Doug Anderson Cc: Johan Hovold , Marcel Holtmann , Luiz Augusto von Dentz , Janaki Ramaiah Thota , linux-bluetooth@vger.kernel.org, linux-kernel@vger.kernel.org, stable@vger.kernel.org Subject: Re: [PATCH v2 3/3] Bluetooth: qca: generalise device address check Message-ID: References: <20240430170741.15742-1-johan+linaro@kernel.org> <20240430170741.15742-4-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=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: On Tue, Apr 30, 2024 at 02:21:47PM -0700, Doug Anderson wrote: > On Tue, Apr 30, 2024 at 10:08 AM Johan Hovold wrote: > > > > The default device address apparently comes from the NVM configuration > > file and can differ quite a bit between controllers. > > > > Store the default address when parsing the configuration file and use it > > to determine whether the controller has been provisioned with an > > address. > > > > This makes sure that devices without a unique address start as > > unconfigured unless a valid address has been provided in the devicetree. > > > > Fixes: 00567f70051a ("Bluetooth: qca: fix invalid device address check") > > Cc: stable@vger.kernel.org # 6.5 > > Cc: Doug Anderson > > Cc: Janaki Ramaiah Thota > > Signed-off-by: Johan Hovold > I can confirm that my sc7180-trogdor-based devices manage to detect > the default address after this series and thus still look to the > device-tree for their address. Thus: > > Tested-by: Douglas Anderson Thanks for testing, Doug. > I'll continue to note that I still wish that detecting the default > address wasn't important for trogdor. I still feel that the fact that > they have a valid BT address stored in their device tree (populated by > firmware) should take precedence. ...but I won't insist. When I can find the time, I'll look into at least dropping the BD_ADDR quirk in favour of always looking in the devicetree when we do not have a valid address. That may be a good time to revisit the question whether the devicetree should always override the controller's address too. Johan