From: Marcel Holtmann Date: Tue, 20 Oct 2015 00:30:48 +0000 (+0200) Subject: Bluetooth: btusb: Set early vendor info for Intel and Broadcom X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=49a5f782d03888e8b55ed799e57a592b76ce32f6;p=sagit-ice-cold%2Fkernel_xiaomi_msm8998.git Bluetooth: btusb: Set early vendor info for Intel and Broadcom For the controllers from Intel and Broadcom (including Apple), it is helpful to have the information about the manufacturer send out early. This patch sets the hdev->manufacturer information which will be send out before actually calling the vendor specific hdev->setup driver callback. Signed-off-by: Marcel Holtmann Signed-off-by: Johan Hedberg --- diff --git a/drivers/bluetooth/btusb.c b/drivers/bluetooth/btusb.c index c064bb9540ee..9ed334de34d0 100644 --- a/drivers/bluetooth/btusb.c +++ b/drivers/bluetooth/btusb.c @@ -2874,6 +2874,7 @@ static int btusb_probe(struct usb_interface *intf, #ifdef CONFIG_BT_HCIBTUSB_BCM if (id->driver_info & BTUSB_BCM_PATCHRAM) { + hdev->manufacturer = 15; hdev->setup = btbcm_setup_patchram; hdev->set_diag = btusb_bcm_set_diag; hdev->set_bdaddr = btbcm_set_bdaddr; @@ -2883,6 +2884,7 @@ static int btusb_probe(struct usb_interface *intf, } if (id->driver_info & BTUSB_BCM_APPLE) { + hdev->manufacturer = 15; hdev->setup = btbcm_setup_apple; hdev->set_diag = btusb_bcm_set_diag; @@ -2892,6 +2894,7 @@ static int btusb_probe(struct usb_interface *intf, #endif if (id->driver_info & BTUSB_INTEL) { + hdev->manufacturer = 2; hdev->setup = btusb_setup_intel; hdev->shutdown = btusb_shutdown_intel; hdev->set_diag = btintel_set_diag_mfg; @@ -2902,6 +2905,7 @@ static int btusb_probe(struct usb_interface *intf, } if (id->driver_info & BTUSB_INTEL_NEW) { + hdev->manufacturer = 2; hdev->send = btusb_send_frame_intel; hdev->setup = btusb_setup_intel_new; hdev->hw_error = btintel_hw_error;