Skip to content

Commit 1723b55

Browse files
kirankrishnappa-intelVudentz
authored andcommitted
Bluetooth: btintel: Fix the sfi name for BlazarU
Use INTEL_HW_VARIANT() instead of CNVi Id to decide to load Intermediate Loader (IML) image. Fix the driver loading incorrect firmware for BlazarU product. dmesg: ..... [146.111834] Bluetooth: hci0: Minimum firmware build 1 week 10 2014 [146.111839] Bluetooth: hci0: Bootloader timestamp 2022.18 buildtype 1 build 16362 [146.111848] Bluetooth: hci0: No support for _PRR ACPI method [146.112204] Bluetooth: hci0: Failed to load Intel firmware file intel/ibt-0291-0291-iml.sfi (-2) Fixes: 164c62f ("Bluetooth: btintel: Add firmware ID to firmware name") Reported-by: Tsigan, Vladislav <[email protected]> Signed-off-by: Kiran K <[email protected]> Signed-off-by: Luiz Augusto von Dentz <[email protected]>
1 parent fb5e471 commit 1723b55

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/bluetooth/btintel.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2148,7 +2148,7 @@ static void btintel_get_fw_name_tlv(const struct intel_version_tlv *ver,
21482148
/* Only Blazar product supports downloading of intermediate loader
21492149
* image
21502150
*/
2151-
if ((ver->cnvi_top & 0xfff) >= BTINTEL_CNVI_BLAZARI) {
2151+
if (INTEL_HW_VARIANT(ver->cnvi_bt) >= 0x1e) {
21522152
u8 zero[BTINTEL_FWID_MAXLEN];
21532153

21542154
if (ver->img_type == BTINTEL_IMG_BOOTLOADER) {
@@ -2240,7 +2240,7 @@ static int btintel_prepare_fw_download_tlv(struct hci_dev *hdev,
22402240
* firmware image which doesn't exist. Lets compare the version
22412241
* of IML image
22422242
*/
2243-
if ((ver->cnvi_top & 0xfff) >= BTINTEL_CNVI_BLAZARI)
2243+
if (INTEL_HW_VARIANT(ver->cnvi_bt) >= 0x1e)
22442244
btintel_get_iml_tlv(ver, fwname, sizeof(fwname), "sfi");
22452245
else
22462246
btintel_get_fw_name_tlv(ver, fwname, sizeof(fwname), "sfi");

0 commit comments

Comments
 (0)