Received: by 2002:ab2:620c:0:b0:1ef:ffd0:ce49 with SMTP id o12csp328734lqt; Mon, 18 Mar 2024 08:59:18 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCX9WTYslNZiyMJ0/UMS+So7MZZvIepAnmfGbs5hS8q9mYPzZW+j4QwozAw/axoNf6ZQkSnkE9w2QeKzZB65c8coPB9tWGxlYOmo4bsnTg== X-Google-Smtp-Source: AGHT+IGLGVKJu/FGDSsaA9txX9eh8PlueAVP1ISzp8e29YBubE1grIYeCKDyF1HUMnMi2d/RUeh/ X-Received: by 2002:a19:e006:0:b0:513:80cd:e807 with SMTP id x6-20020a19e006000000b0051380cde807mr7658581lfg.20.1710777557924; Mon, 18 Mar 2024 08:59:17 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710777557; cv=pass; d=google.com; s=arc-20160816; b=F1DBegEbobQO4fIWHQtF3IXsO8LbD5Qam2/MYdhQ3ENafy+TTjJ6xMsuS6WvsvIwzM 2bSYjrttuVzXdE76H5o/p+sp9nlpzsN/QlpDZukcKjlay03sKAZIpzURThq0WgtoVjf8 /A4SL3VJFzn+d8GBAeIWo1nkm5RmVhZu6HcnhN/MQW7JPqSHSkqhHcGLU+48XWDd/7hU f8ACrWpXYDRgfhcivGFnUAZ7hN+YurUe2vPETdlduOmxJgyUjjg9RlpKYnMDI/BecwuN ++Tl5JOtzXynh+NM0YJ2nPDqeQUPVteYH26jFaxFRGw+6jm5ZSTJX42TcRCRHUQKx1I5 WeDw== 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=y76vbDJtHiugWfxpYYz3MtbHcW1T0fosoyhaoQiAPyg=; fh=lUJzREzsWt+Ei6+RoFryAE+pRZ6qj+MoeCoWeu6lrPU=; b=c3jYAkOfbtd8mXsB/e/3crK/OQTbdhNCWWr4lCRiZItKifTwZxXZcRqyDy0u8QsdKS pRXPi0USLyiQGHZ+qhgGy5LxbTHYP3AouDY5LIY+KDrc7NlCIHurrtCbtfueVYeepo1p nI6Em4RhlLpr6gUYr/ANRLtTmXBDF8GibcXBRkpyx3rpYcA1SMwMTqIrBUde5E4qSO7P KsiczXeRzndlveF0DujfpH2wOaGFpjCDTBErmPDUnSn+68bw2q6MI91dHJr3JCEE12Vu NMF/Cpw36Iwdgnr2FClxRmKuJUNc23XORqSY3BgOl5sqsWLQMN5QebSkgSQiARG64K8E BS0A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=MaPli6sV; arc=pass (i=1 spf=pass spfdomain=google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-bluetooth+bounces-2592-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-2592-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id ce26-20020a170906b25a00b00a46ced8a304si368490ejb.16.2024.03.18.08.59.17 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Mar 2024 08:59:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth+bounces-2592-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=MaPli6sV; arc=pass (i=1 spf=pass spfdomain=google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-bluetooth+bounces-2592-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-2592-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com 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 758171F2134D for ; Mon, 18 Mar 2024 15:59:17 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1763C535A2; Mon, 18 Mar 2024 15:59:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="MaPli6sV" X-Original-To: linux-bluetooth@vger.kernel.org Received: from mail-qt1-f178.google.com (mail-qt1-f178.google.com [209.85.160.178]) (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 D8B5052F7F for ; Mon, 18 Mar 2024 15:58:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.160.178 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710777539; cv=none; b=OsEs2CwAWi6At9bAMRqWmrCMfs2t5XXheyzF2v40pDDJ03Hb98FYPLM1pSADoT/izyw39JqAM7Sx8jUCVOekWitEjgfY2oVWgZ4mmzzLz5twrNiqhOZfoqVKXVleKtoZLH3C2j9kvYcpMw+RJnz/Fr/6Lkz4r0ak+4zS3+XTe0w= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710777539; c=relaxed/simple; bh=y76vbDJtHiugWfxpYYz3MtbHcW1T0fosoyhaoQiAPyg=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=YQAmuQK/xrC7TFRoHRGd7r2UcczYItfQ6dTGIXYONfBz9o9BkvMVTzJX9/lA15f5SNwq+qrTdQ9F7hl8aWkxECf64619kuDZWQORmsa1CmDB6/vhLOrB4cN/zlChMsj2jHNicZeVfVGbXPQhoZ0bsSevuRoDXqDgwZ6Xot+6xI0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=MaPli6sV; arc=none smtp.client-ip=209.85.160.178 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=google.com Received: by mail-qt1-f178.google.com with SMTP id d75a77b69052e-430d3fcc511so204851cf.1 for ; Mon, 18 Mar 2024 08:58:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1710777537; x=1711382337; 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=y76vbDJtHiugWfxpYYz3MtbHcW1T0fosoyhaoQiAPyg=; b=MaPli6sVqN+8Cm7B5NV9Om9HW/T8V6dNT5F6FPfDNotqbgJCYO0U7b5BZsjlKnVxMg NYPBOb9s3EM4t14mk+1qwZAkOJbadc0npRXGziT5BrggBDpziU0lvP2wvPLwmYSBiQI9 4dwzSAeNwzY4kw1+9Fg90ojx8Db5NFbbYRDHhy6P1+jhPnbBJ3AMrwcL83hpYzOlL0Kx pyxFG5hUG0+R2szvYc/sFRC5Kji9fz/QlvhkDnXAvLaBHLQDitOAchvXBeSQhvI2hyid FGzNbrKDPX1ilf9NI5Bo/AZ9GOvBFFaCTcCH4ZiGIEBl1Waut3FF6tIQQbUd+8y3FmjZ I1lw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710777537; x=1711382337; 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=y76vbDJtHiugWfxpYYz3MtbHcW1T0fosoyhaoQiAPyg=; b=G0hggRi36kze9I24abmoMdx9QMglX5vCZProMnBBkwxPcwLIYhpKoqD2ssRQeCUAac zwjUgp77sP6PmKOLyl3TymDPDqyJaFfyYybkOdyfBSxbarvQEEZG3yvlA2UgmVumBuBr w05D9xqNlq7rYbVA88M1ABtbRp112owE4yTJ3lDfhFPUh5z5oz4a2zKBR/5uExeJzSwc PpLq5OZVozfN1Gbp3L6SvQZ7d4FwqCSIOXefBqD+RsSluGV/R1C4wvrT43LZNEtm2ilq BLMXhtbHkBeF1eQDPCqw8CPHatdTIV37oF9NIQoSiZKGBqwCpw5BA4CS0XCVU5bKtdSh Cy1g== X-Forwarded-Encrypted: i=1; AJvYcCXTGT7Nhj/oUXiNYVpVpYnAlzkfFOaHNxsMs/KP2rz3vrzHIUWKQWOoplwp635+UkdZYLKO+PoQfF0TNegKuLrQbrF43zQLvK6uj4vOXUTB X-Gm-Message-State: AOJu0YwN7gheLt8DTocGBDdo6HqSV8r+yO4TwUImLRMUCCIshzSB8cRp y1VT4xz+G8vyR60fWdzVi+Ymv6Qxbc54BRbk8QN+XvRryw1bWMy8BIi97NdIO7X+y/MmoFKe1r2 FoTZMzkWY6bRcGFEZWWbBiopAXElEoWGOuOxb X-Received: by 2002:ac8:5e4b:0:b0:430:a74f:b45e with SMTP id i11-20020ac85e4b000000b00430a74fb45emr377484qtx.17.1710777536483; Mon, 18 Mar 2024 08:58:56 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-bluetooth@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240318110855.31954-1-johan+linaro@kernel.org> <20240318110855.31954-2-johan+linaro@kernel.org> <20240318144806.GA3963554-robh@kernel.org> In-Reply-To: From: Doug Anderson Date: Mon, 18 Mar 2024 08:58:40 -0700 Message-ID: Subject: Re: [PATCH v2 1/4] dt-bindings: bluetooth: add new wcn3991 compatible to fix bd_addr To: Johan Hovold Cc: Rob Herring , Dmitry Baryshkov , Johan Hovold , Marcel Holtmann , Luiz Augusto von Dentz , Krzysztof Kozlowski , Conor Dooley , Johan Hedberg , Matthias Kaehlcke , Bjorn Andersson , Konrad Dybcio , linux-bluetooth@vger.kernel.org, linux-arm-msm@vger.kernel.org, netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi, On Mon, Mar 18, 2024 at 8:47=E2=80=AFAM Johan Hovold wro= te: > > On Mon, Mar 18, 2024 at 08:31:09AM -0700, Doug Anderson wrote: > > On Mon, Mar 18, 2024 at 8:26=E2=80=AFAM Doug Anderson wrote: > > > > > A new compatible string (or one-off property) would allow them do m= ake a > > > > change when they are ready (e.g. by only updating the devicetrees a= fter > > > > all boot firmware has been patched and pushed out). > > > > > > I have no real opinion about the exact way this is solved so happy to > > > let DT folks decide on how they want this. I will note, however, that > > > device trees are never shipped separately and thus we have no > > > intrinsic need for DT backward compatbility here. It would be OK from > > > a ChromeOS perspective to add a property or compatible string for the > > > broken case. > > > > Actually, I should probably say more about this to make it clear how it= works. > > > > Chromebooks ship the kernel as a FIT image which bundles the kernel > > and device trees together. The firmware looks at all the bundled > > device trees and picks the proper one based on the board name, > > revision, and SKU ID. The firmware then looks for the bluetooth node > > (I believe it finds it from the "aliases" section) and adds the MAC > > address there. > > > > ...so we could update the DT to add a property (if that's desired) > > even if we don't update the firmware. > > Thanks for the details. Sounds like we could get away with adding a new > property for the broken firmware in this case, which should resolve this > nicely without having to deprecate anything. > > Could you carry such a devicetree patch out-of-tree until the firmware > has been fixed? IMO we shouldn't try to fix the firmware at all. Given the fact that it took me a year to get a firmware uprev completed for one trogdor variant for fixes that actually had functional impact, it's possible we'll never actually get an uprev completed that includes this fix or it will happen years from now when nobody remembers about it. I'm also certain this whole issue will also cause a bunch of debugging over the years if we try to fix it in firmware like that. There are cases where people end up running with old firmware since the developer workflow doesn't automatically update it. The handling should be added upstream and we should just accept that the trogdor firmware gets it backward. -Doug