summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZijun Hu <zijun.hu@oss.qualcomm.com>2026-06-25 22:19:48 -0700
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2026-08-07 12:29:38 -0400
commitff50db7a522e7bd3bd1c4db6da715e4bdb53af97 (patch)
treecb93399d99af9bd9c528120297b701c368560b0a
parentd0b15d812688d3f0f3fe1c4426e12814d0c294dc (diff)
downloadlinux-ff50db7a522e7bd3bd1c4db6da715e4bdb53af97.tar.gz
linux-ff50db7a522e7bd3bd1c4db6da715e4bdb53af97.zip
Bluetooth: btusb: Record matched usb_device_id into btusb_data
Add @match_id to btusb_data to record the matched usb_device_id which will be used later. Signed-off-by: Zijun Hu <zijun.hu@oss.qualcomm.com> Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
-rw-r--r--drivers/bluetooth/btusb.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/bluetooth/btusb.c b/drivers/bluetooth/btusb.c
index d02d3a9950de..f3eee864ef19 100644
--- a/drivers/bluetooth/btusb.c
+++ b/drivers/bluetooth/btusb.c
@@ -1014,6 +1014,7 @@ struct btusb_data {
bool usb_alt6_packet_flow;
int isoc_altsetting;
int suspend_count;
+ const struct usb_device_id *match_id;
int (*recv_event)(struct hci_dev *hdev, struct sk_buff *skb);
int (*recv_acl)(struct hci_dev *hdev, struct sk_buff *skb);
@@ -4112,6 +4113,7 @@ static int btusb_probe(struct usb_interface *intf,
if (!data)
return -ENOMEM;
+ data->match_id = id;
err = usb_find_common_endpoints(intf->cur_altsetting, &data->bulk_rx_ep,
&data->bulk_tx_ep, &data->intr_ep, NULL);
if (err)