]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
Bluetooth: btusb: print Intel fw build version in power-on boot
authorSukumar Ghorai <sukumar.ghorai@intel.com>
Mon, 16 Mar 2020 06:07:18 +0000 (11:37 +0530)
committerMarcel Holtmann <marcel@holtmann.org>
Mon, 16 Mar 2020 07:57:40 +0000 (08:57 +0100)
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>
drivers/bluetooth/btusb.c

index 4b12c34f0b22d301f6a77f503cbd17c567fe4638..3bdec42c961239811461365f7fab202612df322c 100644 (file)
@@ -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;