Received: by 2002:ab2:620c:0:b0:1ef:ffd0:ce49 with SMTP id o12csp1008071lqt; Tue, 19 Mar 2024 10:02:53 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXup/7BAwnHCiDA77F+ETFiEd8fdQTjB2+5nW9eLlWCWLRUBLlvhu4dTZ90w58/A1X+qWCHtuRqNybxiNzPtWdEWyRSnA2Yyf7m+i6SHA== X-Google-Smtp-Source: AGHT+IEtv95xxBdlr083mTdbRdVEZRdeauXo4VBDdnv48hHPKQwSovC6Q8r6tVa/i/vkaa7t3zkI X-Received: by 2002:a05:6214:702:b0:691:57c4:b918 with SMTP id c2-20020a056214070200b0069157c4b918mr2991271qvz.37.1710867773237; Tue, 19 Mar 2024 10:02:53 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710867773; cv=pass; d=google.com; s=arc-20160816; b=IuSFpt+3KaEtsqlp3j+v7F4ZOl5gbAd730vZTdffxRs5yL6jNB9QzPKgPyS/hdXuqX fyoYToyVfDX7IkVLulyXQEu98T2/vEfQ3U/mO39zHTxHavByqVdDGylAbOBls9CPGK8P mYkAZ+R8G0B5CDMCnrXZ5NpiHSbgIx5rFWUrMkWSD3DFXCu6IYtlufwSnwXQYT5ditNY VGwXvNWug69y4gPXoocc/IJMcDTRq1kKAW5ISTp5aYw0cg27B4FZaw2UaL3CyRtwECBV VBDUUO6Q6T+1WgjcC1KX4F0yLK5B7WI639bAnPxzh9n/4YvejSB7QqofuIfC4BXQnsEg ZLZw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=fSJayiOdnOskGqQNRA5Szr6q3i+a3h1/Mm928Gh7jmc=; fh=NdwACt1Ca1UrCCh459XUkVG6OQ4Iw/5llVqNmtQJeUk=; b=H0AxmP+70MbwTWpFrTJaGZFiuY3cvx2AzJlxzjXm1WcWedLy7E7eVi2OvMmJ5DxtUr 33awb8dJIH0yKy+FUE5pHRYy0+UGkqy/ICiNVX/wK+FPHrLR0CewTQYsSYiJpOoWaUqp aB3kEGzUZdxuteRimtVEUcRa5mghl3BXB6pavwP0s22fiE8MVEw3kvjy80FO7g9rvxvi 0QU1TTCDvM6CSQ3S8j7Kv88hK9RbxIXYHPGwclTHjO36O3QjupNu+mKOMhe1N86VWZuT pCjiQSLI2vRIOIsG6etx51VB8tmPEDuqsFrcFa6FX4NTeHtg+Qzt6ImO9JI9uezSQBtT N/DQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="mbbe0BL/"; 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-2632-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-2632-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.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 m11-20020a0562141bcb00b0068fff3e72ccsi10719921qvc.372.2024.03.19.10.02.52 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Mar 2024 10:02:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth+bounces-2632-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=@linaro.org header.s=google header.b="mbbe0BL/"; 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-2632-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-2632-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id C19351C2243C for ; Tue, 19 Mar 2024 17:02:52 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 07496200B7; Tue, 19 Mar 2024 17:02:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="mbbe0BL/" X-Original-To: linux-bluetooth@vger.kernel.org Received: from mail-yb1-f171.google.com (mail-yb1-f171.google.com [209.85.219.171]) (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 B45AC14A84 for ; Tue, 19 Mar 2024 17:02:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.171 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710867732; cv=none; b=sNhz7DpzZKU4PR2W6VzbunRlQ53jKcM2vn8nNZBH3d7euzJsEOWaQ59ymlrhfMxZ5b1S+4j83qjw1EyAebVg68/B4kNBaeJAuLoU3E3z+jEk60yH17Xx60J0Yxq+T6bwunOSckcZDshAssDu00tePj6/WmzxOlNVC2TZPIH5hBY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710867732; c=relaxed/simple; bh=Q5lgL/UYUi0wBc5ljNWF/sNTHnsGWvNZaNSG+iCsiG0=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=CxnTsUfAye4fy0NeQaxRVsKxTLF08d+Ci4HA63Nwm9T35sgvgsGWSKVxcmWGxcKcLCMNauhlT6L2oflX6+cfZGMrcPkSmmEfDRtzFn0DnwB1WmXXi3PUxYO9om77zlxeZZHdwokzOrsTBEHTD4aT3A0AZVwYbZafRdTlN0RByDk= 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=mbbe0BL/; arc=none smtp.client-ip=209.85.219.171 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-f171.google.com with SMTP id 3f1490d57ef6-dc6d9a8815fso5548078276.3 for ; Tue, 19 Mar 2024 10:02:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1710867730; x=1711472530; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=fSJayiOdnOskGqQNRA5Szr6q3i+a3h1/Mm928Gh7jmc=; b=mbbe0BL/+Zu7RgS85t25vJp/cl2gd8/Cd7oVK6wSSePI6BEGSQZm3CpKGzfbZUOGa+ Z/a9TTqeMP0qHaWL/fA5ZqAv08KzRYCkqutl0zQ5n4nthBJsgh7WCWVPSSTdC4BbJQJX ollUsi00VsSuPuhyDIw86vBbC/n8AwfO4yBhz1S/cpyZNFMhjQGULr24HHTK9E1Yyzs6 ebyoIrVjsriIhRwTuW9k/csgvssLiDtSXiWzbEmo8uu+1p/laJSjr9HuQgP9bFKWbRqA lZFIYQHgMN/LZcblY5/KmUURJcGPPcCrOZmoE/RqnKftl9pXzcaF0RBZ5woiF5qJ/Va4 p5LA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710867730; x=1711472530; h=content-transfer-encoding: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=fSJayiOdnOskGqQNRA5Szr6q3i+a3h1/Mm928Gh7jmc=; b=r9R2N95x2Lda+SheVAK95JRh7VnZWJlGis+8Ck9d9+OYgVxZW3XXyZlpK4eQyMq65+ haO1lUQBpM2LI1a3IflT6i7s/z1lAnsKwL/oXlD9euXElXq5XbhS1i3UDc35qvwwnYVN H3W9aOXoeCsOEk+M8KYNW0meNTemAo7jKGMQwEzjNbbEuJtd0Y5bdm2UL0bld4LFsBnY kE8QZw9S8qhtV36pWK5qvLCzVmkM4wbhUWcO6g96rMPmd0h9D2RPSAG2HV7fFIq5QenR fpmS31kAH7VlucS4LoMN1tyqWKmpO9Z929G5WYDBiNv6nr1ubPJBN8oSJyDNfnfR/6GU P6Jw== X-Forwarded-Encrypted: i=1; AJvYcCUAfz4Jk+rIJ3W2cFI6cjMZt6CzAbU1xlm+wpqLo8mb6Y4p/kLHHMtOPsUbdvz2b9OjDYiX/sWxlxWhzY2ARQWX7nBGRIu/xU+Mjcohal/O X-Gm-Message-State: AOJu0YxBhZq0DWXLHMyJxEPqw6Tis8q4QTe022zrGoRYKJET0ejruKfO oAij/tFUfoKxtBCR68zZU3C+tP06LQjozwfi7KQszbZHyY2eJJdaGDBWAOEx0DT9yVfZzSua6FX tco1/ii93Io1amwiZ2siGxVV2V+xK7fgAF5sq1g== X-Received: by 2002:a25:8503:0:b0:dcf:47bb:59f8 with SMTP id w3-20020a258503000000b00dcf47bb59f8mr2412752ybk.28.1710867729606; Tue, 19 Mar 2024 10:02:09 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-bluetooth@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240319152926.1288-1-johan+linaro@kernel.org> <20240319152926.1288-3-johan+linaro@kernel.org> In-Reply-To: From: Dmitry Baryshkov Date: Tue, 19 Mar 2024 19:01:57 +0200 Message-ID: Subject: Re: [PATCH v3 2/5] Bluetooth: add quirk for broken address properties To: Johan Hovold Cc: Doug Anderson , Johan Hovold , Marcel Holtmann , Luiz Augusto von Dentz , Bjorn Andersson , Rob Herring , Krzysztof Kozlowski , Conor Dooley , cros-qcom-dts-watchers@chromium.org, Konrad Dybcio , Johan Hedberg , Balakrishna Godavarthi , Matthias Kaehlcke , Rocky Liao , linux-bluetooth@vger.kernel.org, netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, stable@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Tue, 19 Mar 2024 at 18:26, Johan Hovold wrote: > > On Tue, Mar 19, 2024 at 09:10:23AM -0700, Doug Anderson wrote: > > On Tue, Mar 19, 2024 at 8:29=E2=80=AFAM Johan Hovold wrote: > > > > + /* When this quirk is set, the Bluetooth Device Address provi= ded by > > > + * the 'local-bd-address' fwnode property is incorrectly spec= ified in > > > + * big-endian order. > > > + * > > > + * This quirk can be set before hci_register_dev is called or > > > + * during the hdev->setup vendor callback. > > > + */ > > > + HCI_QUIRK_BDADDR_PROPERTY_BROKEN, > > > > Like with the binding, I feel like > > "HCI_QUIRK_BDADDR_PROPERTY_BACKWARDS" or > > "HCI_QUIRK_BDADDR_PROPERTY_SWAPPED" would be more documenting but I > > don't feel strongly. > > So, same reasoning here, this it not some quirk that people should go > around setting without first considering to fix their boot firmware. The address can be considered broken in many different ways. The name should still be descriptive enough. If you want to specify that it is a broken behaviour, please consider something like BROKEN_BE. --=20 With best wishes Dmitry