From 905d7b13112dcfdba1983c014f3bf30dc3d4f179 Mon Sep 17 00:00:00 2001 From: Sukumar Ghorai Date: Mon, 16 Mar 2020 11:37:18 +0530 Subject: [PATCH] Bluetooth: btusb: print Intel fw build version in power-on boot To determine the build version of Bluetooth firmware to ensure reported issue related to a particular release. This is very helpful for every fw downloaded to BT controller and issue reported from field test. Signed-off-by: Amit K Bag Signed-off-by: Sukumar Ghorai Signed-off-by: Marcel Holtmann --- drivers/bluetooth/btusb.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/drivers/bluetooth/btusb.c b/drivers/bluetooth/btusb.c index 4b12c34f0b22d..3bdec42c96123 100644 --- a/drivers/bluetooth/btusb.c +++ b/drivers/bluetooth/btusb.c @@ -1938,7 +1938,14 @@ static int btusb_setup_intel(struct hci_dev *hdev) if (err) return err; - bt_dev_info(hdev, "Intel firmware patch completed and activated"); + /* Need build number for downloaded fw patches in + * every power-on boot + */ + err = btintel_read_version(hdev, &ver); + if (err) + return err; + bt_dev_info(hdev, "Intel BT fw patch 0x%02x completed & activated", + ver.fw_patch_num); goto complete; -- 2.39.5