Skip to contentSkip to conversation

Bluetooth: btusb: Add support for Intel Bluetooth Device Typhoon Peak (8087:0032)

PATCH Superseded Amit K Bag 3 participants 4 messages Apr 17, 2020 – Apr 22, 2020 Bluetooth drivers

v1 of 4 Superseded Latest is v4 →

lore
Share & tools
lore

Amit K Bag

author
#0 lore raw

PATCH 1/2 Bluetooth: btusb: Add support for Intel Bluetooth Device Typhoon Peak (8087:0032)

From: "Hegde, Raghuram" <[email protected]>

---
 drivers/bluetooth/btusb.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/bluetooth/btusb.c +2 -0
index 09913cadd1ca..7a71d851b6c9 100644
@@ -340,6 +340,8 @@ static const struct usb_device_id blacklist_table[] = {
 						     BTUSB_WIDEBAND_SPEECH },
 	{ USB_DEVICE(0x8087, 0x0029), .driver_info = BTUSB_INTEL_NEW |
 						     BTUSB_WIDEBAND_SPEECH },
+	{ USB_DEVICE(0x8087, 0x0032), .driver_info = BTUSB_INTEL_NEW |
+                                                     BTUSB_WIDEBAND_SPEECH},
 	{ USB_DEVICE(0x8087, 0x07da), .driver_info = BTUSB_CSR },
 	{ USB_DEVICE(0x8087, 0x07dc), .driver_info = BTUSB_INTEL },
 	{ USB_DEVICE(0x8087, 0x0a2a), .driver_info = BTUSB_INTEL },
Signature · 1 line
2.17.1
author
#1 lore raw

PATCH 2/2 Bluetooth: btusb: Add support for TLV read version format and multiple Secure Boot Engines

From: "Hegde, Raghuram" <[email protected]>

Two FW download flows are implemented.
1. For controllers responding to Intel Read Version in Legacy response format
2. For controllers responding to Intel Read Version in TLV response format

---
 drivers/bluetooth/Makefile    |   2 +-
 drivers/bluetooth/btintel.c   | 352 +++++++++++++++++++++--
 drivers/bluetooth/btintel.h   | 185 +++++++++++-
 drivers/bluetooth/btusb.c     | 524 ++++++++++++++++++++++++----------
 drivers/bluetooth/hci_intel.c |   6 +-
 5 files changed, 887 insertions(+), 182 deletions(-)
drivers/bluetooth/Makefile +1 -1
index 1a58a3ae142c..070b22e5ce17 100644
@@ -43,6 +43,6 @@ hci_uart-$(CONFIG_BT_HCIUART_3WIRE)	+= hci_h5.o
 hci_uart-$(CONFIG_BT_HCIUART_INTEL)	+= hci_intel.o
 hci_uart-$(CONFIG_BT_HCIUART_BCM)	+= hci_bcm.o
 hci_uart-$(CONFIG_BT_HCIUART_QCA)	+= hci_qca.o
-hci_uart-$(CONFIG_BT_HCIUART_AG6XX)	+= hci_ag6xx.o
+#hci_uart-$(CONFIG_BT_HCIUART_AG6XX)	+= hci_ag6xx.o
 hci_uart-$(CONFIG_BT_HCIUART_MRVL)	+= hci_mrvl.o
 hci_uart-objs				:= $(hci_uart-y)
drivers/bluetooth/btintel.c +332 -20

435 lines not on this page · raw message

drivers/bluetooth/btintel.h +176 -9

245 lines not on this page · raw message

drivers/bluetooth/btusb.c +375 -149

647 lines not on this page · raw message

drivers/bluetooth/hci_intel.c +3 -3
index f1299da6eed8..f817cface406 100644
@@ -531,7 +531,7 @@ static int intel_setup(struct hci_uart *hu)
 	struct intel_data *intel = hu->priv;
 	struct hci_dev *hdev = hu->hdev;
 	struct sk_buff *skb;
-	struct intel_version ver;
+	struct legacy_intel_version ver;
 	struct intel_boot_params params;
 	struct list_head *p;
 	const struct firmware *fw;
@@ -614,7 +614,7 @@ static int intel_setup(struct hci_uart *hu)
 		return -EINVAL;
 	}
 
-	btintel_version_info(hdev, &ver);
+	btintel_legacy_version_info(hdev, &ver);
 
 	/* The firmware variant determines if the device is in bootloader
 	 * mode or is running operational firmware. The value 0x06 identifies
@@ -747,7 +747,7 @@ static int intel_setup(struct hci_uart *hu)
 	set_bit(STATE_DOWNLOADING, &intel->flags);
 
 	/* Start firmware downloading and get boot parameter */
-	err = btintel_download_firmware(hdev, fw, &boot_param);
+	err = btintel_legacy_download_firmware(hdev, fw, &boot_param);
 	if (err < 0)
 		goto done;
 
Signature · 1 line
2.17.1
#2 lore raw

Re: [PATCH 2/2] Bluetooth: btusb: Add support for TLV read version format and multiple Secure Boot Engines

Thank you for the patch! Yet something to improve:

Hi Amit,

Thank you for the patch! Yet something to improve:

[auto build test ERROR on bluetooth-next/master]
[also build test ERROR on next-20200421]
[cannot apply to v5.7-rc2]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system. BTW, we also suggest to use '--base' option to specify the base tree in git format-patch, please see https://stackoverflow.com/a/37406982]

url:    https://github.com/0day-ci/linux/commits/Amit-K-Bag/Bluetooth-btusb-Add-support-for-Intel-Bluetooth-Device-Typhoon-Peak-8087-0032/20200420-144624
base:   https://git.kernel.org/pub/scm/linux/kernel/git/bluetooth/bluetooth-next.git master
config: xtensa-randconfig-a001-20200421 (attached as .config)
compiler: xtensa-linux-gcc (GCC) 9.3.0

reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day GCC_VERSION=9.3.0 make.cross ARCH=xtensa

If you fix the issue, kindly add following tag as appropriate

All errors (new ones prefixed by >>):

>> xtensa-linux-ld: drivers/bluetooth/hci_ldisc.o:(.init.literal+0x58): undefined reference to `ag6xx_init'

xtensa-linux-ld: drivers/bluetooth/hci_ldisc.o: in function `hci_uart_init':
drivers/bluetooth/hci_ldisc.c:875: undefined reference to `ag6xx_init'

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/[email protected]