Received: by 2002:ab2:620c:0:b0:1ef:ffd0:ce49 with SMTP id o12csp282056lqt; Mon, 18 Mar 2024 07:48:22 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXnj5O8NvZLPPLB6NCo7Zx1gcYgOTrihR9/yqs2ZzQ8E+l5T7MjHVJj0lMWs0+3t4rQ+XFsqzk7DNKdCm+tOJph5/rT3n7Iw6MjvnJMlQ== X-Google-Smtp-Source: AGHT+IHiZDa6ELS/SfbKAWGAEgRdGNtkx9sdUYvIjC1rHH5hnuGognMtKqexg+7lKe3/K4IvQoxI X-Received: by 2002:a17:903:1c5:b0:1e0:2962:d518 with SMTP id e5-20020a17090301c500b001e02962d518mr2760303plh.36.1710773301974; Mon, 18 Mar 2024 07:48:21 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710773301; cv=pass; d=google.com; s=arc-20160816; b=ZbZsqho63qMS8GCK+8KhplZcacT14EkwXpZ8Zn2a83kLQuv7tAnwO7hxkhLNtiG4PL OPPpYHBMeO6AYbToLvdPcsQJHHI6UWR4KCdDbhP3eZggTllHxRt90f5WBHiK+5WtWaKU w8FxhpKAhW68/pp2v9r7cQnr/vq2xRvUj8++eujSapJAtMbQJ3AWCHDo1Lnk2MCaWHaY 1ZuWidWcxOAtDMSyT92+UojZD9PNUhEH5MS8k+iEj6XE2y9aB9iHDyjjMe7p721UT0zM spqEQt51cwtTnXsCimO08BotDiRXmWuQmO4vJIo+FMyrlepXi62fT8St0LdZfHpQxBic oYVw== 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=UFP+ZZRkvwpQLfR+DNBQV4fjSWOcWvtT8Bo70AKSkFg=; fh=oxLwEpJJ27pb7Me+l1VKvPG1OS/38lJHLt1KfXKcu3Y=; b=f/BxYYW7WhZLf4Ne3bPdC8l/wA80KwoG6Tp3zZN35UFQnrBFa/LV6u7ShOLoDjKWs6 b8EkvtmJTEotbTjRrl/oiDg2MFaTLcRF+Ue7qgCAOMBAsl9JGcuNYNegGgFrM+Rlxfnt qLNQwYvniuELwFk0hjO79ECMMp30xmweeIO6H5moNIC78+et7ImfwHnuYvmc5E5bhvIN vWyCZjiVOlmTE8uqZCs6z567W0kf0tLNuUxAeIgks5H1dywQn7LzE7tONsm0SI7OyBt1 AtM5k+KCNAu6p8XYautvXF2gF9QSbjTNxXTaXpaDby4ukyVhZ9K73z36lvtE/Rgdlyxj SE5A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="M/XoVnYI"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-bluetooth+bounces-2587-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-2587-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id n8-20020a170902d2c800b001e032f464b3si911835plc.559.2024.03.18.07.48.21 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Mar 2024 07:48:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth+bounces-2587-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=@kernel.org header.s=k20201202 header.b="M/XoVnYI"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-bluetooth+bounces-2587-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-2587-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id A5F8C2820AA for ; Mon, 18 Mar 2024 14:48:21 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2666F4EB46; Mon, 18 Mar 2024 14:48:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="M/XoVnYI" 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 6F3738BEF; Mon, 18 Mar 2024 14:48:09 +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=1710773289; cv=none; b=ErH4u9WcvlQVNcbU2OM2Q/MtvmfSLrtHcxoZ7te6/MJUwVwACNm6qaObMXZjfqScgcuR7cVkSjrrXnP22OzuGkDx0O3Is/RVB6WJ8C9BwSkpMvMIda1ZS3A1YiOWeYAhSWvssuCLCOQ+wq7nNNZxapyD2CbVCNl5LsO6ocMJR8o= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710773289; c=relaxed/simple; bh=fFpQIC1WWlry+MCS3UDnBUqyuPC+yR/ct7UaDoPegoM=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=sDAnCLOB3NbKUwe5YokGXFVwMoq+kr1Ai6yMbiJpRZoCXKdprfKlq/h1jh6XwgdNhgGhwI/vuxZNJeIi5zUEEC1yHp7NF51LDx8+7RiJHUpu/Ips9KacP4y4yii0GmRa7lL4gmgUGyzu2DO6ZQ8wxKsV147fpNiSX+yp1Oly168= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=M/XoVnYI; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id C6290C433F1; Mon, 18 Mar 2024 14:48:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1710773289; bh=fFpQIC1WWlry+MCS3UDnBUqyuPC+yR/ct7UaDoPegoM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=M/XoVnYI5ZdzwSJQsiQPry3j6wkqfmUhZ0Wb/cIZ7LPOs9P9MTvgHrhk4dzJCgnh3 iRcaUdDTfJutaZgbQCgrdKQnIZC4PFp67egUc7l3lOD6CqnOJuvSEGJMTy394EgaL+ NAnajc6gZDem815pcxkYMvKpr5vo5J5L+6tm85ihFYdCmzAnlZfxDzSp+KHIXLN+zy bgCh7fubqT8eXW2s8zDVnCyJ3k7/HyyaOjTuBi51B4/6L1pgATEJNs7OXiLebUPRPq Bgvej4YQdDedu17o5C6njM8QxJwTTazZDwb4p/Xagrfx0+qo++1Qg7z2to/4EmdOAg c41SuMXcWasgw== Date: Mon, 18 Mar 2024 09:48:06 -0500 From: Rob Herring To: Johan Hovold 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: <20240318144806.GA3963554-robh@kernel.org> References: <20240318110855.31954-1-johan+linaro@kernel.org> <20240318110855.31954-2-johan+linaro@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: 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: > > > > > > Several Qualcomm Bluetooth controllers lack persistent storage for the > > > device address and instead one can be provided by the boot firmware > > > using the 'local-bd-address' devicetree property. > > > > > > The Bluetooth bindings clearly says that the address should be specified > > > in little-endian order, but due to a long-standing bug in the Qualcomm > > > driver which reversed the address some bootloaders have been providing > > > the address in big-endian order instead. > > > > > > 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. > 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? Rob