From: Marcel Holtmann <marcel@holtmann.org>
To: Bing Zhao <bzhao@marvell.com>
Cc: Gustavo Padovan <padovan@profusion.mobi>,
"linux-bluetooth@vger.kernel.org"
<linux-bluetooth@vger.kernel.org>
Subject: Re: Bluetooth: btusb: urb->interval speed check in btusb_submit_isoc_urb()
Date: Sun, 18 Dec 2011 17:28:03 -0800 [thread overview]
Message-ID: <1324258083.1965.96.camel@aeonflux> (raw)
In-Reply-To: <477F20668A386D41ADCC57781B1F704308185E345D@SC-VEXCH1.marvell.com>
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.
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
next prev parent reply other threads:[~2011-12-19 1:28 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-11-17 4:40 [PATCH] Bluetooth: btmrvl: support Marvell Bluetooth device SD8797 Bing Zhao
2011-11-21 15:52 ` Gustavo Padovan
2011-12-15 23:29 ` Bluetooth: btusb: urb->interval speed check in btusb_submit_isoc_urb() Bing Zhao
2011-12-19 1:28 ` Marcel Holtmann [this message]
2011-12-20 23:30 ` Bing Zhao
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=1324258083.1965.96.camel@aeonflux \
--to=marcel@holtmann.org \
--cc=bzhao@marvell.com \
--cc=linux-bluetooth@vger.kernel.org \
--cc=padovan@profusion.mobi \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.