projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5373010
)
Bluetooth: ath3k: reduce pipe setting times in ath3k_load_fwfile()
author
Adam Lee
<adam8157@gmail.com>
Thu, 5 Jun 2014 13:47:44 +0000
(21:47 +0800)
committer
Marcel Holtmann
<marcel@holtmann.org>
Thu, 3 Jul 2014 15:42:41 +0000
(17:42 +0200)
Invoking usb_sndbulkpipe() on same pipe for same purpose only once is
enough.
Signed-off-by: Adam Lee <adam8157@gmail.com>
Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
drivers/bluetooth/ath3k.c
patch
|
blob
|
history
diff --git
a/drivers/bluetooth/ath3k.c
b/drivers/bluetooth/ath3k.c
index
f50dffc
..
abe6aec
100644
(file)
--- a/
drivers/bluetooth/ath3k.c
+++ b/
drivers/bluetooth/ath3k.c
@@
-288,10
+288,10
@@
static int ath3k_load_fwfile(struct usb_device *udev,
sent += size;
count -= size;
+ pipe = usb_sndbulkpipe(udev, 0x02);
+
while (count) {
size = min_t(uint, count, BULK_SIZE);
- pipe = usb_sndbulkpipe(udev, 0x02);
-
memcpy(send_buf, firmware->data + sent, size);
err = usb_bulk_msg(udev, pipe, send_buf, size,