Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp86202pxb; Thu, 30 Sep 2021 01:32:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy/GB6f0LCOtUzSFzYJ/Ozhspwgjca5reeGDatb7V+PwyaG5/jTitN0M01iMwWVoFKivVWU X-Received: by 2002:a17:906:2405:: with SMTP id z5mr5188721eja.170.1632990755681; Thu, 30 Sep 2021 01:32:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632990755; cv=none; d=google.com; s=arc-20160816; b=sp6+hLqjIuhrmGqLxwRd3CSlgHvp/pTU3PspTN4gsoqSYRwLsOz0kLzEDh7mTnG+2/ NIw9e9MHvz4tT3/IfiDAPGCl3tEL6ME3hEqon0GuP/JO953oU894U/NuRJg+Qg/29fI+ XCgkSEjHfAYNMbjujBoCA0ci2HG+iZ4ihtbufg5Ds/3XQpq4IVR/hQDzaj9mXpJb7ITD LEUtGEwsf+X16CX8tQZdkYbv13XwsLCHt7pWjDw/RRtO20z7DundROxLVPR13RFEJ256 YMtDl10f7N5K1cXA3YU49PZOXtYzWUpU8fdw3sK6rPI6Nu0dxQL50aU2ALmNojDZlkJM BvZg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=U16PvljO1ESNvMQiUO0vtCzHz6J7TXZcsjfYT9JBd9A=; b=TTbpYeO5CCwP0jEjkaHqkqrOl8W5KRWJn24b+FIZXQ3SWgH7yspzC2e219dxMCHv51 oFOnRGkt5iSKHZtjzXH5ayokpOKro6wls/OsO2QvdO6SttshPJH000PBspkR/wXyQSQ9 41sGaS389ctXMSmjUc6bUeNiE6sJLJ/t4oWXHcsEQKRzQPW9N3MlvzwF3C4YUBxunAa2 Yj9wNSHdiXb1u54GgSQWRvppnJQINU7kIQ5g0ye+irTTzIcJzu9oAYIN2P8YkOFTPIMo d6I9YBytWrk+YVIbSOqI/XOhGvNCBQOvfz1HMXVGBaDKLjcuvCaCL/QPbGLk5E+W/e6O H+4Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=0W7IHG7x; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a11si2773621edf.418.2021.09.30.01.31.53; Thu, 30 Sep 2021 01:32:35 -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; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=0W7IHG7x; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1348399AbhI3GxV (ORCPT + 99 others); Thu, 30 Sep 2021 02:53:21 -0400 Received: from mail.kernel.org ([198.145.29.99]:37662 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1348202AbhI3GxR (ORCPT ); Thu, 30 Sep 2021 02:53:17 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 07777617E4; Thu, 30 Sep 2021 06:51:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1632984688; bh=Hb1Co39zPLbxtxrMbI7Nt3+wtbBdKyHzIMFwjyUn9tQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=0W7IHG7xlcjunKjtV/xGpwghbFzpMfVXqBg4pxqtNgkhOcB/K6DE0ua8G3/yLnZID AE22VNYkqvvVPp6gsbr4V7x5v/F5DD6Z+OpC0Gjy2JJrIsXSyVycgCo+24mBvJONM1 o30oiMZw+5XfpNt1KW3ejUMa5H/Bdtb25wsjHag8= Date: Thu, 30 Sep 2021 08:51:20 +0200 From: Greg KH To: Orlando Chamberlain Cc: danielwinkler@google.com, johan.hedberg@intel.com, linux-bluetooth@vger.kernel.org, marcel@holtmann.org, regressions@lists.linux.dev, sonnysasaka@chromium.org Subject: Re: [regression] Bluetooth: Query LE tx power on startup broke Bluetooth on MacBookPro16,1 Message-ID: References: <4970a940-211b-25d6-edab-21a815313954@protonmail.com> <20210930063106.19881-1-redecorating@protonmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210930063106.19881-1-redecorating@protonmail.com> Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org On Thu, Sep 30, 2021 at 06:32:57AM +0000, Orlando Chamberlain wrote: > I've realised that thunderbird has added empty lines between each line in my > previous email, but here's the same patch I sent before that adds a quirk > disabling querying LE tx power for affected controllers, but this time > without the aforementioned extra empty lines (I'm using git send-email now). > > --- > drivers/bluetooth/btbcm.c | 4 ++++ > include/net/bluetooth/hci.h | 9 +++++++++ > net/bluetooth/hci_core.c | 3 ++- > 3 files changed, 15 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); > > /* Read Controller Features */ > diff --git a/include/net/bluetooth/hci.h b/include/net/bluetooth/hci.h > index b80415011dcd..9ce46cb8564d 100644 > --- a/include/net/bluetooth/hci.h > +++ b/include/net/bluetooth/hci.h > @@ -246,6 +246,15 @@ enum { > * HCI after resume. > */ > HCI_QUIRK_NO_SUSPEND_NOTIFIER, > + > + /* > + * When this quirk is set, LE tx power is not queried on startup > + * and the min/max tx power values default to HCI_TX_POWER_INVALID. > + * > + * This quirk can be set before hci_register_dev is called or > + * during the hdev->setup vendor callback. > + */ > + HCI_QUIRK_BROKEN_READ_TRANSMIT_POWER, > }; > > /* HCI device flags */ > diff --git a/net/bluetooth/hci_core.c b/net/bluetooth/hci_core.c > index 8a47a3017d61..9a23fe7c8d67 100644 > --- a/net/bluetooth/hci_core.c > +++ b/net/bluetooth/hci_core.c > @@ -742,7 +742,8 @@ static int hci_init3_req(struct hci_request *req, unsigned long opt) > hci_req_add(req, HCI_OP_LE_READ_ADV_TX_POWER, 0, NULL); > } > > - if (hdev->commands[38] & 0x80) { > + if (hdev->commands[38] & 0x80 && > + !test_bit(HCI_QUIRK_BROKEN_READ_TRANSMIT_POWER, &hdev->quirks)) { > /* Read LE Min/Max Tx Power*/ > hci_req_add(req, HCI_OP_LE_READ_TRANSMIT_POWER, > 0, NULL); > -- > 2.33.0 > > Hi, This is the friendly patch-bot of Greg Kroah-Hartman. You have sent him a patch that has triggered this response. He used to manually respond to these common problems, but in order to save his sanity (he kept writing the same thing over and over, yet to different people), I was created. Hopefully you will not take offence and will fix the problem in your patch and resubmit it so that it can be accepted into the Linux kernel tree. You are receiving this message because of the following common error(s) as indicated below: - Your patch does not have a Signed-off-by: line. Please read the kernel file, Documentation/SubmittingPatches and resend it after adding that line. Note, the line needs to be in the body of the email, before the patch, not at the bottom of the patch or in the email signature. If you wish to discuss this problem further, or you have questions about how to resolve this issue, please feel free to respond to this email and Greg will reply once he has dug out from the pending patches received from other developers. thanks, greg k-h's patch email bot