[Precise][PATCH 1/2] UBUNTU: SAUCE: Bluetooth: Getting ID from descriptor instead of matched rule

Brad Figg brad.figg at canonical.com
Tue Oct 23 15:18:55 UTC 2012


On 10/23/2012 02:05 AM, Jesse Sung wrote:
> From: Wen-chien Jesse Sung <jesse.sung at canonical.com>
>
> BugLink: https://launchpad.net/bugs/1065400
>
> Since the matched rule could be specified by
> USB_VENDOR_AND_INTERFACE_INFO() instead of USB_DEVICE(),
> use the ID in descriptor to make sure we can really get
> the correct one.
>
> Signed-off-by: Wen-chien Jesse Sung <jesse.sung at canonical.com>
> ---
>   drivers/bluetooth/btusb.c |    3 ++-
>   1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/bluetooth/btusb.c b/drivers/bluetooth/btusb.c
> index 96baae6..ba88eb4 100644
> --- a/drivers/bluetooth/btusb.c
> +++ b/drivers/bluetooth/btusb.c
> @@ -944,7 +944,8 @@ static void btusb_load_firmware(struct hci_dev *hdev)
>   		return;
>
>   	snprintf(filename, PATCHRAM_NAME_LEN, "fw-%04x_%04x.hcd",
> -			id->idVendor, id->idProduct);
> +			le16_to_cpu(udev->descriptor.idVendor),
> +			le16_to_cpu(udev->descriptor.idProduct));
>   	if (request_firmware(&fw, (const char *) filename, &udev->dev) < 0) {
>   		BT_INFO("can't load firmware, may not work correctly");
>   		return;
>

Have these patches been sent upstream?

-- 
Brad Figg brad.figg at canonical.com http://www.canonical.com




More information about the kernel-team mailing list