Skip to content

Commit fa0fb93

Browse files
bingzGustavo F. Padovan
authored andcommitted
Bluetooth: btusb: fix bInterval for high/super speed isochronous endpoints
For high-speed/super-speed isochronous endpoints, the bInterval value is used as exponent, 2^(bInterval-1). Luckily we have usb_fill_int_urb() function that handles it correctly. So we just call this function to fill in the RX URB. Cc: Marcel Holtmann <marcel@holtmann.org> Signed-off-by: Bing Zhao <bzhao@marvell.com> Acked-by: Marcel Holtmann <marcel@holtmann.org> Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
1 parent 030013d commit fa0fb93

1 file changed

Lines changed: 2 additions & 7 deletions

File tree

‎drivers/bluetooth/btusb.c‎

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -508,15 +508,10 @@ static int btusb_submit_isoc_urb(struct hci_dev *hdev, gfp_t mem_flags)
508508

509509
pipe = usb_rcvisocpipe(data->udev, data->isoc_rx_ep->bEndpointAddress);
510510

511-
urb->dev = data->udev;
512-
urb->pipe = pipe;
513-
urb->context = hdev;
514-
urb->complete = btusb_isoc_complete;
515-
urb->interval = data->isoc_rx_ep->bInterval;
511+
usb_fill_int_urb(urb, data->udev, pipe, buf, size, btusb_isoc_complete,
512+
hdev, data->isoc_rx_ep->bInterval);
516513

517514
urb->transfer_flags = URB_FREE_BUFFER | URB_ISO_ASAP;
518-
urb->transfer_buffer = buf;
519-
urb->transfer_buffer_length = size;
520515

521516
__fill_isoc_descriptor(urb, size,
522517
le16_to_cpu(data->isoc_rx_ep->wMaxPacketSize));

0 commit comments

Comments
 (0)