Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp1062309pxb; Fri, 1 Oct 2021 02:37:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzO3kld6fKGxRuZ6lP/LPO0UXW8ueedEhlPizixAHJEKzV8QdsfFOtH8DO4eWhjCAV6gcHe X-Received: by 2002:aa7:848c:0:b0:44b:e544:db91 with SMTP id u12-20020aa7848c000000b0044be544db91mr9992544pfn.73.1633081065837; Fri, 01 Oct 2021 02:37:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633081065; cv=none; d=google.com; s=arc-20160816; b=wsOl5+x32YJyU5OvbQQ0FipJ4PlXAKAwDcPA1WclVRJ7cwduxqsFFNZHTKs4JmtvMX PCtqegblc57WpklqpY7ZbFP6MFChFfiAU6W4CsthpBE1Jag0f0A6JAjt4QJt4eYCNEG6 JWIW5/xUhTxam0Nte+6TImrxCYFxSYJQRB/Sx6gyDsJLg0PT7o4Ew57pH+lvXuj0Einz NpQqjDXzkGlG62bW3aVUl0VCUH78CpAQb50p5nMsBVfODitVsltKv2BHHATsrdD/p/8i 7Mk3GafPyFY9r2qUvVTg6oISksXlnbmWq8MAQW42GVKdLfgGxrFipmGQPdfdhpA1qVZM RDCw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:references:message-id :content-transfer-encoding:cc:date:in-reply-to:from:subject :mime-version; bh=JzybZfEjWke2JtbQkGo6OXQL5u3o8KaF8sQRjNBs99Q=; b=blCctNUjC5d1UHDf3oLXs9xBLShHhp2SvDF4Y3By35cV+yIjAqwnVO6at2AxyGUwdm yp6dtEt40v3d80NM8+T2Ug1fJpzBClAFMm4LAjEU0qas0f9Dprivz37w7UTOA+xvMp8E JDbqNXLnsE18Vv0pw5QerRY2TzShJOFsqMxrG41cf3BPNbCiYpiLXCsGs/ppOgYObo43 BwrxmkrkkmIZ2pJTT52vmIToS0OZoSI7LQIjznEN6fxv0g3bvZ0Y1ZCeuakPTC7heFqV DR2qLWzi6tirenhCkoAAesj+MvTsomgcvwmGm1XtQP9ftZCxbLZdTQTZ6zRYzADixLfy 0CHA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z12si6662377pgp.539.2021.10.01.02.37.12; Fri, 01 Oct 2021 02:37:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1352958AbhJAJhC convert rfc822-to-8bit (ORCPT + 99 others); Fri, 1 Oct 2021 05:37:02 -0400 Received: from coyote.holtmann.net ([212.227.132.17]:56932 "EHLO mail.holtmann.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229906AbhJAJhC (ORCPT ); Fri, 1 Oct 2021 05:37:02 -0400 Received: from smtpclient.apple (62-134-92-74.business.static.de.bt.net [62.134.92.74]) by mail.holtmann.org (Postfix) with ESMTPSA id D0BFBCED29; Fri, 1 Oct 2021 11:35:16 +0200 (CEST) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.120.0.1.13\)) Subject: Re: [PATCHv2] Bluetooth: quirk disabling LE Read Transmit Power From: Marcel Holtmann In-Reply-To: <20211001083412.3078-1-redecorating@protonmail.com> Date: Fri, 1 Oct 2021 11:35:16 +0200 Cc: danielwinkler@google.com, Johan Hedberg , linux-bluetooth@vger.kernel.org, linux-kernel@vger.kernel.org, regressions@lists.linux.dev, sonnysasaka@chromium.org Content-Transfer-Encoding: 8BIT Message-Id: <1D2217A9-EA73-4D93-8D0B-5BC2718D4788@holtmann.org> References: <4970a940-211b-25d6-edab-21a815313954@protonmail.com> <20210930063106.19881-1-redecorating@protonmail.com> <20210930141256.19943-1-redecorating@protonmail.com> <275acce4-9eab-9cba-7145-5a75a69ca530@protonmail.com> <20211001083412.3078-1-redecorating@protonmail.com> To: Orlando Chamberlain X-Mailer: Apple Mail (2.3654.120.0.1.13) Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org Hi Orlando, > The LE Read Transmit Power command is Advertised on some Broadcom > controlers, but not supported. Using this command breaks Bluetooth > on the MacBookPro16,1 and iMac20,1. Added a quirk disabling LE Read > Transmit Power for these devices, based off their common chip id 150. > > Link: https://lore.kernel.org/r/4970a940-211b-25d6-edab-21a815313954@protonmail.com > Signed-off-by: Orlando Chamberlain > --- > v1->v2: Clarified quirk description > > drivers/bluetooth/btbcm.c | 4 ++++ > include/net/bluetooth/hci.h | 11 +++++++++++ > net/bluetooth/hci_core.c | 3 ++- > 3 files changed, 17 insertions(+), 1 deletion(-) > > diff --git a/drivers/bluetooth/btbcm.c b/drivers/bluetooth/btbcm.c > index e4182acee488..4ecc50d93107 100644 > --- a/drivers/bluetooth/btbcm.c > +++ b/drivers/bluetooth/btbcm.c > @@ -353,6 +353,10 @@ static int btbcm_read_info(struct hci_dev *hdev) > return PTR_ERR(skb); > > bt_dev_info(hdev, "BCM: chip id %u", skb->data[1]); > + > + if (skb->data[1] == 150) > + set_bit(HCI_QUIRK_BROKEN_READ_TRANSMIT_POWER, &hdev->quirks); > + > kfree_skb(skb); I would really prefer to do that via the ACPI table matching in hci_bcm.c and not via some magic chip id check. We actually don’t know how Broadcom assigns their chip ids. Regards Marcel