Received: by 2002:ab2:620c:0:b0:1ef:ffd0:ce49 with SMTP id o12csp207949lqt; Mon, 18 Mar 2024 06:01:09 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWn6WTNAXftl8LWozoedTnNcsuruOy+eaRnL8o+ieSlSDgahb/pzUg/ereU1vi3X07XL9IbR+UQp+ZeEnC98HFVg76xWkZ4K1wzVNyR7w== X-Google-Smtp-Source: AGHT+IEAeepqluuuFXVjYn9P2adgylhSdAoIOaXaEHcd8KFcbIZZNspVoKaZMaohLAaew68EggtL X-Received: by 2002:a92:c68e:0:b0:365:24d9:9477 with SMTP id o14-20020a92c68e000000b0036524d99477mr11905815ilg.15.1710766869594; Mon, 18 Mar 2024 06:01:09 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710766869; cv=pass; d=google.com; s=arc-20160816; b=R+vKh3N3P8uLZeX26JAekDQEiSZR1KFOIJYVBEsbGs/OCCWT1WKl50dmXfAM0KX2lR nFlAJVpLi/kgl/9LDMaGmyN/E+wUJ/2mF2g1+5mi3fq4dbgImwbE2zK1wVnP+I9lL67h DE9HB0W8xmEES/BI4pEtrAacnXzhW/asL/amKr8vkTUcVnLKeUxNOo2/a1fRcmVOI5uH LBPz5mfM2fL/UzBRhdAondCpEOhlEFRI4k2N1cFohLpiCIP7PoF16be+K80oe6cyQcwU uRA1xvowPlNMFCCbf2r2zsirDKJP6yT0NFCQDWSzxgqLXm4XS8OPTiMzxipZkz96wChM SUwg== 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=krtW4aUuwrjQ2jkX8A4jBdsmWsZ29REGKZPPhdTh9uc=; fh=1k6DZrY//Xry177hVu8hehm73h3GNySp6csKzjX+MVs=; b=bbz9BAT4mLcPLQY6Eum4prNqFKHBs+NcnYKUQvDk8Qbd/Cwhhr/OJ87HhkYv1QfrBz UqYRGtbScdi75ZItH/KLmb6P9SsxAqx1U7GgiayWPHq7QmUNcD+p32bBJPwd8qXUjgGH Eld2oIcT+g9NhMaSjXS7iXXnI0xPPOEYan9Op2gwktepzJvksNFXsQc0kBLPuLBpszhw f469uVB/Z0j27lnt4dvKWMEwhVENoUsZsc9NYKsM0yrqVteUefx/bT1Do3GFqJu9pHtr w3plV5eaox5Lhcc4OyaRipl7NSwH5fziDmoBYwG3VWCPGCr47S9z0MP8JTZU91wO7+1t 5XFA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=guNOzgPG; 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-bluetooth+bounces-2582-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-2582-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id k8-20020a056e0205a800b0036675b8fcb5si3137821ils.82.2024.03.18.06.01.09 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Mar 2024 06:01:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth+bounces-2582-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=guNOzgPG; 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-bluetooth+bounces-2582-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-2582-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 2834C2823EB for ; Mon, 18 Mar 2024 13:01:09 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B2A33383BC; Mon, 18 Mar 2024 13:00:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="guNOzgPG" X-Original-To: linux-bluetooth@vger.kernel.org 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 894DA37141 for ; Mon, 18 Mar 2024 13:00:53 +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=1710766855; cv=none; b=Y8DeMdgLlqZjozC85TxNHxPZEz9KccLnDC2J43FWSwWGG23+QbClKx2FPWXXk7ePwQXB+Qjv0PQK4jRnqsz11UHmh/zKj7ZtI9GLo84JTtYUiz2ubTlXPyJGn2msR1q1xLhsIHZoQ+KbiMvzxPF76siSvJsnLr6EIX1ba443lnE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710766855; c=relaxed/simple; bh=abNTLKYcLXIhe2eOSU6DyOpFwTK4BPqk/0FE1JzWnEQ=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=nE/RoqL9z0KzwVsnzJ6iMTy70QRAuEOQrRVRDBMqqNbdjwRaT1NzRXBT/98iOG0u+4nT5dgk5DggSv7iLHIwqhAYR4NXIfOm6EeYEsfUP4LB20YrTsMzgTv3RM6bWc61MBPZ6hd3/pZWstro6lV0xu2HXfBE7ehn8Z9MiQWkv6o= 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=guNOzgPG; 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-dcbc00f6c04so3654447276.3 for ; Mon, 18 Mar 2024 06:00:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1710766852; x=1711371652; 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=krtW4aUuwrjQ2jkX8A4jBdsmWsZ29REGKZPPhdTh9uc=; b=guNOzgPGHeiyycfe5bqDTRCmhhmnzjQVZ21JIJnG+IdNfTFILcG6WbmBcWnYwHg3dk QcnRhwO27DMW/DFy4bCUQYqPpQElRSt6/Baq8IjYSx1iDiiwWZ5fejxRfd+B/CCLVKz5 2CJSZ5IFz3xDMNS5+VbDD15FcNP8CuZBtAn0+3tZ9Ad2I65nhDHA0oHgvVoGqkcW8XwE ehDTgkvHvzE8GI6DA0Dgidf3jt7D9lRs6C5No2H2IhA2UxAHxvnDi9TXwT4qekPdKOVU lwWWG2c23SUjzg53W75uUzPXlOIJevBw9+8Pa4/shbVfkv3Xy05uyQqG03Treuq/R5Cy gNqQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710766852; x=1711371652; 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=krtW4aUuwrjQ2jkX8A4jBdsmWsZ29REGKZPPhdTh9uc=; b=ZyXI2qYZm7cuajHrt5NWMix3xYIj7Ijjf+A7WEP4gPtvvoDtqFU/sb7qpH9N9apnqF JoPOzWgQI55fh1/8hvagLFvcwYrLodpeLVPcq/hkCCjPw7cOmYnKfaAe7Mip8v4Aqs1B wHnLkNcjBh2lVtyGgqAc0RVfclyc+I8LaCZPA+E4ePUsPCOszXtiZLrZuVJX1aGDkwkq VD6nVCTjGG6C41EGOHfsVbqHTsiJZWImG7qP0j4qi94ZNLJlHVHUrToSjt/4SBrtR6+K HuB4gk65ratDBUrvqIC/HBZ2YZjIRiErHl/NK7NtCKxxmFC6Ji6X/RVUdMz8/HAWzprp 6YMg== X-Forwarded-Encrypted: i=1; AJvYcCWLjCSRes/xi1W7kHhZBFZhGRxJROz9xipOK24pjzBBGACgPo5AKztVkjd6SslGTWb5tTsYHHcoec6jznqtPnAFZdgNHeziDv6Rw8BQtHle X-Gm-Message-State: AOJu0Yy661gRGoMS4sRjgM+WwRnbEj7X2IxAVjl5ggi0UVMGqPoD9iyo CLuIyGutB7fChjmcMl/mFC3NLvhE9Hpk/TEM7wWsnmbMqvh6eBNxtQDWaJGss27YznKzR8DNjrn qx9wFsNOklsmTUvzOeq9U50Y9G7ZJ36t+d30CfA== X-Received: by 2002:a5b:845:0:b0:dcc:96db:fc0d with SMTP id v5-20020a5b0845000000b00dcc96dbfc0dmr6407441ybq.25.1710766851867; Mon, 18 Mar 2024 06:00:51 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-bluetooth@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: <20240318110855.31954-2-johan+linaro@kernel.org> From: Dmitry Baryshkov Date: Mon, 18 Mar 2024 15:00:40 +0200 Message-ID: Subject: Re: [PATCH v2 1/4] dt-bindings: bluetooth: add new wcn3991 compatible to fix bd_addr To: Johan Hovold Cc: 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 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. > > Signed-off-by: Johan Hovold > --- > .../net/bluetooth/qualcomm-bluetooth.yaml | 29 +++++++++++-------- > 1 file changed, 17 insertions(+), 12 deletions(-) > > diff --git a/Documentation/devicetree/bindings/net/bluetooth/qualcomm-bluetooth.yaml b/Documentation/devicetree/bindings/net/bluetooth/qualcomm-bluetooth.yaml > index eba2f3026ab0..b6fce6d02138 100644 > --- a/Documentation/devicetree/bindings/net/bluetooth/qualcomm-bluetooth.yaml > +++ b/Documentation/devicetree/bindings/net/bluetooth/qualcomm-bluetooth.yaml > @@ -15,18 +15,22 @@ description: > > properties: > compatible: > - enum: > - - qcom,qca2066-bt > - - qcom,qca6174-bt > - - qcom,qca9377-bt > - - qcom,wcn3988-bt > - - qcom,wcn3990-bt > - - qcom,wcn3991-bt > - - qcom,wcn3998-bt > - - qcom,qca6390-bt > - - qcom,wcn6750-bt > - - qcom,wcn6855-bt > - - qcom,wcn7850-bt > + oneOf: > + - enum: > + - qcom,qca2066-bt > + - qcom,qca6174-bt > + - qcom,qca9377-bt > + - qcom,wcn3988-bt > + - qcom,wcn3990-bt > + - qcom,wcn3991-bt-bdaddr-le 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. > + - qcom,wcn3998-bt > + - qcom,qca6390-bt > + - qcom,wcn6750-bt > + - qcom,wcn6855-bt > + - qcom,wcn7850-bt > + - enum: > + - qcom,wcn3991-bt > + deprecated: true > > enable-gpios: > maxItems: 1 > @@ -122,6 +126,7 @@ allOf: > - qcom,wcn3988-bt > - qcom,wcn3990-bt > - qcom,wcn3991-bt > + - qcom,wcn3991-bt-bdaddr-le > - qcom,wcn3998-bt > then: > required: > -- > 2.43.2 > > -- With best wishes Dmitry