From: Marcel Holtmann Date: Sun, 14 Sep 2014 07:11:06 +0000 (+0200) Subject: Bluetooth: btusb: Separate TX URB allocation and submission X-Git-Tag: fixes-against-v3.18-rc2~144^2~39^2~71^2~17 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=047b2ec8d3778a046d6985d4ad410c85211a86a4;p=pandora-kernel.git Bluetooth: btusb: Separate TX URB allocation and submission The complete TX URB handling is done via a switch statement in the btusb_send_frame function. To allow for more clear separation between control, bulk and isoc URBs, split them into allocation and submission. Previously the inc_tx function has been used for tracking in-flight URB for HCI commands and ACL data packets. Convert that into a common function that either submits the URB or queues it when needed. This provides the flexibility to allow vendor specific hdev->send_frame callbacks without having to duplicate the whole URB handling logic. Signed-off-by: Marcel Holtmann Signed-off-by: Johan Hedberg --- Reading git-diff-tree failed