mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Thomas Gerner <thomas.gerner@muenchen-mail.de>
To: Marcel Holtmann <marcel@holtmann.org>,
	Luiz Augusto von Dentz <luiz.dentz@gmail.com>,
	Drew Fustini <fustini@kernel.org>, Guo Ren <guoren@kernel.org>,
	Fu Wei <wefu@redhat.com>, Rob Herring <robh@kernel.org>,
	Krzysztof Kozlowski <krzk+dt@kernel.org>
Cc: Thomas Gerner <thomas.gerner@muenchen-mail.de>,
	Conor Dooley <conor+dt@kernel.org>,
	Paul Walmsley <pjw@kernel.org>,
	Palmer Dabbelt <palmer@dabbelt.com>,
	Albert Ou <aou@eecs.berkeley.edu>,
	Alexandre Ghiti <alex@ghiti.fr>,
	linux-bluetooth@vger.kernel.org, linux-kernel@vger.kernel.org,
	linux-riscv@lists.infradead.org, devicetree@vger.kernel.org
Subject: [PATCH v3 1/2] Bluetooth: btbcm: disable read tx power for BeagleV-Ahead
Date: Mon, 30 Nov 2026 16:20:50 +0100	[thread overview]
Message-ID: <20261130152100.164892-2-thomas.gerner@muenchen-mail.de> (raw)
In-Reply-To: <20261130152100.164892-1-thomas.gerner@muenchen-mail.de>

The bluetooth module of the Ampak AP6203BM is identified by the btbcm
driver as BCM4362A2.

Without this patch the hci driver prints this message:

Bluetooth: hci0: unexpected cc 0x204b length: 1 < 3
Bluetooth: hci0: Opcode 0x204b failed: -38

To getbluetooth working it is necessary to disable reading of LE tx
power on the BeagleV-Ahead board similar as for several other devices.

Signed-off-by: Thomas Gerner <thomas.gerner@muenchen-mail.de>
---
Changes in v3:
 - As suggested by Drew Fustini use of_machine_compatible_match() for testing

No changes in v2

 drivers/bluetooth/btbcm.c | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/drivers/bluetooth/btbcm.c b/drivers/bluetooth/btbcm.c
index 065536d4ec76..e58a14184038 100644
--- a/drivers/bluetooth/btbcm.c
+++ b/drivers/bluetooth/btbcm.c
@@ -438,6 +438,11 @@ static const struct dmi_system_id disable_broken_read_transmit_power[] = {
 	{ }
 };
 
+static const char *const board_broken_read_transmit_power[] = {
+	"beagle,beaglev-ahead",
+	NULL
+};
+
 static int btbcm_read_info(struct hci_dev *hdev)
 {
 	struct sk_buff *skb;
@@ -469,6 +474,10 @@ static int btbcm_print_controller_features(struct hci_dev *hdev)
 	if (dmi_first_match(disable_broken_read_transmit_power))
 		hci_set_quirk(hdev, HCI_QUIRK_BROKEN_READ_TRANSMIT_POWER);
 
+	/* and for boards with broken Read LE Min/Max TX Power */
+	if (of_machine_compatible_match(board_broken_read_transmit_power))
+		hci_set_quirk(hdev, HCI_QUIRK_BROKEN_READ_TRANSMIT_POWER);
+
 	return 0;
 }
 
-- 
2.53.0


  reply	other threads:[~2026-11-30 15:21 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-30 15:20 [PATCH v3 0/2] Enable bluetooth on BeagleV-Ahead Thomas Gerner
2026-11-30 15:20 ` Thomas Gerner [this message]
2026-12-01  0:21   ` [PATCH v3 1/2] Bluetooth: btbcm: disable read tx power for BeagleV-Ahead Drew Fustini
2026-11-30 15:20 ` [PATCH v3 2/2] riscv: dts: thead: Bluetooth: Enable bt on BeagleV-Ahead Thomas Gerner
2026-12-01  0:23   ` Drew Fustini

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20261130152100.164892-2-thomas.gerner@muenchen-mail.de \
    --to=thomas.gerner@muenchen-mail.de \
    --cc=alex@ghiti.fr \
    --cc=aou@eecs.berkeley.edu \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=fustini@kernel.org \
    --cc=guoren@kernel.org \
    --cc=krzk+dt@kernel.org \
    --cc=linux-bluetooth@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-riscv@lists.infradead.org \
    --cc=luiz.dentz@gmail.com \
    --cc=marcel@holtmann.org \
    --cc=palmer@dabbelt.com \
    --cc=pjw@kernel.org \
    --cc=robh@kernel.org \
    --cc=wefu@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®