RE: Bluetooth: btusb: urb->interval speed check in btusb_submit_isoc_urb()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Marcel,

> Subject: Re: Bluetooth: btusb: urb->interval speed check in btusb_submit_isoc_urb()
> 
> Hi Bing,
> 
> > In drivers/Bluetooth/btusb.c, function btusb_send_frame(), we call
> >
> >         usb_fill_int_urb(urb, data->udev, pipe,
> >                         skb->data, skb->len, btusb_isoc_tx_complete,
> >                         skb, data->isoc_tx_ep->bInterval);
> >
> > in case HCI_SCODATA_PKT. The inline function usb_fill_int_urb will check USB_SPEED_HIGH or
> USB_SPEED_SUPER to assign different value to urb->interval.
> >
> >         if (dev->speed == USB_SPEED_HIGH || dev->speed == USB_SPEED_SUPER)
> >                 urb->interval = 1 << (interval - 1);
> >         else
> >                 urb->interval = interval;
> >
> > Shall we do the same check for btusb_submit_isoc_urb()?
> 
> I honestly do not know. Maybe just using usb_fill_int_urb here might be
> a good idea. One is the TX and one is the RX URB. You need to go into
> the USB subsystem and see if it actually makes a different.

Thanks for your suggestion. I will send a patch using usb_fill_int_urb() for RX URB.

Regards,
Bing

> 
> However we should not handcode anything from the USB subsystem. We made
> that mistake before with hci_usb.c from the 2.4.x times and it was a
> valuable lesson learned on things not to do.
> 
> Regards
> 
> Marcel
> 

��.n��������+%������w��{.n�����{����^n�r������&��z�ޗ�zf���h���~����������_��+v���)ߣ�

[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux