Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Bluetooth: btintel_pcie: Print Firmware Sequencer information

Firmware sequencer (FSEQ) is a common code shared across Bluetooth
and Wifi. Printing FSEQ will help to debug if there is any mismatch
between Bluetooth and Wifi FSEQ.

Make 'btintel_print_fseq_info' public and use it in btintel_pcie.c.

dmesg:

....

[ 5335.695740] Bluetooth: hci0: Device booted in 33872 usecs
[ 5335.695918] Bluetooth: hci0: Found Intel DDC parameters: intel/ibt-0190-0291.ddc
[ 5335.697011] Bluetooth: hci0: Applying Intel DDC parameters completed
[ 5335.697837] Bluetooth: hci0: Firmware timestamp 2024.20 buildtype 0 build 62871
[ 5335.697848] Bluetooth: hci0: Firmware SHA1: 0xeffdce06
[ 5335.698655] Bluetooth: hci0: Fseq status: Success (0x00)
[ 5335.698666] Bluetooth: hci0: Fseq executed: 00.00.04.176
[ 5335.698670] Bluetooth: hci0: Fseq BT Top: 00.00.04.176
[ 5335.750204] Bluetooth: MGMT ver 1.22

Signed-off-by: Kiran K <kiran.k@intel.com>
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>

authored by

Kiran K and committed by
Luiz Augusto von Dentz
17813af5 064aee50

+9 -1
+2 -1
drivers/bluetooth/btintel.c
··· 2662 2662 } 2663 2663 EXPORT_SYMBOL_GPL(btintel_set_msft_opcode); 2664 2664 2665 - static void btintel_print_fseq_info(struct hci_dev *hdev) 2665 + void btintel_print_fseq_info(struct hci_dev *hdev) 2666 2666 { 2667 2667 struct sk_buff *skb; 2668 2668 u8 *p; ··· 2774 2774 2775 2775 kfree_skb(skb); 2776 2776 } 2777 + EXPORT_SYMBOL_GPL(btintel_print_fseq_info); 2777 2778 2778 2779 static int btintel_setup_combined(struct hci_dev *hdev) 2779 2780 {
+5
drivers/bluetooth/btintel.h
··· 244 244 struct intel_version_tlv *ver); 245 245 int btintel_shutdown_combined(struct hci_dev *hdev); 246 246 void btintel_hw_error(struct hci_dev *hdev, u8 code); 247 + void btintel_print_fseq_info(struct hci_dev *hdev); 247 248 #else 248 249 249 250 static inline int btintel_check_bdaddr(struct hci_dev *hdev) ··· 372 371 } 373 372 374 373 static inline void btintel_hw_error(struct hci_dev *hdev, u8 code) 374 + { 375 + } 376 + 377 + static inline void btintel_print_fseq_info(struct hci_dev *hdev) 375 378 { 376 379 } 377 380 #endif
+2
drivers/bluetooth/btintel_pcie.c
··· 1197 1197 bt_dev_err(hdev, "Unsupported Intel hw variant (%u)", 1198 1198 INTEL_HW_VARIANT(ver_tlv.cnvi_bt)); 1199 1199 err = -EINVAL; 1200 + goto exit_error; 1200 1201 break; 1201 1202 } 1202 1203 1204 + btintel_print_fseq_info(hdev); 1203 1205 exit_error: 1204 1206 kfree_skb(skb); 1205 1207