From: Marcel Holtmann Date: Sun, 18 Oct 2015 20:48:28 +0000 (+0200) Subject: Bluetooth: btbcm: Read USB product information for Apple devices X-Git-Tag: MMI-PSA29.97-13-9~9125^2~43^2~54 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=34cea41e84d5e87a0bd4d5388adab58d0cbc9532;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git Bluetooth: btbcm: Read USB product information for Apple devices For the Apple Bluetooth devices, read the USB product information and print them. This allows for easy mapping of chip and USB details. Signed-off-by: Marcel Holtmann Signed-off-by: Johan Hedberg --- diff --git a/drivers/bluetooth/btbcm.c b/drivers/bluetooth/btbcm.c index 40ad0e1ccf75..0b697946e9bc 100644 --- a/drivers/bluetooth/btbcm.c +++ b/drivers/bluetooth/btbcm.c @@ -527,6 +527,15 @@ int btbcm_setup_apple(struct hci_dev *hdev) kfree_skb(skb); } + /* Read USB Product Info */ + skb = btbcm_read_usb_product(hdev); + if (!IS_ERR(skb)) { + BT_INFO("%s: BCM: product %4.4x:%4.4x", hdev->name, + get_unaligned_le16(skb->data + 1), + get_unaligned_le16(skb->data + 3)); + kfree_skb(skb); + } + /* Read Local Name */ skb = btbcm_read_local_name(hdev); if (!IS_ERR(skb)) {