Received: by 2002:ab2:620c:0:b0:1ef:ffd0:ce49 with SMTP id o12csp312714lqt; Mon, 18 Mar 2024 08:31:47 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWG/lrYpnIOZDc433/coThEmWd2kfj4gOtR3vFBmMtV2/8xA0+dvaRC98mkCThyFVmKU7/5GBtXpHjjKYjoBEMHrmnvpjJ2aSIsHpq5Ew== X-Google-Smtp-Source: AGHT+IHT8HhwC4BJS4TNhKCkV/agaYDInCfgLTJLY3CPqbic4v09SRY/FQGr+kzB8T85kwIntNIc X-Received: by 2002:a17:902:ea0c:b0:1de:e6a5:e51d with SMTP id s12-20020a170902ea0c00b001dee6a5e51dmr12933627plg.16.1710775907476; Mon, 18 Mar 2024 08:31:47 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710775907; cv=pass; d=google.com; s=arc-20160816; b=atLBqWg48PliNCA8HPmihQw8isJoBMOcMQVvqUFOgisEnmD+aEFpXGNCfnBE5EU13K /58in5SK/3pxDZk1vRcgMESEuJZcGAvv+t0sXsCGpFrD0cmqBTe9ul1ue5FybslA9Irh zLlz02ltxFQcmRi/6QpPpa502vAlP7UPAi8v6CWpbQv0C3Db+LzZiDs/Cu4BGGIei4/p HE7VuCgRkgvXlTYlZNWXPod8HAok9U8hn6CqkCv3xnHJZTCcLlzvYKmybSEjTRcUJS8P 6k/G9iXRzUq5O2wfMIMQgnEcklcCj3mfeeOrPzxgzMOwoWj8+kcn5dX9M803KuHc1iPq CrkA== 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=VA9/NiX8/E19WUiHKA9tr52IADuhSxANcPtKQ97R1nM=; fh=JQ3LPMUjSybkmHCbrf+A47zJvnS+jycq7mEAPLscAC8=; b=nO+BMrp6aATXHMkTx1WezhRv6tgOnSoBJ+l1bNUtOBrgPHJvkKHve9UtFDBDP5GKHD tL+n/HFD8h95iIkn93OMu/rP3zAOqarNfVt+ScwOu0n+ZAgR8b7ZiD7UT1dhnCbS3eCr z8kKjvw0+WojfhA0CmBst70WMWt5nRaPoS3LXYaNImf6OEWRIXguoY1XjuDHuRSsqLTV 4rcgTjnABLzbzh469qbqaosOfC/qEG+KsnQljHppGBiP6to/M30glyjnPP9zh/Ts3pjj uyC9W13HjARmW0t/4fHVxA1hWaTUSr9bIaEFZwAE0/JVxQgUidftk+ZfCTSQtM4FcC1f ITyw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=oW+ds6Wx; 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-2590-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-2590-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id h15-20020a170902ac8f00b001dcca361319si8795791plr.261.2024.03.18.08.31.47 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Mar 2024 08:31:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth+bounces-2590-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=@google.com header.s=20230601 header.b=oW+ds6Wx; 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-2590-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-2590-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 276D6281533 for ; Mon, 18 Mar 2024 15:31:47 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9103C50261; Mon, 18 Mar 2024 15:31:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="oW+ds6Wx" X-Original-To: linux-bluetooth@vger.kernel.org Received: from mail-qt1-f174.google.com (mail-qt1-f174.google.com [209.85.160.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 6C4EE4F896 for ; Mon, 18 Mar 2024 15:31:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.160.174 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710775888; cv=none; b=TtQED3G2t6pg8tHfjDdopsfUhf3eJwlBy/EGQDUtTTNOWSmBfLdTaZDpwAMDjDSwvKCdT5EhTuBuf6t7XAyxVQIDMYRBfkm8vA1CgwEKiq7KU/UflMzXP6U2GDJ13HVKEitBYxvQGx12my5kXGchsfl1SUV+w0E7wpIjCI37ogA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710775888; c=relaxed/simple; bh=m4+I6MBoUeUHGxnrD5vzjttWojTZkPCJQ14dx3myEDk=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=BFHrWrH+U1X6UjQzPd9zGoKyUlZMI9W3GiQTDoOq26Gb9fL9Yiq/RFEwNzIP0YoJ2lRS03E7avINkbIUhd4jXiKFAPnP0d53O3E17TKD8TJ2wycc13TIFabQ7jfMRC448qWKpp9I8dx54AKhTX6FGiqgkLhBevek7JvsgPh14uI= 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=oW+ds6Wx; arc=none smtp.client-ip=209.85.160.174 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-f174.google.com with SMTP id d75a77b69052e-430e1e06e75so73521cf.0 for ; Mon, 18 Mar 2024 08:31:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1710775885; x=1711380685; 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=VA9/NiX8/E19WUiHKA9tr52IADuhSxANcPtKQ97R1nM=; b=oW+ds6WxOpW/jRhOjraBRnZ9oYYtUDIgqGcTiI85U7K+Cpj8UktYnD9iWkB0J6OnGZ c2TNHu9EpLVqHrKYgQayqEAY3RLhQc/B/mf6fNManTAVjNN/zEA02701EyoSgQukjHYM MK8S3x0j44jgkZun13lguylavxOPYCsWEuvLSIZWcu5xr6C4OSoEkTFuRA8xmBXR1y+V /uFIY9300VbpIrFPs3Cn9cgtXjwkjtF8K0urRG+6KKl03MF7V9SiUMRrgtTpp5pVEK2j 2jdwfKzWkL27aaIzCGKLYVXkz9qR7WzfeJ3IUoTfFSAyt8Iq5U5oTaodMnrlwV0ffY1G 3Zyw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710775885; x=1711380685; 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=VA9/NiX8/E19WUiHKA9tr52IADuhSxANcPtKQ97R1nM=; b=lUasz/eKCJoubVaXIbi5Q6PMPOfeIi9VxFHKSaBDu/VYjyrX9RGec9vbq2O+bjlWfS EefvfnJZ99IvXEGbihH+00s4jHFWuIugQFXVarRxVQOOK9LiyNaQXIhEXQ3hPG2zjXos RmffZBjPmhxYc1Y4jICDYMeFClJ7gaPZfS2h+0oIqI0+l17SR+Nk+U/KKa1Tq7kXqa24 P8/r3bUTU1mkaiKGVhcyEIAQR/2xVEx12IPq2+/sipaymHxLSWpITc3ueaSp0a09aIzp mI25I6lr/k0Ak9ojpgLM4IB9k2MjNdJhhThFZEVeD+SgdASvqt/5P5L/xxArq7ivq5hz qLXQ== X-Forwarded-Encrypted: i=1; AJvYcCWbpbSNSqZWoxsOtZT/nyJmDd+AdyIC8EGzsm0EozS3+gKVR/GSyvsTw/OdQpkShMABGchAF/oQihvGeQHUD//UD85PUGQJvZy9sogaPQdM X-Gm-Message-State: AOJu0Yw5I+/aAU05lX50D1oOxBpQAvEgrefxQZaqkoyXKXMtgmVlQBAu M/6Az+YyWrlLvSmT7P3LyXRAgXPiLAQAq/SbnSbIE5jj1Nj+OVwSXIznAjYRNbLmt8KRWkYadCr tPZg1IAdT/m+WKLUjAEKAQbuAnl0jKruaRmp9 X-Received: by 2002:ac8:5913:0:b0:430:a5df:a3af with SMTP id 19-20020ac85913000000b00430a5dfa3afmr367264qty.5.1710775885132; Mon, 18 Mar 2024 08:31:25 -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:31:09 -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:26=E2=80=AFAM Doug Anderson = wrote: > > Hi, > > On Mon, Mar 18, 2024 at 8:10=E2=80=AFAM Johan Hovold w= rote: > > > > > > I wanted to avoid doing this, but if we have to support Google's br= oken > > > > boot firmware for these devices, then this is how it needs to be do= ne. > > > > > > Don't Chromebooks update everything together. So maybe we don't care = in > > > this case? > > > > That was my hope, but Matthias seemed to suggest that we need to > > continue supporting the current (broken) binding because doing such a > > coordinated update may be easier said than done: > > > > https://lore.kernel.org/lkml/ZcuQ2qRX0zsLSVRL@google.com/ > > Chromebooks update kernel and devicetree together, but not firmware. > Firmware is relatively hard to get updated trying to have kernel and > firmware updates coordinated at the exact same time has challenges. > This would further be complicated by the fact that firmware > qualification for each variant happens on its own timeline. > > > > A new compatible string (or one-off property) would allow them do make = a > > change when they are ready (e.g. by only updating the devicetrees after > > 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 wor= ks. 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. -Doug