Received: by 2002:a89:48b:0:b0:1f5:f2ab:c469 with SMTP id a11csp1221695lqd; Thu, 25 Apr 2024 09:05:44 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWqtgKQF8lxkV1U9ozFRa9HPQsaZphYCw0MbjccsQ9/OE+Y8ALDArFpdLohO7siO26NR1K8XoavdxNahCcFCUWo4VZAJKojAGu8+SV07w== X-Google-Smtp-Source: AGHT+IGwBaTf6jHD2LWniaYslWtO2GQin8yO867kxLFYkS8kpk22cFPzpfG6HUsDCmuDfA818y+D X-Received: by 2002:a05:622a:1a82:b0:437:d9b:cb56 with SMTP id s2-20020a05622a1a8200b004370d9bcb56mr7345666qtc.44.1714061144332; Thu, 25 Apr 2024 09:05:44 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714061144; cv=pass; d=google.com; s=arc-20160816; b=yxFNfDLDrHdoF8EsgPy4Ag+mVCTQlry1Qrhqlnllddu3ckhvliiEvlACww7WJyxkKs zhSd0jR1oRT1vwA/3YLOG32D0NBDfKzG9/DY6eob73Lx9qpl9ntcsVpaWYq6qI6AITjF zA/rp2OzSh3ckVGxcch6fyRE5bCwOdKdTNjURbgaxqK6YSLdwyRa6m1eEsm8cq7Zuf4s U/i9Igs/IVbLhkWBfctX4ILr64ONZiE/+SI8ZYqnwBYAcpHMMYJ4Gghbpr1MD2aT4cg8 2wWf/u8iDRp1VJARgNpR8niP5nOVzvz92CbAicmtQlaThi55hWphrA+7gosbXAP155dy 5h1Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=yqoFEBYGvr1CzCDNq2rYrl60Aa+Kl8xqNL1Vi3kFg0Y=; fh=bAP5J53SKpJY4n7VVLu1nIRQsdP7om6cXGUb013Vke0=; b=XbJVYE16VeFTSx412UjfUsDgZco26Y5yotNVJ0G51CWsq5WtF1AqQ/0DqyEwL4O5nv UFFTesMc310P10XKK7+TN7UluBeXDblYaGm6uXo/H7Ox81T7jlVpCqhA1fRA1TFspyJN QEEWy6pVbD3WeH5SKkD0P8BR7mLJOLCh5srfD440O0AgrmEfgDXlKjUCd2QcpjVkVy18 azri8P05th5PuJBb3aMNNlqoJxJBTqWIKtufjzGXGwHi8IdQJMbvvtqh6F40XoArdCop hwrlgXupqYy7o8cUlNoJrNu+bB0t7SPwMkQv1qXqOUJrmvQ04WbqpViaihZ0M3QFvZtn Clxw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=DkC9S21D; arc=pass (i=1 spf=pass spfdomain=chromium.org dkim=pass dkdomain=chromium.org dmarc=pass fromdomain=chromium.org); spf=pass (google.com: domain of linux-kernel+bounces-158866-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-158866-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id hf13-20020a05622a608d00b00436e5fab0b4si17871593qtb.443.2024.04.25.09.05.44 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Apr 2024 09:05:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-158866-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=DkC9S21D; arc=pass (i=1 spf=pass spfdomain=chromium.org dkim=pass dkdomain=chromium.org dmarc=pass fromdomain=chromium.org); spf=pass (google.com: domain of linux-kernel+bounces-158866-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-158866-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.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 034FB1C21838 for ; Thu, 25 Apr 2024 16:05:44 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9273C14C5BF; Thu, 25 Apr 2024 16:05:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="DkC9S21D" Received: from mail-qk1-f174.google.com (mail-qk1-f174.google.com [209.85.222.174]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4937414BF9B for ; Thu, 25 Apr 2024 16:05:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.222.174 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714061131; cv=none; b=H/9y/aVCrKTk+iv5CttNbrmMItyMaO/+5zZMsOZ+IuAbYfahzEIZL0oWRPk0isV8b5Glj4zhOym0N/a59adKDezK/ueJFZjjQ+gSWM6ShyLOUTWDu6VlYt5B6DsdjKJcYNGpn2KbBFh9G9tmcIbiMO7MSZGDv5cDbBL1aUI6UKw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714061131; c=relaxed/simple; bh=ma3KkjWX6NDzygZRbgCm5HEg8q6NeJy/w77N/3RnFoQ=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=C8QHD+M8HhHVW3cmRhjd9G09i4lTKa+cISxhMiYcD5ITYN3iC/eh4SCr+7tmFbjUiPHGeS0Ot/bz+x6ANkgIfZvD1f6AVqXUwUJV6V609KpCz0EvbyiGWjSYZnogiNHtpC3fKCoXrNr6zPTy4Kw+Mv3F5oTfrk3/bZ+UcEsw1Eo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org; spf=pass smtp.mailfrom=chromium.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b=DkC9S21D; arc=none smtp.client-ip=209.85.222.174 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=chromium.org Received: by mail-qk1-f174.google.com with SMTP id af79cd13be357-78ef9ce897bso73869885a.0 for ; Thu, 25 Apr 2024 09:05:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1714061128; x=1714665928; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=yqoFEBYGvr1CzCDNq2rYrl60Aa+Kl8xqNL1Vi3kFg0Y=; b=DkC9S21DgsYtrvfpLHjTJE8a2SMXYRUkBj407GH4yQ/MmXdH/KfjRFKgwyJb+TTfoP RwwgLRzFp4lRn9V1aYc1YXPS+EysaUUzQ9Vw1fJnk2T6fJR5+oQEOmf6O558Q2IPNzQf kDls+VJXkBl9Mib4KAq/PmnEmSgMqiyMt5BUI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714061128; x=1714665928; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=yqoFEBYGvr1CzCDNq2rYrl60Aa+Kl8xqNL1Vi3kFg0Y=; b=p1WWfLDXguOQKPtEPcag0aRG4WNUAQZ5n39c4cISHW90Y3oL4eC2HR6fttPw+tRdKT 5mxnO0HISa+V3QSeY0VbgJhoHnBSyK4rzjmyxu8DXqFZUkxPKXI0Yy0mm4CEwXVHPcoU VxCkpfVDqyeXFZVK3V7gFJDF8/MR5Z9pM6Y6SqhVxJhQ+b7cuhfxYptrOCMe0JE3/U+M XzyiZ/0SGmpGNe5d9y3PjJgwUNuEK64kOEHH3YSdGM4w+hTIE20n+oLpJzYKXwiqDZP2 hRtwJ8Ph/DShGfjkbPSYUPtPXOmEiGU4I3P4mrwqUC2pTAas+Q0rDpTn4Sxi+ZPAFb1E 0OJg== X-Forwarded-Encrypted: i=1; AJvYcCXDpB7UAbo0gFpyMn/E9DmP+LFrGc2DTmQ9KY4PJ+qA6iIZuehBrXIdNbKZ9pQ52TXJPxqLXomg2k+exS6YuXhc24DwSpRXHcYrWzue X-Gm-Message-State: AOJu0Yz4n1Veyc6vQDulr41C9dXf7JAkNUExcwF/CccAhYwwsN/bvccu Wx6fmkq1RinT+nzdh/LbS3lM1G9tri1IjY+iSQwPA3HmqYZaY13pvRWhknc31PXiFLzqOPmZITw = X-Received: by 2002:a05:620a:2229:b0:78d:6845:58b9 with SMTP id n9-20020a05620a222900b0078d684558b9mr12084qkh.22.1714061127756; Thu, 25 Apr 2024 09:05:27 -0700 (PDT) Received: from mail-qt1-f169.google.com (mail-qt1-f169.google.com. [209.85.160.169]) by smtp.gmail.com with ESMTPSA id y10-20020a37e30a000000b007907319aa02sm3915833qki.67.2024.04.25.09.05.27 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 25 Apr 2024 09:05:27 -0700 (PDT) Received: by mail-qt1-f169.google.com with SMTP id d75a77b69052e-439b1c72676so472081cf.1 for ; Thu, 25 Apr 2024 09:05:27 -0700 (PDT) X-Forwarded-Encrypted: i=1; AJvYcCVG5ZEG/7tMrBj1zmSVUwdvSV6dYrCm8mAxPbxGQKCH5V9bME2CbPIGG+P0v8Xi1O1nhos//E+caQCMvlKhm1YW/p8BjikmfosdXTH/ X-Received: by 2002:ac8:6782:0:b0:439:7526:1d80 with SMTP id b2-20020ac86782000000b0043975261d80mr330416qtp.22.1714061126221; Thu, 25 Apr 2024 09:05:26 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240425075503.24357-1-johan+linaro@kernel.org> In-Reply-To: <20240425075503.24357-1-johan+linaro@kernel.org> From: Doug Anderson Date: Thu, 25 Apr 2024 09:05:09 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] Bluetooth: qca: fix wcn3991 device address check To: Johan Hovold Cc: Marcel Holtmann , Luiz Augusto von Dentz , linux-bluetooth@vger.kernel.org, linux-kernel@vger.kernel.org, stable@vger.kernel.org, Janaki Ramaiah Thota Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi, On Thu, Apr 25, 2024 at 12:56=E2=80=AFAM Johan Hovold wrote: > > Qualcomm Bluetooth controllers may not have been provisioned with a > valid device address and instead end up using the default address > 00:00:00:00:5a:ad. > > This address is now used to determine if a controller has a valid > address or if one needs to be provided through devicetree or by user > space before the controller can be used. > > It turns out that the WCN3991 controllers used in Chromium Trogdor > machines use a different default address, 39:98:00:00:5a:ad, which also > needs to be marked as invalid so that the correct address is fetched > from the devicetree. > > Qualcomm has unfortunately not yet provided any answers as to whether > the 39:98 encodes a hardware id and if there are other variants of the > default address that needs to be handled by the driver. > > For now, add the Trogdor WCN3991 default address to the device address > check to avoid having these controllers start with the default address > instead of their assigned addresses. > > 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 > --- > drivers/bluetooth/btqca.c | 5 ++++- > 1 file changed, 4 insertions(+), 1 deletion(-) > > > Luiz and Doug, > > As the offending commit is now on its way into 6.9, let's just add the > default address that the Trogdor machines uses to the address check. > > We can always amend this when/if Qualcomm provides some more details, > or, in the worst case, when users report that they need to re-pair their > Bluetooth gadgets if there are further variations of the default > address. I can confirm that this at least gets my boards using their proper BT address. While I still wonder if this is the best strategy to go with, I can agree that this is an expedient fix to land it and works: Tested-by: Douglas Anderson We can continue discussion in response to your original patch [1] to figure out if this is going to be our long term strategy or not. [1] https://lore.kernel.org/r/20240416091509.19995-1-johan+linaro@kernel.or= g