Received: by 2002:a89:48b:0:b0:1f5:f2ab:c469 with SMTP id a11csp1193762lqd; Thu, 25 Apr 2024 08:23:39 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXHqY9IjPsyTHGMdnzgEmp8PAOqUQFDrJhnHuUmEXMazKIp2ee/P2WkANQtMKo2ZjPY9KC8pJzb5t4y9sso0XJfGGCwA02dD8H9vrL1Sg== X-Google-Smtp-Source: AGHT+IGUGxhWpj+jqLHBn6E93t2M/QUHEbo4tZlB74CK3Ore6pSfUNQHVGTkT+28X/Vl3WhD6MZU X-Received: by 2002:a17:906:ef07:b0:a55:a670:4e63 with SMTP id f7-20020a170906ef0700b00a55a6704e63mr62384ejs.13.1714058619038; Thu, 25 Apr 2024 08:23:39 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714058619; cv=pass; d=google.com; s=arc-20160816; b=wa/rOdHDVekBFlETaoHHlQnUDIOM1JdIegIZKdNZPbvZj1H321FcwoUdu393DVxIMN 22mrfLSIDwXiYm0kxrhiSbhIqS4kvZG34qywKNvfnqbONX0mBmhV9hZGk37OtshNgAlB R+62B0SVkGn8iaN4aSQMGzR7cXeOAyoXPbRT0UBhTsqf1Wax6w6LBVJE+Bw8FkE1rBpW 07+7annpQAoaIxvLb1Wwwrrc2v9FK+S7vYb8zCCSsG6oUV5fhoVgfy8lD/fhLQCneFVE flCFeqT9CKXydRqiFMaF4/Vu4KRoT8QECBLbNEtNsaws/iW2sqnK7HQlL67LFh0xdt4s dtmQ== 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=XwZ+JO6jMDuVSzFezGDh19khl4PM1718Rezhq94PIV0=; fh=c5Mom4Kh2IbFbnBDn962rk1fsUhN8L2TZhcrzEKdO70=; b=0Lw5bg1AjY4HhlT/ZADqlfhEwheOdKrrHlX2bb864OYC8iwtbSdM40Ni67xwTEkI3U 49UJBRlBPBRNBLRN45bzUIJwyTuG6q4nxYP0w5fuxdejYhIJ/gQBtlVx9up8AkfUhE7Y dlzchSbFlhnANbuh/2uvzK6XuqJtRp2bOtI2IMBZOPb7SfgaFuQpVl07XhKozzOT7fwo jrIWF2YkYjo+H8TZQBymCt3coQhb0KPgL7S4pChzpgnfRsCjN2iw1LfhKHi8Tf7V1o5S W1RImKs8nPXAp0nu648p74xpjfRlWc8H3Ujpe1/bWIyjKv+C8I4+0jQWGt/nrjxsT247 NO8g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=mUue0AZn; 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-bluetooth+bounces-4070-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-4070-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id gb35-20020a170907962300b00a526a7a6428si10899213ejc.221.2024.04.25.08.23.38 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Apr 2024 08:23:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth+bounces-4070-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=mUue0AZn; 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-bluetooth+bounces-4070-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-4070-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 am.mirrors.kernel.org (Postfix) with ESMTPS id C1EC41F22C1F for ; Thu, 25 Apr 2024 15:23:38 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C362714BF8F; Thu, 25 Apr 2024 15:23:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="mUue0AZn" X-Original-To: linux-bluetooth@vger.kernel.org Received: from mail-qt1-f171.google.com (mail-qt1-f171.google.com [209.85.160.171]) (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 CD87F14B08C for ; Thu, 25 Apr 2024 15:23:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.160.171 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714058594; cv=none; b=n7HZzTLZ89mgfc9cO6gWh15wdi3MM79BRDScJOTIzSS8jx1j8aq/FzYqoRII+YmO9zfxlQV8Wf9iOXkvZOObZujWkCZNZ45T2VA5F3MLJbjY7lnGs9FAIg5F4AYA1C3xG+O4B53aE99GOYkguWBct3SjxCVJ9JRLkN6M0MwFXCQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714058594; c=relaxed/simple; bh=XwZ+JO6jMDuVSzFezGDh19khl4PM1718Rezhq94PIV0=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=SJyaml1ni2Eq32kpygKo0sSca9cGGGzVee7mSixfvAvGIBmHr+A60wqIBCEF+ISoZRBxm/ue10mMKqGf3erG9Ha6ny/35lEdK8XMxXtT0iyzQoWP3/kHQseuspwiEeq2tnWHQM+aNDzSiMkzdlZr9ytDVep2ZKPxP9uNfvSiqeU= 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=mUue0AZn; arc=none smtp.client-ip=209.85.160.171 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-qt1-f171.google.com with SMTP id d75a77b69052e-43a317135a5so9244551cf.0 for ; Thu, 25 Apr 2024 08:23:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1714058589; x=1714663389; 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=XwZ+JO6jMDuVSzFezGDh19khl4PM1718Rezhq94PIV0=; b=mUue0AZnE5ty6DERUkqssfyVsxShep+2qc0Pd6+0HUBtR1cBgRvCNiD9HBCOxrEVnq 9e5vaC8oLgprfoc+0HgVrJ8Ul7OvVLC288jUPlV5MAzrQjdFqZSfZz0birXYRC62Pe3k +aJXOSNuZ8J7HEryfBSyVcLmEvBEAVRNDcLXM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714058589; x=1714663389; 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=XwZ+JO6jMDuVSzFezGDh19khl4PM1718Rezhq94PIV0=; b=EYBiZNyPjigxOVOS9Bcx8Wdmlwo2+r0M6q3uNcrGTZr56/1J5vxgGCzYw07Tmr7nmc uA5lhr0KqCl02vmO/BmfAzxpM9eqQF0/zgi7rMWYnQOoXkS1jwBQDPUevs/073ptYdBO IAghWRUsXrvhHgygNfVJEndwK+JLbdli5UNzdR4tp6YUT9IFNyNDeckOlTNmkKTCIM6m VsFNb3CWRZKztEkhR72Cx9tnN73N2KUYBFT58SewMrdtKjbtvZX7XLOcjqNOwXs7T2En VSszG571lGha9BmHxBGHh7xt3ALj1FDbjbTPL+8bhu3q+1zHs3y0HsJVURNAouksRPn/ f7sw== X-Forwarded-Encrypted: i=1; AJvYcCU8oo8LxUGsCKfaDhenjok/0aYZZhDOxNmTDsH0VGfjW8SOQItXVfFGooauzCwHl0DWUe5Tp0KJO29BKC5ytRDfoByAlhfzBWNCuNm18zMD X-Gm-Message-State: AOJu0YwPTbvFD5Ne0fTMlZsdLkLQN7pGhZzz0SfOJ+aI01hsGCvHoSim 9zp46puKVbOk6sqsDfwNk/PIAP89GLJP9hIivPlnAIOaKZHuBrVXJIAs7k0zFHHqougvHddSFh4 = X-Received: by 2002:ac8:7d89:0:b0:439:ec1e:327d with SMTP id c9-20020ac87d89000000b00439ec1e327dmr90016qtd.10.1714058589079; Thu, 25 Apr 2024 08:23:09 -0700 (PDT) Received: from mail-qt1-f182.google.com (mail-qt1-f182.google.com. [209.85.160.182]) by smtp.gmail.com with ESMTPSA id ke15-20020a05622a288f00b00434f50f5d82sm7075115qtb.14.2024.04.25.08.23.07 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 25 Apr 2024 08:23:08 -0700 (PDT) Received: by mail-qt1-f182.google.com with SMTP id d75a77b69052e-436ed871225so320701cf.1 for ; Thu, 25 Apr 2024 08:23:07 -0700 (PDT) X-Forwarded-Encrypted: i=1; AJvYcCVcXN+4ZB2hAdvDRUW+I1yt2JdvLIfUQqvvBHC1kpqS60uZc5FWmk1qhiYXFsjO57mxratwpwurWspU3ErvBVZHgFPtZo2FYEv+4b7sGiu/ X-Received: by 2002:a05:622a:5097:b0:43a:381f:6b11 with SMTP id fp23-20020a05622a509700b0043a381f6b11mr264680qtb.19.1714058587159; Thu, 25 Apr 2024 08:23:07 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-bluetooth@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240416091509.19995-1-johan+linaro@kernel.org> In-Reply-To: From: Doug Anderson Date: Thu, 25 Apr 2024 23:22:50 +0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] Bluetooth: qca: fix invalid device address check To: Johan Hovold Cc: Janaki Ramaiah Thota , Johan Hovold , Marcel Holtmann , Luiz Augusto von Dentz , Matthias Kaehlcke , linux-bluetooth@vger.kernel.org, linux-kernel@vger.kernel.org, stable@vger.kernel.org, Stephen Boyd Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi, On Thu, Apr 25, 2024 at 4:40=E2=80=AFPM Johan Hovold wro= te: > > > > I assume all Trogdor boards use the same controller, WCN3991 IIUC, bu= t > > > if you're worried about there being devices out there using a differe= nt > > > address we could possibly also use the new > > > "qcom,local-bd-address-broken" DT property as an indicator to set the > > > bdaddr quirk. > > > > They all should use the same controller, but I'm just worried because > > I don't personally know anything about how this address gets > > programmed nor if there is any guarantee from Qualcomm that it'll be > > consistent. There are a whole pile of boards in the field, so unless > > we have some certainty that they all have the same address it feels > > risky. > > Hopefully Janaki and Qualcomm will provide some answers soon. > > And otherwise we have another fall back in that we can use the > "qcom,local-bd-address-broken" property for Trogdor. Quick question. I haven't spent lots of time digging into the Bluetooth subsystem, but it seems like if the device tree property is there it should take precedence anyway, shouldn't it? In other words: if we think there is built-in storage for the MAC address but we also see a device tree property then we need to decide which of the two we are going to use. Are there any instances where there's a bogus DT property and we want the built-in storage to override it? -Doug