Skip to contentSkip to conversation

Bluetooth: btusb: print FW version after FW download

PATCH Superseded Amit K Bag 2 participants 3 messages Sep 27, 2019 Bluetooth drivers

lore
Share & tools
lore

Amit K Bag

author
#0 lore raw

PATCH 1/1 Bluetooth: btusb: print FW version after FW download

After FW download there is no print to confirm the current FW version. Add print to check FW version incase of FW download.

---
 drivers/bluetooth/btusb.c | 8 ++++++++
 1 file changed, 8 insertions(+)
drivers/bluetooth/btusb.c +8 -0
index a9c35ebb30f8..f6c033b5042c 100644
@@ -2432,6 +2432,14 @@ static int btusb_setup_intel_new(struct hci_dev *hdev)
 	 */
 	btintel_set_event_mask(hdev, false);
 
+	/* Read the Intel version information after loading the FW  */
+	err = btintel_read_version(hdev, &ver);
+	if (err)
+		return err;
+
+	btintel_version_info(hdev, &ver);
+	bt_dev_info(hdev, "Setup complete");
+
 	return 0;
 }
 
Signature · 1 line
2.7.4
author
#1 lore raw

PATCH v2 1/1 Bluetooth: btusb: print FW version after FW download

After FW download there is no print to confirm the current FW version. Add print to check FW version incase of FW download.

---
 drivers/bluetooth/btusb.c | 7 +++++++
 1 file changed, 7 insertions(+)
drivers/bluetooth/btusb.c +7 -0
index a9c35ebb30f8..270e892c7c8f 100644
@@ -2432,6 +2432,13 @@ static int btusb_setup_intel_new(struct hci_dev *hdev)
 	 */
 	btintel_set_event_mask(hdev, false);
 
+	/* Read the Intel version information after loading the FW  */
+	err = btintel_read_version(hdev, &ver);
+	if (err)
+		return err;
+
+	btintel_version_info(hdev, &ver);
+
 	return 0;
 }
 
Signature · 1 line
2.7.4