Thread (3 messages) flat view 3 messages, 3 authors, 1d ago
WARM1d

[PATCH] Bluetooth: btusb: do not probe non-HCI interfaces

From: Johann Fischer via B4 Relay <devnull+johann.fischer.nordicsemi.no@kernel.org>
Date: 2026-09-04 22:24:26
Also in: b4-sent, lkml
Subsystem: bluetooth drivers, the rest · Maintainers: Marcel Holtmann, Luiz Augusto von Dentz, Linus Torvalds

From: Johann Fischer <redacted>

If the driver selects BTUSB_PROTO_H4, the second interface (voice
channels) remains unclaimed. Then, the btusb_probe() is called for the
second interface. It misidentifies the interface as one that supports
legacy mode and fails with "failed to enumerate endpoints".

Signed-off-by: Johann Fischer <redacted>
---
 drivers/bluetooth/btusb.c | 5 +++++
 1 file changed, 5 insertions(+)
diff --git a/drivers/bluetooth/btusb.c b/drivers/bluetooth/btusb.c
index dfefb43fb792..44f0db347643 100644
--- a/drivers/bluetooth/btusb.c
+++ b/drivers/bluetooth/btusb.c
@@ -4293,6 +4293,11 @@ static int btusb_probe(struct usb_interface *intf,
 			return -ENODEV;
 	}
 
+	/*  Skip interfaces that do not implement the HCI transport */
+	if (usb_find_common_endpoints(intf->cur_altsetting,
+				      &bulk_rx_ep, &bulk_tx_ep, &intr_ep, NULL))
+		return -ENODEV;
+
 	data = kzalloc_obj(*data);
 	if (!data)
 		return -ENOMEM;
---
base-commit: 88a8184cb44c8952e6a6fd21e250445300d1c7aa
change-id: 20260904-btusb-skip-non-hci-ifaces-b52ea298677b

Best regards,
--  
Johann

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help