Received: by 2002:ab2:620c:0:b0:1ef:ffd0:ce49 with SMTP id o12csp262829lqt; Mon, 18 Mar 2024 07:18:03 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWTzhq1qt/dL8eThpyGuKrib06sP51l6h/zVAiJwmCNd6HQKi438kHfAHlDScl5BTUGzgtJ4OJGNolspFPXszyI3KMAVVJwilrScaX+tw== X-Google-Smtp-Source: AGHT+IEKqo6ubFiMPJepKKx7NqdMqePTa6DnX8KSw+P60MTOhGUlBwq+mjMLnJWjpIjkBOdfH4Db X-Received: by 2002:a17:906:e28e:b0:a46:cc18:42f7 with SMTP id gg14-20020a170906e28e00b00a46cc1842f7mr1133692ejb.60.1710771482986; Mon, 18 Mar 2024 07:18:02 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710771482; cv=pass; d=google.com; s=arc-20160816; b=oqngMNeRshytdQKODl7IpgYTlJcd+Sy9v/QWZ6PHKZ6tdYUkChrp0Evhn1DCeNfAcm 2ozkByc3W3PYXa2qr4O2qp42K4YJ2yApla/CAiXfm/zssnNCYFWQterC2YbBQZuoRPmN GXegaahGtMtlw9oIdFr8dsP2AQRRWLtHPG+n88C4/zV2ZViN3I8onD4PkrGs4zF2pC1u nZTGN+Ut4V/JBu++84bL5CCdpGeBXZ5cwpMq3nYObxbMkXg6EyFc9zGmLmYf04XS4yEp z7Mmlz0gVrM+Taq3aug5ifBMea9iJ1l1LaVwaCDJy4hfpQHCjRQ3eagYNMOPBu0OFEfy J04g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :dkim-signature; bh=TzlwcHj9rzlTdK+4b+F6n+PcRBRh+2MYpTcgzzeZa60=; fh=BefADMib9lWprkpo+xjhtqgsJODzcOwa34e0GhEVh8c=; b=irstCO+qU/M/iuPQYoRGuRZt0ojqeSP0p88GIzZ8deGGOfip4DeJemK3WUS3jZiXMK gAXFN0WJ+IPdA1c+ZwcUfqhGmXgXIoBHAjHqMtev6Je6Qn9Fsg4RDbdK6jUfXz9pExBR +nQNZXpvpXPp1y0e/hH5rphJY8T+ZQbG29P+UO8TTFIzQK/wdv/A6HdLXjyn5nZUxyqU niJKNYcnL9rtr0n8O+Smpc70lNqk/nDs9vopaQXcyfeElESHSRygtUQfO9ejqIDsxk2b LXjjOHI4iv3BbNGKjFXWU6xG9V8uL4s6aXbx80ah/f3CaYB/Bsi9RD7XJy5pQLyYXaKK nhYw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=vWIN4beV; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-106204-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-106204-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id gw24-20020a170906f15800b00a44ea3753b4si4395390ejb.594.2024.03.18.07.18.02 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Mar 2024 07:18:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-106204-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=vWIN4beV; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-106204-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-106204-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.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 am.mirrors.kernel.org (Postfix) with ESMTPS id B30E61F21A54 for ; Mon, 18 Mar 2024 14:18:02 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 02A714E1A0; Mon, 18 Mar 2024 14:17:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="vWIN4beV" Received: from mail-yb1-f178.google.com (mail-yb1-f178.google.com [209.85.219.178]) (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 A353F4AEDC for ; Mon, 18 Mar 2024 14:17:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.178 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710771458; cv=none; b=Okai+Y36c37dYZMG9t/xCDfyWgyt8Q9acq3GrGFrxEFaRAhtQmU0SVOXJzViRmuMMbUNtY7JlzEZ3Pe+xwcSu5ATMPqNRovcAYybX1lK8OlBnj8/ooCQ/pxV5yukc0hNoSTCfoWkoBPygKx9Tt8qgA475e/z6km8HqApw0HYf2E= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710771458; c=relaxed/simple; bh=ikAlB86gpifveSTewS4ZULYqijKVqVlt49o5eZKo3y0=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=qTh/YlIkdrt7Uh1xw0KeZesnhPqTaOmwxgDTQkrJ5pSPIg4muVt254rHdVWQNy5QPSBOjeGWki1fCZOPgwpyYc0HtV7ksMKm3+V2I+80UoS3avsGuFivtPNPDCeuXqCDic1hhbhS3R4tT2YRSczowdOq+bAXqE38AX4n66ERkfE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=vWIN4beV; arc=none smtp.client-ip=209.85.219.178 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-yb1-f178.google.com with SMTP id 3f1490d57ef6-dd14d8e7026so3476936276.2 for ; Mon, 18 Mar 2024 07:17:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1710771456; x=1711376256; darn=vger.kernel.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=TzlwcHj9rzlTdK+4b+F6n+PcRBRh+2MYpTcgzzeZa60=; b=vWIN4beVKFs+72BEslEjqeLxlIPWUsFeKXJQjR8FFYh7UkfVka3EzjU1yhq9K9Vbha r3A4c8oAAGABlOwDTzcTN4locc7oa214sPPPOd5SXmeu7eGPgQp3d/RTE0O/0IelPNE7 MawCkYxLVSOkHuPsJvjF0fqr5FiO+WQ9RdPd35gknoRAoW6BEiHU4viyP1x7tI5qS54U OrLtvnyJHcQxB530COO/MnjjVdZDdxrx2xtSlARayxqlmszcs8m+m1HC4ve5QKZ3k8r3 69mU74w1Svrv/2R0SjnYv/LlZWCdJC2MNU+jn85hf6fx+nMsNhVke04flBFg3HjjLnWL a4wA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710771456; x=1711376256; h=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=TzlwcHj9rzlTdK+4b+F6n+PcRBRh+2MYpTcgzzeZa60=; b=CxbEKxhuIRdCQAJdpn+deZ8KuGG4R64qJ0OiYlPYsZyLUsmenlqX2xS7nelxvCT0Fl l4WOLm3makdfTxJP7JVOAuynqdSZ+CVkYuZVnjO5G/hZvccOkWCPTQs2cXO10tFEcc6t xSSDZ1LqXGys6/pw98pKySJgcqLdiF2k6CfPmOdXcuBUCuP8BjahUc7+p5fJR8gc1W2Q TgG0YriqbjrcerF0ko6OWLSj8wC4W9DeaiWlrDaWaeGJ0J8kWb+zRDH6SzJh+v8TMyuS OOD1xpyk0pxmDkPwbyHy30sGoyi3e1vc9JkVOXL6Q6bR2hkC+U7mDmu3VUgHgWY+zOll Svqg== X-Forwarded-Encrypted: i=1; AJvYcCVDwfqGgwQfmIctU9G9xRpeibC9/huJqbfLDm/Tw9poyBBEgKTU2vSVn+0K7kxkgppbfzfEzOVnlyNVBJN4FnG/hIA5j/nuJs3JeuuZ X-Gm-Message-State: AOJu0Yx1w5n92AhwEvz1w7R7RugFgCNwvckWqZkx51SANYGF3aULs1oH /hztSzswiWM+SrsPGEI71A6wU1g4K9jI825BCIrC3SXlYocANBOfvJcbd+O/CyvGJiT6X29W7Lw MRUsKCHBnqZSH2OJUhanLFor0PKIfyLNclhfhYA== X-Received: by 2002:a25:a02a:0:b0:dcb:f7b0:4788 with SMTP id x39-20020a25a02a000000b00dcbf7b04788mr9079471ybh.60.1710771455547; Mon, 18 Mar 2024 07:17:35 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@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> In-Reply-To: From: Dmitry Baryshkov Date: Mon, 18 Mar 2024 16:17:24 +0200 Message-ID: Subject: Re: [PATCH v2 1/4] dt-bindings: bluetooth: add new wcn3991 compatible to fix bd_addr To: Johan Hovold 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 Content-Type: text/plain; charset="UTF-8" On Mon, 18 Mar 2024 at 15:17, 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. > > 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. One hardware compat string per hardware type. -- With best wishes Dmitry