Skip to content

Commit

Permalink
BT: add reset even bt firmware already reloaded
Browse files Browse the repository at this point in the history
this fix reboot bt failure init issue in VM env.

Tracked-On: OAM-125247
Tracked-On: OAM-127456
Tracked-On: OAM-127455
Tracked-On: OAM-125249
Signed-off-by: Austin Sun <[email protected]>
  • Loading branch information
sunausti authored and xyzhao2018 committed Dec 5, 2024
1 parent 7314f34 commit 4db9bc3
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions drivers/bluetooth/btintel.c
Original file line number Diff line number Diff line change
Expand Up @@ -2206,8 +2206,12 @@ static int btintel_prepare_fw_download_tlv(struct hci_dev *hdev,
if (err < 0) {
if (err == -EALREADY) {
/* Firmware has already been loaded */
btintel_set_flag(hdev, INTEL_FIRMWARE_LOADED);
err = 0;
bt_dev_info(hdev, "Firmware already loaded");
//btintel_set_flag(hdev, INTEL_FIRMWARE_LOADED);
btintel_reset_to_bootloader(hdev);
/*even this error report, the BT still working ,
so 150ms delay is still needed */
msleep(150);
goto done;
}

Expand Down

0 comments on commit 4db9bc3

Please sign in to comment.