Received: by 2002:ab2:620c:0:b0:1ef:ffd0:ce49 with SMTP id o12csp298604lqt; Mon, 18 Mar 2024 08:11:01 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCX2IRDVW52Ss0mqDuJ5xPkQrzUe2+RgBi5zRn6x/1uAGzaQ3fScDzUAZSlLkfEbqsdNiVIW0xXb+itXKik6z4nW2801c/rVy6WGPZpCRw== X-Google-Smtp-Source: AGHT+IEBzHECXPXTBu7g6UiVO8hkyv7Z3ABPoUWee0W+aFAbCrTy3CocScIaTdU5P/B/99tWkWIs X-Received: by 2002:a0c:eb85:0:b0:690:af37:6fe8 with SMTP id x5-20020a0ceb85000000b00690af376fe8mr20423288qvo.3.1710774661052; Mon, 18 Mar 2024 08:11:01 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710774661; cv=pass; d=google.com; s=arc-20160816; b=qaukMeJmmMcUHkuc0vhyuYOCSWDcfKPIcBrgxBIZJjWNv8gG6S4W0Al8he20VhDVBs WSZYMAFxq0UDhT8KK6yNaPRQvSs7FsTw+Le1BujpVMj8hh/SDfORYHdWJXFgLlaBesJg IRhs7VxrLNZ8z0lqzV3JQhmIrpOHNTwcN1cJB5S52drrny65VsCgJ28aDtWdS4d2LI9q QtFIqzQMg6l1TXnw0V/jKtLSuuz81bsaumyFAbwHux/wAEQgVMC81HCVZ7xPsv6T5GJU ygzTg6t5ONicxnDyWq6sgklg8m/u3SFOmDOwT6s4ifqngzyfBHYlVp1ufKMPDPoGwxnS +URA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=twlMRHHqEEnvOqWikK1GmcLDgbkSu51G4oBw1MtZc3g=; fh=8CaO6jnm+DpRAtbU7XiXAxbqekiWVdweRUuSpCertFA=; b=0QmiWSFo0neUr3mRqTH0u0Dz0o0RlCnd1Z8T7ieFZB15czwbawLgXQ1/zTzImD4ye/ 6UMqSBWt3kXhT1VDotvMlBuSFzlCwgSHJT9mhroG1e+Y42dwHedYN6+2T9C8O0U+RW2j mZjjXiqtHThMbCQayZzOqRtRf8dOXvP/Mg/lJN2KGLX7p/txLy1AGNjo7WUM64UEthP+ DOs1FPSZ2ofztkM68cudm60L7dsVwvDXFbMQaBNIy9B6Xjr4eyPkY9JUAi5zHlMAf625 OWGOKydUi5ETgn7BxJ+GPKThpXVMkvqSSfnm3b/Gj72eU7trBLNxoHcg1bBdcNYBBGsx 7gXA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Rmi688oO; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-bluetooth+bounces-2588-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-2588-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 e6-20020a0562141d0600b006961a5e9552si2498006qvd.427.2024.03.18.08.11.00 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Mar 2024 08:11:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth+bounces-2588-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=Rmi688oO; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-bluetooth+bounces-2588-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-2588-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 C05B71C21336 for ; Mon, 18 Mar 2024 15:11:00 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id EEEFE4F200; Mon, 18 Mar 2024 15:10:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="Rmi688oO" 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 432E74EB3D; Mon, 18 Mar 2024 15:10:48 +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=1710774649; cv=none; b=OGlAhCU31iqC0sMAZv0/jul4jcv3cOhI73qAwHAC1wPwhkAUsXOituiojj/WJ5j1Kmz9RZrWynU6Q22hRGjikVynVl2WuabIK4pahGV9RjqK4O9aKIJpAYZrEqq0cEtcGMIqMPYTcP5dtGJBKZpacVg+qCVBGod0pjI/jQX0Y8I= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710774649; c=relaxed/simple; bh=fH+FYiniWHx5rmlrXtlHSdr1Cwr9tIkFEC+J1fMVSjc=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=LoMlG5v+NOMdosKjpIv/Z2eENIbdHLBfdtXaL1EXbddk0YKKuU1yOFYX6p5fM7Gi8SpEsnNzu59I5gInNDC1tVWnIWpPw6KNmwXLaFDv4CgwYUiEdFGWG92+c8qpVudSkQS/FGlpAe7Tov7UtkG2jQU3llY83BS8sSnuwMwK3wM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=Rmi688oO; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id B450DC433C7; Mon, 18 Mar 2024 15:10:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1710774648; bh=fH+FYiniWHx5rmlrXtlHSdr1Cwr9tIkFEC+J1fMVSjc=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Rmi688oOG4+pYCoMikOks7rpgzB0dDwAOCBbcgM61JlGKzFAsgEfLLi7LP5gwap7I rHNOymOVlw8I3sn6yaduBTJruXER9LnV/zubbnRMVyYxT+dHkZD8oOsEUtrIxNpwvS 9uYvrPmGeqXoDf4huBQVBBrLjGFmM/wpGR+0mFJrKhjlLUYDUbwSD8xW02fPyfetLy D/S+FLMpQPmK+4i9DssiN6CxDQEnQ0vddnJ7yxIVwGYv//CuVaSpHeXwp7bzsVyYcE IwJ4dVLKzp7VELuXD6nejfqJ5h+lHoB1zrWwZC2B1Lkmm01ygwyuwEK/AL99ogjo9Z 4NjGn9muE5DIA== Received: from johan by xi.lan with local (Exim 4.97.1) (envelope-from ) id 1rmEdZ-0000000035w-3rpp; Mon, 18 Mar 2024 16:10:54 +0100 Date: Mon, 18 Mar 2024 16:10:53 +0100 From: Johan Hovold To: Rob Herring Cc: Dmitry Baryshkov , Johan Hovold , Marcel Holtmann , Luiz Augusto von Dentz , Krzysztof Kozlowski , Conor Dooley , Johan Hedberg , Matthias Kaehlcke , Doug Anderson , 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=us-ascii Content-Disposition: inline In-Reply-To: <20240318144806.GA3963554-robh@kernel.org> On Mon, Mar 18, 2024 at 09:48:06AM -0500, Rob Herring wrote: > On Mon, Mar 18, 2024 at 02:17:47PM +0100, Johan Hovold wrote: > > On Mon, Mar 18, 2024 at 03:00:40PM +0200, Dmitry Baryshkov wrote: > > > On Mon, 18 Mar 2024 at 13:09, Johan Hovold wrote: > > > > The only device out there that should be affected by this is the WCN3991 > > > > used in some Chromebooks. To maintain backwards compatibility, mark the > > > > current compatible string as deprecated and add a new > > > > 'qcom,wcn3991-bt-bdaddr-le' for firmware which conforms with the > > > > binding. > > > > > This compatible doesn't describe new hardware kind. As such, I think, > > > the better way would be to continue using qcom,wcn3991-bt compatible > > > string + add some kind of qcom,bt-addr-le property. > > > > No, you can't handle backwards compatibility by *adding* a property. > > But you could add a property for the not broken case. That's a bit odd, > but so is your compatible. Sure, we could have a property that we only add for wcn3991-bt going forward. But we can't go back in time and add this property to all devicetrees and say that 'local-bd-address' is big endian unless that property is present (as that would leave all the non-wcn3991 devicetrees broken). > > I wanted to avoid doing this, but if we have to support Google's broken > > boot firmware for these devices, then this is how it needs to be done. > > 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/ 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). Johan