Skip to content

Commit 1f2db73

Browse files
authored
driver: bluetooth:btusb: Allow firmware re-download when version matches (#353)
driver: bluetooth:btusb: Allow firmware re-download when version matches
2 parents 18e0821 + ec8dd95 commit 1f2db73

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

drivers/bluetooth/btusb.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3475,7 +3475,10 @@ static int btusb_setup_qca_load_rampatch(struct hci_dev *hdev,
34753475
"firmware rome 0x%x build 0x%x",
34763476
rver_rom, rver_patch, ver_rom, ver_patch);
34773477

3478-
if (rver_rom != ver_rom || rver_patch <= ver_patch) {
3478+
/* Allow rampatch if version is greater than or equal to firmware version.
3479+
* Equal versions are acceptable for re-flashing or recovery scenarios.
3480+
*/
3481+
if (rver_rom != ver_rom || rver_patch < ver_patch) {
34793482
bt_dev_err(hdev, "rampatch file version did not match with firmware");
34803483
err = -EINVAL;
34813484
goto done;

0 commit comments

Comments
 (0)