summaryrefslogtreecommitdiffstats
path: root/drivers/bluetooth/btusb.c
diff options
context:
space:
mode:
authorSukumar Ghorai <sukumar.ghorai@intel.com>2020-03-16 07:07:18 +0100
committerMarcel Holtmann <marcel@holtmann.org>2020-03-16 08:57:40 +0100
commit905d7b13112dcfdba1983c014f3bf30dc3d4f179 (patch)
tree2c261673849c41f7f99982cdfab4c30a13bfb642 /drivers/bluetooth/btusb.c
parentBluetooth: L2CAP: remove set but not used variable 'credits' (diff)
downloadlinux-905d7b13112dcfdba1983c014f3bf30dc3d4f179.tar.xz
linux-905d7b13112dcfdba1983c014f3bf30dc3d4f179.zip
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 <amit.k.bag@intel.com> Signed-off-by: Sukumar Ghorai <sukumar.ghorai@intel.com> Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'drivers/bluetooth/btusb.c')
-rw-r--r--drivers/bluetooth/btusb.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/drivers/bluetooth/btusb.c b/drivers/bluetooth/btusb.c
index 4b12c34f0b22..3bdec42c9612 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;