Received: by 2002:ab2:620c:0:b0:1ef:ffd0:ce49 with SMTP id o12csp222106lqt; Mon, 18 Mar 2024 06:17:57 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVt3Tm6X+X3k528jjMKLR4IK0jk0saAxbJ8uEZpYB/w/yTpzue6er3oDHvVo4lWKnXQ9GeLUSUJ2SmhlIpXhpIwBuUCfQlyBR2F+D1K3g== X-Google-Smtp-Source: AGHT+IGLLQpr9paGeMokVQo9vjqhpST3Ub1W647vaKfuAr6VU8YOnPMr31HreI9+GTWPsnPyqxGu X-Received: by 2002:ac8:5f95:0:b0:430:bc81:7108 with SMTP id j21-20020ac85f95000000b00430bc817108mr10574518qta.22.1710767877042; Mon, 18 Mar 2024 06:17:57 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710767877; cv=pass; d=google.com; s=arc-20160816; b=Sp7grI1AYtaI/3LnD2LKKZtaA6VyAmBl98/7JLLHgIgjysOMmPcQIECiGygmxakgdJ ZoSt+P2FzIIHt4RNUQuMQZL4owHw9tzg7Mo3s8j79D0HQfs+7J4OjrEaqt0P7IYTcFbH eLwU8PrIsLdKgTv5Vf19Dx3v3WqjMvnc/O99YnRRAfwuQr9z6BsoLN5IBOmb+VOafz5E 1mTjGYpPqKfyTMcMXCPPSt+2EKl/+biiGZkxsGe+/eabINrlSiirj4cv93kLwFZT6ofz 4es1mrp+YAI8H2Ym6LsqZQ2KNa0T06JgDUonGs7UrHIPShhj87nNDIgpproXZRZgeZ2u TX8w== 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=TBxlNbJ1kz+1mgc5LCV7B1yVqyid6pknsBQioHE+wvk=; fh=0H1UuftsdE1I8c8Sn0QkNNqIN+/URx/JklAGD8lakdE=; b=qJyqvbWSfFqFqCZWic4Ek207CLwSGvLwO6LQgO+knN1QbCoLDm1GL8TucXRenXFDRs DxuddJ53zFYHqYNfsdHzcSazhEp//aF970BxYt63yQovyHh+2/FJV1NpErTljHpT+YXx Gpdg3GXSZygWVun00fRdcjbKgj9IcJgt6pWo5guXFLg2sLli0qTAwEHqX5fqqRJIN7Pp xtxY9wCStZMGZx9eBIsvt4TzKTTjXIWjuq3uUcHeXaQI0w2n3auOMELwlVrgc/7cb5IH dKvrFznmNZp+d12LD4z5VKv5CoBkldX/hhJYBg+klPaHqRfuu7NMbmmTGReURvPs4CLq jH3g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Jfn6yFY5; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-bluetooth+bounces-2584-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-2584-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 i13-20020ac85e4d000000b0042ef40f869bsi5931983qtx.301.2024.03.18.06.17.56 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Mar 2024 06:17:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth+bounces-2584-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=Jfn6yFY5; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-bluetooth+bounces-2584-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-2584-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 BFDD01C20CE9 for ; Mon, 18 Mar 2024 13:17:56 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id ACE6F39FEC; Mon, 18 Mar 2024 13:17:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="Jfn6yFY5" 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 F174D383B0; Mon, 18 Mar 2024 13:17:42 +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=1710767863; cv=none; b=XA3q2EpYx9oPr0tl/EbGJ06pywOjyh8MJ4ouFFGNcl9PEfmq60SwCeg6pF+8sIpcma2L4PVJOySigIctoNhL5aoKuOQXP6LVkZ5U9DMw2NPSCx13RrR/NzqjaQH7ylZx/UMblLovwLl7XC2W69mE3SsTm4DXPbCZborhf8JMcWA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710767863; c=relaxed/simple; bh=TBxlNbJ1kz+1mgc5LCV7B1yVqyid6pknsBQioHE+wvk=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=TCYke6JmP4QUlVkMsyJ9r4S0CTsDxryJJ0kP1u8xf6hau/7lBm4AyBHhi6/mQTJN750RnxCqu9EYec5EJjyfE+9yFz4BovuYla+LLBlAHaUaAXReTBajKX3p1qtZB9RiA3rgRstm5X6GSI4jbUv6yKjVd2cQPDFphM4sGRS9bSs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=Jfn6yFY5; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 65B23C433C7; Mon, 18 Mar 2024 13:17:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1710767862; bh=TBxlNbJ1kz+1mgc5LCV7B1yVqyid6pknsBQioHE+wvk=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Jfn6yFY5x4ioM/28bhoexwqqED+kx78C7906yUeW8Z/8QSUgq6RolopQ5eyEINwNM xzj5LQtBaqipMQ59yVEF6WL6G3XDksaViLZglkF4ECw2itY4cy0T6MRo+1sK4in3ON d2ucQ4ZTUuSaZgx67vgbUhTVE0nnKtqGDPPhzZsFCXFFZ1dO3AK/e/vcpHia0wMHJo RmzPD/XdSIDdvNQ8ra7bF3Wo03gdf+YltOu840+d3/180ohoqCDb6hDEKgDH8BELTv 7tvOEnAsZ36LpQVzqhCLUiFIsC8gGyJnvpnKi0iLica0joad0fiwH76tgOYGpz+4h+ hCP/rvpR1PB/w== Received: from johan by xi.lan with local (Exim 4.97.1) (envelope-from ) id 1rmCs7-000000000L7-46cK; Mon, 18 Mar 2024 14:17:48 +0100 Date: Mon, 18 Mar 2024 14:17:47 +0100 From: Johan Hovold To: Dmitry Baryshkov Cc: Johan Hovold , Marcel Holtmann , Luiz Augusto von Dentz , Rob Herring , 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> 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 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. 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. Johan