Received: by 2002:ab2:620c:0:b0:1ef:ffd0:ce49 with SMTP id o12csp322244lqt; Mon, 18 Mar 2024 08:47:27 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUj6U1HZmr+kHhH/iLfTQSogNsSTchbSofKhYFGuMvn0V68yTdWdoxjvdqdTPE9PKYDyn2CS0SQeZSVsbbVjWwCDdtulO/WlZdbWCF1nA== X-Google-Smtp-Source: AGHT+IHoacfL3uUaR1NO27SBpH4heMO6Vk634VzgpdhesdB65Sf0Od0DwWv8ngqWt9eN215inuP2 X-Received: by 2002:aca:1b13:0:b0:3c3:8a4e:6079 with SMTP id b19-20020aca1b13000000b003c38a4e6079mr66753oib.20.1710776846964; Mon, 18 Mar 2024 08:47:26 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710776846; cv=pass; d=google.com; s=arc-20160816; b=lNCI5ZeEXNBPwpG5UdiKzD1gMrLVLBuP7C5Ffs8kaVKZKMUXCVtVwYqLBibj3j2YDs JtNaqz/HOq2tjeI9RdHyihG/vvw5c2tsXQr73UHkHzrmJ2i88qbLiaOml8ZJCUsmvvsI 8qzhtV3DzJjs8tLoUsAJrSjW8U7B1Xnc4cxN5RFLTEVRV9e/j+vDvGcTTwuiaAEa3uCe GZsS63XL2UOVr86vE06me2xqIXWnK0S6HxX+3L1hyQ9KlY9iH0amVa+SV9CacPovJn3V fkDxQ+fNfXeG2mvWogJ8+NsQNHeOIE8wIX7WZMbVvlSqipvaxD+GHzGyKsTTNURrz0yV PBYg== 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=jksA06Om8EfDqfjIX/ZzKu1jUyMKIAMAz6kBA67tOjY=; fh=C3bpibz6+Qk6v9OJmzkN/6raI2EOsqUBMfD1yD++9Z0=; b=DH0HUbEILtwoGRExUyNHkdk1bEPyrhTQJ3Q9nSbyxrAvTBmJUvJDJdIwYu9SK8LaT9 jj/4ds38z92TIwyFYR6NRm2/ojg1sNL9c8nsHTJGNj9sFwIsLhviNnfo7xm2lVF2Cxmm SxxwEVP2iDWfnWM1rRSCMlvNINflku7TwxrBRPRil72u4oxpV24tXl2TqtcE6R7rK3Te a53DJq729f+JPY6PamQsAozaEOp8c8V/fwdGobl4q3QuX97j7QC8zEuBd4mTumgT2QuQ vqicD0sDwdw2eMrf9GeDEfUr/0S+OObVytDYzFlThDTMCm7ZPFo9FXL2beLqIfc2Rqf9 XCvA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="MV/uCDEP"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-bluetooth+bounces-2591-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-2591-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id ay26-20020a05622a229a00b00430cb76f588si2988983qtb.624.2024.03.18.08.47.26 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Mar 2024 08:47:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth+bounces-2591-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="MV/uCDEP"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-bluetooth+bounces-2591-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-2591-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id A62BB1C2113A for ; Mon, 18 Mar 2024 15:47:26 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6B47853391; Mon, 18 Mar 2024 15:47:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="MV/uCDEP" 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 BA778524CA; Mon, 18 Mar 2024 15:47:02 +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=1710776822; cv=none; b=cHayKSONJcWB1EfUWfQ/JOfQcN1j23/4t8RZJ2NBuNIeCRLVxwPheEmMjv4AwAe7h2MvFnBEU+inP6iSSWdHF3bnhO/8C18dYzpysMnsHV6C5uHoFqWiodjCKgbX+97IF2SPS5ndYoDWdC4pBjB8gQWB+i2MF9TFQnToGkRZWQw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710776822; c=relaxed/simple; bh=REkax58sXTPomHSh67uxOzD64atEhWrNncC5hHCfKnM=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=X+hwHNYKM1TRnjHWKn3rcPrHkraRkgCaT9aCd1DAEd8lMo+Rq2A9r0ZcMjYSKZH3YZjkJOhZ9cB8iELIFXRQZ8kDFMsVpwqvdI+jyVt5URnooDs7DInY0ctwcK6yIhFCWxeDVEUb8tERV2k/3dYssZeFgtEW3Q1Q3FhbKMp44J0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=MV/uCDEP; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 30171C433F1; Mon, 18 Mar 2024 15:47:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1710776822; bh=REkax58sXTPomHSh67uxOzD64atEhWrNncC5hHCfKnM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=MV/uCDEP+jETJPzX9aWGhs5GSFEaUIiwLg+aftvin+D/DwpaPiPTL6971ScZk2bOn nIq2MlJbs0Wt1JrpSZDj+0stN/8CLJigWO4n9vSxQhMSy2bAL0Sky9KuAp1XcBvV8C rCnx6phKWy0UQTLCVhL3KE3ncvMuGnANX22YSeijVk6mcBu79L9gzfWTENzjjgizOW d27sTdgnC0uzPGlC4RlwM/OpiREWKt7WnLrA2hfGp5lEhrFPjr4lfEV5guiHkRJPSB Lvh7Gow/9Qktjz+WVfDUZY5U4lV0ExHo9M6iI00rn0X34HxVv6p9uJWX1+teP4TRHC 505t+VjwdA+iA== Received: from johan by xi.lan with local (Exim 4.97.1) (envelope-from ) id 1rmFCd-000000003Bk-3Xhk; Mon, 18 Mar 2024 16:47:07 +0100 Date: Mon, 18 Mar 2024 16:47:07 +0100 From: Johan Hovold To: Doug Anderson 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 Subject: Re: [PATCH v2 1/4] dt-bindings: bluetooth: add new wcn3991 compatible to fix bd_addr Message-ID: References: <20240318110855.31954-1-johan+linaro@kernel.org> <20240318110855.31954-2-johan+linaro@kernel.org> <20240318144806.GA3963554-robh@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 Mon, Mar 18, 2024 at 08:31:09AM -0700, Doug Anderson wrote: > On Mon, Mar 18, 2024 at 8:26 AM Doug Anderson wrote: > > > 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 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? Johan