From patchwork Mon Nov 29 07:27:28 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Aditya Garg X-Patchwork-Id: 516952 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7F4CDC433F5 for ; Mon, 29 Nov 2021 07:29:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238957AbhK2Hcy (ORCPT ); Mon, 29 Nov 2021 02:32:54 -0500 Received: from mail-ma1ind01olkn0161.outbound.protection.outlook.com ([104.47.100.161]:39472 "EHLO IND01-MA1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S231967AbhK2Hav (ORCPT ); Mon, 29 Nov 2021 02:30:51 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=mmOx1WrpWq2VmD529wy1wfD4fTR6ctKVDFGAFOP1rOdRZWeHq65DtE+cQNiVh9KDdHu8e4QGszSbnEa2cxkR+ntVQtMW8d59kvbMYSHqEIbOpgBC9UulHYlfoXl/qXcZc+fKCe8/WoL/1PREwhRdfTkKQYVIyIVaOPNTdSeDKZL2tkXs5bYCCEZBsIIqJbOgt5M5jJt84BJcwkkquPgBvwDQfoSUBFNO0i0tT4Mxw2dEsz5FZtA6+qHr/UjpsL3uZXIyr7K9//dVg+pDswnwc1ZomcUzd4luHJlsw0aO/e97I7gPDnaZgtzt5W1wgen/cReIvl2LYBOZRyYZdy7b2w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=ezaD05mN2CAN+de0npTH+mEkoByuVYhbgVzuxiWVpuA=; b=Tr9iHTgpLVwyj54ph61XHcIc9BW2uxi6voZKbvnqc7S2aojRigFbqKrdmJAijgANfI5hRdc9HACJi5e4hKB+ewnBZKMfAYH11oZzRGD299XyYJ1sBAk6fCjJKyy/KGW2sJ8yLjCaH/cN2t3t1FkxomkZLv/sE6IB3ZgkGwnw3ux7+UvtHW1t8f24LvY98PK23zFO9DEMst9ZN7T9Z5ehqzEnqN30g7H7uR87zQHThXIOTk8wi7rb3X8kO6iUe3/cDoXZfYBuaxiwJxl5jSUEAj7sCdLut6a6pBwxk1bw/YJKyaVRSqDyXxAIdeCHv3kxaVPjgrUnigs+JqEwpEiR5g== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=live.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ezaD05mN2CAN+de0npTH+mEkoByuVYhbgVzuxiWVpuA=; b=uaZbGQmC6EPuvzf50ieTlkgbfsTpQyR/VtxP+ZdKupcEbmmJp9qnBVfEpZJeD4TYa0aSLsyMhyoLfP+HtK6xGoNV/1LdGwCvHRPBmKuRFoDlkCjGoiwFDrzZ0gY53oshzrEzMr6ybuO9JNmym+emSlnOHWLmDPY9k81lHHdswTah1Nqm+3xIGiajGmh51RPJ06upPq8cSVaMzRU26bZtmUPJYT4iKcnQ4BEKmo/jsm+vOn6+UbRXzq/W0y3t5k57SijyQ7ggdRehNfjHnKreJfirabOa/TZgOnvvKYoQPM7BbRh5gCjAAr6ZFCw0IK2CzA60QfAH9070CZScLX7qmw== Received: from PNZPR01MB4415.INDPRD01.PROD.OUTLOOK.COM (2603:1096:c01:1b::13) by PNZPR01MB5261.INDPRD01.PROD.OUTLOOK.COM (2603:1096:c01:3f::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4734.23; Mon, 29 Nov 2021 07:27:28 +0000 Received: from PNZPR01MB4415.INDPRD01.PROD.OUTLOOK.COM ([fe80::7ca6:9165:19ec:4cd7]) by PNZPR01MB4415.INDPRD01.PROD.OUTLOOK.COM ([fe80::7ca6:9165:19ec:4cd7%5]) with mapi id 15.20.4734.024; Mon, 29 Nov 2021 07:27:28 +0000 From: Aditya Garg To: Thorsten Leemhuis CC: Marcel Holtmann , Orlando Chamberlain , Daniel Winkler , Greg KH , Johan Hedberg , "linux-bluetooth@vger.kernel.org" , "linux-kernel@vger.kernel.org" , Luiz Augusto von Dentz , "regressions@lists.linux.dev" , "sonnysasaka@chromium.org" , "stable@vger.kernel.org" Subject: [PATCH 2/6] btbcm: disable read tx power for MacBook Pro 16,1 (16 inch, 2019) Thread-Topic: [PATCH 2/6] btbcm: disable read tx power for MacBook Pro 16,1 (16 inch, 2019) Thread-Index: AQHX5PKQ779Jt2FqjECoFOtr+7YrOA== Date: Mon, 29 Nov 2021 07:27:28 +0000 Message-ID: <5B9FF471-42DD-44DA-A9CE-0A83BA7A4212@live.com> References: <20211001083412.3078-1-redecorating@protonmail.com> <70a875d0-7162-d149-dbc1-c2f5e1a8e701@leemhuis.info> <20211116090128.17546-1-redecorating@protonmail.com> <3B8E16FA-97BF-40E5-9149-BBC3E2A245FE@live.com> <52DEDC31-EEB2-4F39-905F-D5E3F2BBD6C0@live.com> <8919a36b-e485-500a-2722-529ffa0d2598@leemhuis.info> <20211117124717.12352-1-redecorating@protonmail.com> <40550C00-4EE5-480F-AFD4-A2ACA01F9DBB@live.com> <332a19f1-30f0-7058-ac18-c21cf78759bb@leemhuis.info> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-messagesentrepresentingtype: 1 x-tmn: [4P0Q6Gbsj2O8DBiibN+tlVQWUPcOp2UyxPY6nfhoH0aHmXuolZbSqORFHA0mlItf] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: b610a320-e3d2-4c5e-4a02-08d9b309b2f6 x-ms-traffictypediagnostic: PNZPR01MB5261: x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: 15U7wnQAUaC4hfOMlL/NXjBEMDWx1exmNeTgbglOcMLHx9aRkXbhNW+wmt03ldEFUX+8FFptUXcIlybOQ2pX7mPQ6Nu0rCSE98no+yJE85kZZxsNPuAIh6hj0YXSDFHS9fkHgjw3JpD1RHoK3Lyd2wRcwp1EeQ+aM1CCSXfGrJQzEpjjMsK3FlZC4mCcj06OoKE5t1P2mdtQY12m6krJfSawDxqZKKmHWi5+/J/lqOtnTm8JF6HF5LyQ/O74/yx1Gy93G9dX/DUd7Vjd398bzIcILTtsVnxhVDB03kt6sfxCrW/e5xPIgwcXtJynydZ8pKqD6QoM/ocNGetkLSVZCg5/x0OrKI086J1KbWJwbZkLj9mUM9cUgsojryM7k5l2M1nB3Ll0NBlc6JF4mA9E1E9EDFmTkEoY0R/HOS8cV92KrFMBrHmYW6jhpouRVKDZThp5lQbObp9/KQKRR8/vuJatTtxBdrvR02/z+RND01H486Vc2d+9UU9cYIVLyDfZ/qtsAEDLdNcwsAkl+i7/hwnYnHFCT24kEVwUl1R4u2Ux/RxBPqFHSdeYnNdbXfRUH4tnbPcc+MSHusuq6FgRCg== x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: mm2WhZWCBhVTRed0nmnLG2hEJdKiZ+XRgvPIhNwaVYZxfRkq4GKN5UFlLGdnW0vf0Q+L4iDilSg3hTe5Wlc0bYqt5YoyAYbQFE0+5XBXcW8P+I+qhPLFcJQBqkcNB3/MV1zwVgSsFXU4bRKTbVfBhXlfchpvWVrT50BxFGAwfQcu9ndR78Bx0pFrQg8eUQBmHOrjtViMrkmpIEmWzW6JxZhfP2Mrq8Tgq5h0/S7pWdPgNerD5IGBcSzGQUkrELeCbf0qcb1O/b+4lwuqjbRPTorLWmFfshyw2kTqGESsv61VJOL44hN8rYw+GmWQY+p8TwpMXOVSSicM8kXTNTrDa3aE5nTvqJv9tMV8BEHanpSdu7PjYYwShtFLM5qfEJ2oarJAZdXaQznKyXAn329y9yjCFh+t2Ql4Y/pBYjeSjFIi9YnWQQbVuqQ8MO4K1SQOFmtH9IYdFYuXXl1klFvAUpaan/DwFQCstjeq5leAHsdhNOudEEl1cYbtp2Ahx+vWZJo8TmDVK302SbfSxoRsYkGL6G/FxJGb8oNVCpveHvdd4SwH6A7ILiXdy7c4pYayyP44k/4LG5rvNR+gJs5HnBrFd8SE9HEHkdw33Ha5WeNBvJeqBga6V37eWGlbljaB7ze+NxEP/sjwNd2gDMn2JM1WugUGdYwag7cFrCjQCmMzKT365wo0n6ETFlW08TFPmGy9c6k6uimeComGmhIVDsJB9B3p4peoW64TredTHGyyqqQGVAGSwszDH5dnLkBPjdAJEfyP+vqQeyZrYUoBPg== Content-ID: MIME-Version: 1.0 X-OriginatorOrg: sct-15-20-3174-20-msonline-outlook-a1a1a.templateTenant X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: PNZPR01MB4415.INDPRD01.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-Network-Message-Id: b610a320-e3d2-4c5e-4a02-08d9b309b2f6 X-MS-Exchange-CrossTenant-originalarrivaltime: 29 Nov 2021 07:27:28.7919 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-rms-persistedconsumerorg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: PNZPR01MB5261 Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org From: Aditya Garg Bluetooth on Apple MacBook Pro 16,1 is unable to start due to LE Min/Max Tx Power being queried on startup. Add a DMI based quirk so that it is disabled. Signed-off-by: Aditya Garg Tested-by: Aditya Garg --- drivers/bluetooth/btbcm.c | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/drivers/bluetooth/btbcm.c b/drivers/bluetooth/btbcm.c index e4182acee488c5..c1b0ca63880a68 100644 --- a/drivers/bluetooth/btbcm.c +++ b/drivers/bluetooth/btbcm.c @@ -8,6 +8,7 @@ #include #include +#include #include #include @@ -343,9 +344,23 @@ static struct sk_buff *btbcm_read_usb_product(struct hci_dev *hdev) return skb; } +static const struct dmi_system_id disable_broken_read_transmit_power[] = { + { + /* Match for Apple MacBook Pro 16,1 which needs + * Read LE Min/Max Tx Power to be disabled. + */ + .matches = { + DMI_MATCH(DMI_BOARD_VENDOR, "Apple Inc."), + DMI_MATCH(DMI_PRODUCT_NAME, "MacBookPro16,1"), + }, + }, + { } +}; + static int btbcm_read_info(struct hci_dev *hdev) { struct sk_buff *skb; + const struct dmi_system_id *dmi_id; /* Read Verbose Config Version Info */ skb = btbcm_read_verbose_config(hdev); @@ -362,6 +377,11 @@ static int btbcm_read_info(struct hci_dev *hdev) bt_dev_info(hdev, "BCM: features 0x%2.2x", skb->data[1]); kfree_skb(skb); + + /* Read DMI and disable broken Read LE Min/Max Tx Power */ + dmi_id = dmi_first_match(disable_broken_read_transmit_power); + if (dmi_id) + set_bit(HCI_QUIRK_BROKEN_READ_TRANSMIT_POWER, &hdev->quirks); return 0; } From patchwork Mon Nov 29 07:28:51 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Aditya Garg X-Patchwork-Id: 518201 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id C2005C4332F for ; Mon, 29 Nov 2021 07:31:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239961AbhK2Heq (ORCPT ); Mon, 29 Nov 2021 02:34:46 -0500 Received: from mail-ma1ind01olkn0174.outbound.protection.outlook.com ([104.47.100.174]:4648 "EHLO IND01-MA1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S238658AbhK2Hcp (ORCPT ); Mon, 29 Nov 2021 02:32:45 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Y67lBZKFiSmSyr//suhJiPug5JNgeoFSVXVxJ2ENKg1I9BlxXVA/326IKp2Wn7s2OB7oH7HSYzdqonU3UG17LPPBdxO3L7jA7D5/cUQdwHRPv/RKlpKaHVJFeq3go3MGC4/bT981GjbdjgSkiA/gI+UJmyfu/U7C+oG9LI1EuFSehSRJtOXG8Qzs0M1cJgl1pN8Rjc+Mzo2jKdi2KdaEHrfB1IXPApYfHtVRYfUX83iOf3M/e2ZRbJrUa+D1WsA45bpCgVEkf0N5xPyw95DQ+z98Qk5GTb2DFMllctmWtC7tIFGZC7q4e3IhH7E5onZefThwlyhcnMjks6uUr0H//g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=yN+NVdkGOJSqAiMljlZFWIObQ1UxQmA6f1g58EDayyE=; b=iZEJzZV2Uf06aAT9s1JDdifr66qsO25ZCumx+LImSH+Hegc1rA6oxGEl8BiOvyt9NwFyJ7WPW3JNvhVIbZ3Ge/Es5lfTbDAM+sue/M5IgFjE4Ip90SPEa/kC07BQYM5r33WItXFT2k4fhRkXh6Wxm5nTfeeNhsjjC4eWyu4/u56kuOibK7DlSUOjOTcOELW+jEz16xGsnlKenJvjaJ8+OLxmXtNdgx8d+GfnFSfgZ8KhwjQWZr6ivHWChqYHfg8Md//LZXeqzg6FE9tvgjngz82ScptTMqAa8l7dW/LM0Uoe7LCAHSnyUfsw58cNddd7ljhMKgytSYxyGzqbx+MUmQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=live.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=yN+NVdkGOJSqAiMljlZFWIObQ1UxQmA6f1g58EDayyE=; b=ArEoT9rCkGUotztlIAYyKt2evDmeEY+sRtRSOcbR4ibM86hiEYT/1eDgqtsMh310n5ro08YowarIq6QBYHYfvAUqMDsxbLCviyVla5ugTmkqJ3xQgLGNkiirCIjWL9/FsGwZ/o/HQfP9tEFB74It0FYOQo5sL7V0yZrJrIULZ5O2jONBwlzK+2UiiBU/i08+NWIOyN4y7liRPeqjIa6S3y65a0CV/BGueQE5LqaBhnnJKz+IPgJn0jT0OyVagTCF3mypSGxJ3TK9iRfolQksMs51fPAeawT0Jmx9zRyp5DwKNe1XxoKwgYPKe6eH5eYAqphb5SofwHEr3vN6313mrA== Received: from PNZPR01MB4415.INDPRD01.PROD.OUTLOOK.COM (2603:1096:c01:1b::13) by PNZPR01MB5261.INDPRD01.PROD.OUTLOOK.COM (2603:1096:c01:3f::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4734.23; Mon, 29 Nov 2021 07:28:51 +0000 Received: from PNZPR01MB4415.INDPRD01.PROD.OUTLOOK.COM ([fe80::7ca6:9165:19ec:4cd7]) by PNZPR01MB4415.INDPRD01.PROD.OUTLOOK.COM ([fe80::7ca6:9165:19ec:4cd7%5]) with mapi id 15.20.4734.024; Mon, 29 Nov 2021 07:28:51 +0000 From: Aditya Garg To: Thorsten Leemhuis CC: Marcel Holtmann , Orlando Chamberlain , Daniel Winkler , Greg KH , Johan Hedberg , "linux-bluetooth@vger.kernel.org" , "linux-kernel@vger.kernel.org" , Luiz Augusto von Dentz , "regressions@lists.linux.dev" , "sonnysasaka@chromium.org" , "stable@vger.kernel.org" Subject: [PATCH 3/6] btbcm: disable read tx power for MacBook Pro 16,2 (13 inch - 4 Thunderbolt Ports, 2020) Thread-Topic: [PATCH 3/6] btbcm: disable read tx power for MacBook Pro 16,2 (13 inch - 4 Thunderbolt Ports, 2020) Thread-Index: AQHX5PLBYsQtZJ2TqU6r9zLT6x9Z6g== Date: Mon, 29 Nov 2021 07:28:51 +0000 Message-ID: References: <20211001083412.3078-1-redecorating@protonmail.com> <70a875d0-7162-d149-dbc1-c2f5e1a8e701@leemhuis.info> <20211116090128.17546-1-redecorating@protonmail.com> <3B8E16FA-97BF-40E5-9149-BBC3E2A245FE@live.com> <52DEDC31-EEB2-4F39-905F-D5E3F2BBD6C0@live.com> <8919a36b-e485-500a-2722-529ffa0d2598@leemhuis.info> <20211117124717.12352-1-redecorating@protonmail.com> <40550C00-4EE5-480F-AFD4-A2ACA01F9DBB@live.com> <332a19f1-30f0-7058-ac18-c21cf78759bb@leemhuis.info> <5B9FF471-42DD-44DA-A9CE-0A83BA7A4212@live.com> In-Reply-To: <5B9FF471-42DD-44DA-A9CE-0A83BA7A4212@live.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-messagesentrepresentingtype: 1 x-tmn: [96xXC0t0p2tQiDKnts2RHxWM8WHfrfm/PnAgKxo3SpW2N9ahmCQDsgAS1a7tecE5] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: cbb20366-43ae-408c-2ee7-08d9b309e46c x-ms-traffictypediagnostic: PNZPR01MB5261: x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: s3RpPAJQiUYs4BwNa6rppvycBVz4e2ClBQ2aZHDP7CFqxAruWhONuCQ7G/x8iZ70I822vuGFfWljq96IQFfA279kTXD/ZAxFNDNEfOUFhcLYzjyB0ffXSwXGv2h2RUMCG9+Sr5UUCwQMn69rEYULLZT+T1yworh1TJeXHfUdWZiUWq/d0xtlmP7kEzrWPB/d/4sFcIBVSVVd4wnnXgvN48JgIrhwDhrhBvh4bXDEOquvkbY0PrG/Tx5ZVomw1UvAcUR6BQGjLujtkfV7InlYf6Es67mF8cwtD25w1TYsQ9nSHxF/RSh/eprxYB/0DeQYy86mgKpN7UHdh0DGuo39VF/9i3/kY0+03mDoZD1tDpgGEwebm39t+fyDf5gGqoTcbJUqZnPebpugsu9vBN02hU9dxu7M5yEzZjZYTyoXGdHQdVUmZnHZlCSrwoZ52HIM3l8rVidSYoFWLDtK8aBeXFu16Bx+e6N0JxExRgZbl6otR7aFiHHSSrE7Oq2XDeJihnHgLqk1tHdH4edc2XJXAAjb4ftjkIAm0+bqULIavm5Sn9YymO3dQsNpwUWNs5BxgxpmE/dlVPKd9/GjBRSOAA== x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: GUttjJzpzLEpd9+hJOvAjcUbGefmba3Lb4+MFuv+Pfw592cOVhpieVe9FwatwAmIfXKAgY5fe326i0aRF23Y/JdjD7RyfNRRv+jvS6J2dhy9k4lb5J0aTulDCmr2c0QA7HL7SDk+et4T/CqaiIXHIvFnoEIISH7JJy3u0YE7oD+KQQZyjBywC4AzYsWQj0vU6nvq671FbzYedZvd9LNnNUYdbBq2xW2bzA7giHIhyYBUjeIR2xEMw9Cz767fkfC/tr0eg7qyGNlJHpqxCyfcNuLjyCbQlbVe6Bzctu2ay7PwPRv8edvUbVfD88z5rUdqjmlM9SYtTN39X9m+xPFo9VbirfdGcRiVVBO9tHo/NRuJfcAvTRcf6RT5HWVFaLQDlIzWlIBMExEvXLs7gBnUsTpmmoTPSGS4LJU2Q29krW/4OR2r3hQbILOlFrc0+EyaeJ5uhUB7LDt+hWphqY00PIMMrC+afhk4p/snrQBUUM3c8eDMWmGrTVqRiuJhQhIbnHIpAVdqJwpuesUuPd97Bsktdv0lHU2p0w71stuN4D6N9OI78lCQfLNwOQB30NtEWNVxjPh2/sbjh0ZrXiRL3liD4Xg0vzAc0dbZ9CGHp6Ndq4+iU35Bq8p4fCjGzhblB5mRMkuYKoWXciGG6t975WXK2Gb7jroJMcr/7Mw5B7/PRyfx6eNjujVqk1ZNjqYeiydA7IRkadDxFLRqdxPcKmNPhBs8ZKBHXwPVSXfw2fibQdUNMFUcUGIsw3SKj1fIFVjM5nGy20KMosZUe7n9Ww== Content-ID: MIME-Version: 1.0 X-OriginatorOrg: sct-15-20-3174-20-msonline-outlook-a1a1a.templateTenant X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: PNZPR01MB4415.INDPRD01.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-Network-Message-Id: cbb20366-43ae-408c-2ee7-08d9b309e46c X-MS-Exchange-CrossTenant-originalarrivaltime: 29 Nov 2021 07:28:51.7610 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-rms-persistedconsumerorg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: PNZPR01MB5261 Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org From: Aditya Garg Bluetooth on Apple MacBook Pro 16,2 is unable to start due to LE Min/Max Tx Power being queried on startup. Add a DMI based quirk so that it is disabled. Signed-off-by: Aditya Garg --- drivers/bluetooth/btbcm.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/drivers/bluetooth/btbcm.c b/drivers/bluetooth/btbcm.c index c1b0ca63880a6..ab7b754855d8a 100644 --- a/drivers/bluetooth/btbcm.c +++ b/drivers/bluetooth/btbcm.c @@ -354,6 +354,15 @@ static const struct dmi_system_id disable_broken_read_transmit_power[] = { DMI_MATCH(DMI_PRODUCT_NAME, "MacBookPro16,1"), }, }, + { + /* Match for Apple MacBook Pro 16,2 which needs + * Read LE Min/Max Tx Power to be disabled. + */ + .matches = { + DMI_MATCH(DMI_BOARD_VENDOR, "Apple Inc."), + DMI_MATCH(DMI_PRODUCT_NAME, "MacBookPro16,2"), + }, + }, { } }; From patchwork Mon Nov 29 07:46:58 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Aditya Garg X-Patchwork-Id: 518198 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id AEB7BC433F5 for ; Mon, 29 Nov 2021 07:49:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240722AbhK2Hww (ORCPT ); Mon, 29 Nov 2021 02:52:52 -0500 Received: from mail-ma1ind01olkn0165.outbound.protection.outlook.com ([104.47.100.165]:12505 "EHLO IND01-MA1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S240682AbhK2Huw (ORCPT ); Mon, 29 Nov 2021 02:50:52 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=iHX8soBSoUpdyyyCY3Q5/35pv+JS35abCeaUI4r2o5qE3TYOcfI//1Q1/Clmw5evR/voMHZrs0ZJ87bP4w9wXezeTvP5o5Lf/3URSdQlrBWoRAivmPsg2pu/3kcp+edInrtkbxzuE3zsoFdn2S0cILll9RdZzkIMBnjAws+6TH+NBHu1PtptkaDZLVogQL8UdqA2vGNCryJCZVSDlXBBqgTzvPZFLCrdOFR/O4ClQr8ivn6ePf2zIl9IOYFns0V95ZLkkeKjZtGhMCgSy4j11pBbGSqPlIbxnfhUHmjRYRnNYs4gQYaGB/MeoHhFDYEqNKuC2k8tKgIErcaAQaabyQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=zcn6AEJqdxNrb1xzl5phb0wl3o54k+0AiKOtnXkV5sQ=; b=EebNH12hk+mw70cTQNzqsWEymrWcQ+EQ4UxKQ74MAWXLU/g/UsNinRWe3Ptk+oXt8Lpdhhdt+LISRAP3CFctCx1ScKXKZVFEigKr4+8Cd7s1Q/d2IiHZYGVc3bMkOe7ptHfOrUh7a4dckVU3AZ2phPKTADo8OaxRSKEvfE4efoLvfO7MX94zMPTrqgMV5WU6TBmAgJpgkSLgU2ec46DxELZOf4upON5/tfMaZVZi8EfSSYWxXnPL4DHBfTVty5OjbxNkjD8bVTkXLVZQXbiBoi/81k1YkSK4W+3wqxteuKdiD8pdrANRhI/ZkHXJvrtNmYHCNVJYDb2tB1IYalI4kg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=live.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=zcn6AEJqdxNrb1xzl5phb0wl3o54k+0AiKOtnXkV5sQ=; b=V0of70KEGbrXPaDKmxXnRn5KI84fql0Vg+EXEPT7EvTAWwasu6H8AmAAcBgNnNz6i4pvaHO4aujqM2KKxXKlyCYv8T1LMUs6fXamzl9BfdhcWygBxOYVr9Tmf1+HkrxKkftKUhncQ/6ZJJVc0tLPxoVM4cGI1Ckdfv3fRw5XeNCO3GUgC3TfnBZxRXEI+tBedBON90UOwRU6gI/TGhNn8ln04+wqq+rWDzU/Yr+Q2ZhrKcrPstm0JYHgBEXFiyi5hpnizWVC18OUv5lq3YdP/sHc+Fmfhve/NyROscZ6m5xfZ8B6j3GlU3NzksMLuXVTwwCEJd4ZDlE0HAlxQszL5w== Received: from PNZPR01MB4415.INDPRD01.PROD.OUTLOOK.COM (2603:1096:c01:1b::13) by PN1PR0101MB1821.INDPRD01.PROD.OUTLOOK.COM (2603:1096:c00:12::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4734.23; Mon, 29 Nov 2021 07:46:58 +0000 Received: from PNZPR01MB4415.INDPRD01.PROD.OUTLOOK.COM ([fe80::7ca6:9165:19ec:4cd7]) by PNZPR01MB4415.INDPRD01.PROD.OUTLOOK.COM ([fe80::7ca6:9165:19ec:4cd7%5]) with mapi id 15.20.4734.024; Mon, 29 Nov 2021 07:46:58 +0000 From: Aditya Garg To: Thorsten Leemhuis CC: Marcel Holtmann , Orlando Chamberlain , Daniel Winkler , Greg KH , Johan Hedberg , "linux-bluetooth@vger.kernel.org" , "linux-kernel@vger.kernel.org" , Luiz Augusto von Dentz , "regressions@lists.linux.dev" , "sonnysasaka@chromium.org" , "stable@vger.kernel.org" Subject: [PATCH v2 4/6] btbcm: disable read tx power for MacBook Pro 16, 4 (16 inch, 2019) Thread-Topic: [PATCH v2 4/6] btbcm: disable read tx power for MacBook Pro 16, 4 (16 inch, 2019) Thread-Index: AQHX5PVJoLWkBlTKpU+l39Xu6TbfRQ== Date: Mon, 29 Nov 2021 07:46:58 +0000 Message-ID: References: <20211001083412.3078-1-redecorating@protonmail.com> <70a875d0-7162-d149-dbc1-c2f5e1a8e701@leemhuis.info> <20211116090128.17546-1-redecorating@protonmail.com> <3B8E16FA-97BF-40E5-9149-BBC3E2A245FE@live.com> <52DEDC31-EEB2-4F39-905F-D5E3F2BBD6C0@live.com> <8919a36b-e485-500a-2722-529ffa0d2598@leemhuis.info> <20211117124717.12352-1-redecorating@protonmail.com> <40550C00-4EE5-480F-AFD4-A2ACA01F9DBB@live.com> <332a19f1-30f0-7058-ac18-c21cf78759bb@leemhuis.info> <5B9FF471-42DD-44DA-A9CE-0A83BA7A4212@live.com> <3E9D8424-A65C-4211-B5E4-B6D62400E711@live.com> In-Reply-To: <3E9D8424-A65C-4211-B5E4-B6D62400E711@live.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-messagesentrepresentingtype: 1 x-tmn: [8n+phNukq0G0peGoM6l0wAcUTVWH2RnFOywJsQwU/pY6+ljZfcCqnvuex0HjejoE] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: d58cd5d6-2744-4f53-d0a3-08d9b30c6c3e x-ms-traffictypediagnostic: PN1PR0101MB1821: x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: FB2vOWdLfr4x55L7hedhXvDd4Pd0xBCr7FJAYFLEOeI0PIPCfwHBK456C/j2BcgyDswKCB1MCIpDumjL9ofc/TFIhXaKZUsONDEqhx1g3LgpclPZuNymN2xSadxsk7QlMyUVu6IZuei+jo/pCjcVRSATNLiRpf6a6RFZFftnfm//ik9eRudibdUl/a2spAYB9moZE31rNrDEqUlLYMLXVSCevD5muE1Zda19yE2hMwO6Moa2XD7auBaApRCAyRk17zzHZIDVH3id94uuaVOf+OWTjbY2/nDmaCw6vJ2uIicwxv4GIllvR5poxBtH289TcLT0Ku0V6/6ezgpMUlruT9oMAAnoMXD3KANRn6T9q4L5zLmDr5q/vMnXYcNjSR6aPVDM91HPm1TftfGsr5a+Cwz+iSfPXxgqETgZRE4EidkzGD4ZbloL1C1AS+jHqYg7UgEG1lHeHVaJfFL4Yt9n9M5FlyNdS7N4pLD4xNuBaxXQk9RIDKaBc4O7k1iF1ejqsPmAUz8apTkm/B7p1qL2DKPZSWZ8PLQp6OLMi4aZi/isMPKomS76Lwz294IMeMNEiKtztziK7LAGWP04/mjAYA== x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: wU1HQn98HQYvNrqM3uXA0y7kccTJMB+7iCVZY8Gb6pzq09uLCIR604lpesPI1ZPXRsFDv8gqw/oy13cdmrEEFDAQ4DmoABqEd7ts3odQmtyTOFSQF3gAA0roInxn3E12xg66tFdXDS3/8fFt4R2Hon3eCiksuDiGQQNVY/MRx4FksQQau99Fb69aIVZuTzR56ACiPVQ41nMh7CbgYQAQ0aHvLhJRAhGrQqUNN+joRda2ex31e3/CarcYlUA8nJUMTN+jnqSV97nUmwVeVwsvJBtCKIxd4sGJAYM9H5MSyO1g89ufioIhDXkep6seBKTiBiGvDWgGhQLu2DmhiVhWpT15t1lhSPR6o0zbihodP8uU/LKjvFTvALoNrMTk7hNuw4H5/5IdaiTnKPWvqEtuPiiXASZpk9uVwGpw9ntgjOuKDQnuE6FOR6SOMrrmrLW7AVOJ6INyU4VNlnJP9FPDmTyhpP/50IDMVaDquU9ubzbfuvkGB/HZlrhnK6wEKjsnk8udCK6ZDcxqUR6bxfdYUj/Q04BXetllqphB2LIFII996cOXmllDqA1UUQgz3wa+4Y3MSq6IIBspDGYZ9vL2OXMEqcOag7QUPQB2FfikAcgbtOdpQ2BDIB1Yci1IhtD5J4aqT6rSB7OAVmgnE34PDGucZIOHEhPixBC/Wj7YTzJD/RQux9u+Jruf24349Ac7VrRCO8KGwhB0LdW8De8UKrYmlbbzdtRDcvHGEXff1XXvX1RK7slQ6Lefjkqge2RcTMhJHnkZDmMOV4lPhAd5xw== Content-ID: <5DDA3E338FBE3043B6280C80BA330D2E@INDPRD01.PROD.OUTLOOK.COM> MIME-Version: 1.0 X-OriginatorOrg: sct-15-20-3174-20-msonline-outlook-a1a1a.templateTenant X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: PNZPR01MB4415.INDPRD01.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-Network-Message-Id: d58cd5d6-2744-4f53-d0a3-08d9b30c6c3e X-MS-Exchange-CrossTenant-originalarrivaltime: 29 Nov 2021 07:46:58.5805 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-rms-persistedconsumerorg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: PN1PR0101MB1821 Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org From: Aditya Garg Bluetooth on Apple MacBook Pro 16,4 is unable to start due to LE Min/Max Tx Power being queried on startup. Add a DMI based quirk so that it is disabled. v2: Wrap changelog in 72 columns. Signed-off-by: Aditya Garg --- drivers/bluetooth/btbcm.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/drivers/bluetooth/btbcm.c b/drivers/bluetooth/btbcm.c index 348a4afa0774e..88214b453b0ce 100644 --- a/drivers/bluetooth/btbcm.c +++ b/drivers/bluetooth/btbcm.c @@ -363,6 +363,15 @@ static const struct dmi_system_id disable_broken_read_transmit_power[] = { DMI_MATCH(DMI_PRODUCT_NAME, "MacBookPro16,2"), }, }, + { + /* Match for Apple MacBook Pro 16,4 which needs + * Read LE Min/Max Tx Power to be disabled. + */ + .matches = { + DMI_MATCH(DMI_BOARD_VENDOR, "Apple Inc."), + DMI_MATCH(DMI_PRODUCT_NAME, "MacBookPro16,4"), + }, + }, { } }; From patchwork Mon Nov 29 07:31:32 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Aditya Garg X-Patchwork-Id: 518200 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id EE662C433FE for ; Mon, 29 Nov 2021 07:34:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238846AbhK2Hh3 (ORCPT ); Mon, 29 Nov 2021 02:37:29 -0500 Received: from mail-bo1ind01olkn0176.outbound.protection.outlook.com ([104.47.101.176]:62080 "EHLO IND01-BO1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S239512AbhK2Hf2 (ORCPT ); Mon, 29 Nov 2021 02:35:28 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=gIEP60Yzl0kieyRO2LBsaAAFQ0bjLpuC12ErV+n5dcMkjJrSijYCIQRD9R2bfZtyJ0anQcF3exAlOoLJCDw3K5pbx5B5eJdQZ2MaNocl67Tgi9gruvSER054yCmDEk1TZAX7kkmKdK6Y82A+PRiNre17QQLi2rrQdE9WqvRNgrzHz2Y5AO4DwN0iZ1kAjbJV+QG7y92XZvhWQr1+fOw7pOegMCjLVKS5o/S9QbCbIgXi5bDMy38jrF3rtbeu4ZDjtd4nWc6bFCn1l2riHR3I+0rColGHMdxczY03QweYW119ltwbMESrvjBApiEI4DJ/jhzTCe8mts4Wou1dTtek4g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=4GRXda5gS9x9VSAerCM/aPzhn9gOTctTYuZn80SFd7I=; b=BwdVxfCz7eDMx8qnQkMeTDhs04OnnY9KVzlZL2In06muWkA1eA305UH0AQZRvdtCPyfFJdcqzL3LCcedfdOQIqqmGSP5xbp0/gs9fxTbRzgOVlbKuve8RGMAC0oda3cgaXUbpZosMhWPfA3Nqp0CU9gWk9DxbdCqN3FbEczyZTtUdQgH4y6E9rrR8VLQ6wujf/8Di/T4TQSp6biK+TCUL6xeG2E0HPcuL/GG1MNdk2BNR1A7xvXZ/3b6wui8dW+PSQcrp4ZwajkyQSaGuJ+u0luWAVKkTjz3gzhdpvOOLWmzIgdZVset1p2pwiUPPRI6JEbKTsGVxuEWXwAwE5sK+Q== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=live.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=4GRXda5gS9x9VSAerCM/aPzhn9gOTctTYuZn80SFd7I=; b=FfE66BpCabb1s7R0J3epeS8GzinziXWs4kwzPUR9o3q1II6nGzU7WBh2caruyC3/ajKqyuyXXvJPA/WUXN6bTMqMCq5n0AkcWppCJprscr7XNVpulZxgtZFOBcuf72gNyrrhMjsr0Sy6ZaJ4UEdrxusa37zQmIQG8h8LCD49D4Bthx6/n/w5FxiQKIThMcJkCbI8BLQBzMguZLP7i6Ulf/3naO0Q3nvYC3QgbnauC89+SdJWmkHGMiSactGedeZLuzCFFjpDFqpcgCVPeU5gSq3F8OTBmKxW5Uz4DSQjx9GIMX/2oCZaU3/0LuhK1dngcU0GXxXjG90Nlw7XwAYc/w== Received: from PNZPR01MB4415.INDPRD01.PROD.OUTLOOK.COM (2603:1096:c01:1b::13) by PN1PR0101MB1662.INDPRD01.PROD.OUTLOOK.COM (2603:1096:c00:18::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4734.23; Mon, 29 Nov 2021 07:31:32 +0000 Received: from PNZPR01MB4415.INDPRD01.PROD.OUTLOOK.COM ([fe80::7ca6:9165:19ec:4cd7]) by PNZPR01MB4415.INDPRD01.PROD.OUTLOOK.COM ([fe80::7ca6:9165:19ec:4cd7%5]) with mapi id 15.20.4734.024; Mon, 29 Nov 2021 07:31:32 +0000 From: Aditya Garg To: Thorsten Leemhuis CC: Marcel Holtmann , Orlando Chamberlain , Daniel Winkler , Greg KH , Johan Hedberg , "linux-bluetooth@vger.kernel.org" , "linux-kernel@vger.kernel.org" , Luiz Augusto von Dentz , "regressions@lists.linux.dev" , "sonnysasaka@chromium.org" , "stable@vger.kernel.org" Subject: [PATCH 5/6] btbcm: disable read tx power for iMac 20,1 (Retina 5K, 27-inch, 2020) Thread-Topic: [PATCH 5/6] btbcm: disable read tx power for iMac 20,1 (Retina 5K, 27-inch, 2020) Thread-Index: AQHX5PMhn2Jf+xkhtEWseNDG5qLzhw== Date: Mon, 29 Nov 2021 07:31:32 +0000 Message-ID: References: <20211001083412.3078-1-redecorating@protonmail.com> <70a875d0-7162-d149-dbc1-c2f5e1a8e701@leemhuis.info> <20211116090128.17546-1-redecorating@protonmail.com> <3B8E16FA-97BF-40E5-9149-BBC3E2A245FE@live.com> <52DEDC31-EEB2-4F39-905F-D5E3F2BBD6C0@live.com> <8919a36b-e485-500a-2722-529ffa0d2598@leemhuis.info> <20211117124717.12352-1-redecorating@protonmail.com> <40550C00-4EE5-480F-AFD4-A2ACA01F9DBB@live.com> <332a19f1-30f0-7058-ac18-c21cf78759bb@leemhuis.info> <5B9FF471-42DD-44DA-A9CE-0A83BA7A4212@live.com> <3E9D8424-A65C-4211-B5E4-B6D62400E711@live.com> In-Reply-To: <3E9D8424-A65C-4211-B5E4-B6D62400E711@live.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-messagesentrepresentingtype: 1 x-tmn: [dq8NQswA5yhsmA8RcoJWFIfB6waO9bc3bYa33TYtdylq+ZBiw9/jmM0gPxfG+YrY] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 0991816a-9158-4b8d-3e12-08d9b30a4427 x-ms-traffictypediagnostic: PN1PR0101MB1662: x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: ypvWmt9eE/qjU+vzSggUMu6f2/XyEkwFc/gZB87m22UcWMgcMXNr13Jix15VtR0Heq6K8Thhgmp/6cXHjDx+8F96787ZWnLtgyASetBKDa3JJZVKCJXmd0hDJSow/rM/ko4heuInkEvoDRqz9wu80wUrDI4nCUSy9kVDdKBNZbKRtuN4D4QToWXpciuO1M5YONz1HQwQivTJ2fgSoH3HgA0sFt7M66/lCaXmWu4lQ7R4TuMseqm8VEG0ydtVdCMNlhQ8CWmDSNIwmfwNLmBqBLIdvFgdMEoVfKFXhUoWUVFGgz0+ywV45hMfLVS5N8VJTxCpHyARhQcGSjQLCdfSAtTxaH4ZrtIrBS3JRi43dUsmR/0TOFSWkpESWyf2dQtfc/hU7WzLEHJ4o+CR2I0UPblOg2w+Tp4n4xtwF6EB0qKD7aSKP+glOSbxAQOz3KjqMuKKKqvN2uVIamRVW/q/ZJN30EX394odaKYv4zs+vICWUlQW7nTXgzCoHPqRy/dsh+brnUEk/CRppX900PwgWPe7HD6JV48mChBmzEKJFrE746JLXfscBWy3lzQHO2Fd3rfplb9GNgBOH/q9NQP7OQ== x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: ER4o58k+YJuWdslJsRPN69LdlKyrBKgdQ+CQhP/iT0o/TlHRguENzueRV5ycWEOA4C0GmPkWxNONc0NNWOBsaexuO0RiwW18Hiu9zfiR+QzQPJuwBdI+Lo89NhzhMRPvtklpr75WsZpk2sDtmgoBfG1Plu2tOyyvkcv1u5xHsefI3vWxFtphf4sZ4gW5hr7SqNqsmtz96qXyR+OTp6GamFmMhmVSBc7Eat4ouQuQasJHSSClJ0+Dtz2GXiaum+pp5RrLCBoRHKXoWvPWJBJbv284uyu2uWyTxFRCosY88o+xYehUFmUBlUsQcPiPlo0R3AaKOUktYS2a1lOUdmUzZRBTt7OSHqggJUwimJ24WLhWAY6ikP22bC6zWTzPysiZIiHu2F9vgV2Hf9S1oLpNBBo5YssbKpde5PbeaygpmJsyksU6W7k/VxwQsL0/wMZ0J/8t6HV8DPy28hbJLYs95emaA8QBt5v7ft4Ttvf96U9otr2OfGhNJASme0TKLs436vfnIj6noQB71cZNUJbCj0JYTztqMPJw48VHppgYlk+qlENnNODUdKGBtI1uvEfXlgqpyZAPi4FPyswIop/m/P7QCb0P+QMZM398F82WU6CPOpqIgEmMBDLB3jL6lgfesgHGwTg9V1EWD3bsT5pAMDae5EuY376uUzzfgDWB6xcXOiKlu/ofGgb0qagcVa6dJG/kvWD8KNNv8JAOjOK1WEXLzYn9jg8rKBNTPDFWNCOnKZ6TFaV7j/GMoa5SJ17pGk3MEigyv5MEJeFlHoCeVg== Content-ID: <762A4BC8ABDACC41ABD77C7513037F90@INDPRD01.PROD.OUTLOOK.COM> MIME-Version: 1.0 X-OriginatorOrg: sct-15-20-3174-20-msonline-outlook-a1a1a.templateTenant X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: PNZPR01MB4415.INDPRD01.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-Network-Message-Id: 0991816a-9158-4b8d-3e12-08d9b30a4427 X-MS-Exchange-CrossTenant-originalarrivaltime: 29 Nov 2021 07:31:32.3296 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-rms-persistedconsumerorg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: PN1PR0101MB1662 Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org From: Aditya Garg Bluetooth on Apple iMac 20,1 is unable to start due to LE Min/Max Tx Power being queried on startup. Add a DMI based quirk so that it is disabled. Signed-off-by: Aditya Garg --- drivers/bluetooth/btbcm.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/drivers/bluetooth/btbcm.c b/drivers/bluetooth/btbcm.c index 88214b453b0ce..15c5be927c659 100644 --- a/drivers/bluetooth/btbcm.c +++ b/drivers/bluetooth/btbcm.c @@ -372,6 +372,15 @@ static const struct dmi_system_id disable_broken_read_transmit_power[] = { DMI_MATCH(DMI_PRODUCT_NAME, "MacBookPro16,4"), }, }, + { + /* Match for Apple iMac 20,1 which needs + * Read LE Min/Max Tx Power to be disabled. + */ + .matches = { + DMI_MATCH(DMI_BOARD_VENDOR, "Apple Inc."), + DMI_MATCH(DMI_PRODUCT_NAME, "iMac20,1"), + }, + }, { } };