Bluetooth: btusb: Fix failing to init controllers with operation firmware
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Fri, 30 Apr 2021 23:05:01 +0000 (16:05 -0700)
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Thu, 3 Jun 2021 21:02:17 +0000 (14:02 -0700)
commit1f14a620f30b01234f8b61df396f513e2ec4887f
treed943367014764050cebcc1d6198e1004c683342e
parenta83d958504734f78f42b1e3392d93816297e790a
Bluetooth: btusb: Fix failing to init controllers with operation firmware

Some firmware when operation don't may have broken versions leading to
error like the following:

[    6.176482] Bluetooth: hci0: Firmware revision 0.0 build 121 week 7 2021
[    6.177906] bluetooth hci0: Direct firmware load for intel/ibt-20-0-0.sfi failed with error -2
[    6.177910] Bluetooth: hci0: Failed to load Intel firmware file intel/ibt-20-0-0.sfi (-2)

Since we load the firmware file just to check if its version had changed
comparing to the one already loaded we can just skip since the firmware
is already operation.

Fixes: ac0565462e330 ("Bluetooth: btintel: Check firmware version before
download")
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
drivers/bluetooth/btusb.c