Bluetooth: btintel: Move operational checks after version check
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Tue, 23 Mar 2021 18:58:57 +0000 (11:58 -0700)
committerMarcel Holtmann <marcel@holtmann.org>
Thu, 25 Mar 2021 15:09:41 +0000 (16:09 +0100)
commit9b16bfbf411664697817385096ce59df453e1fb6
tree1526d3daab004279698204510ecd2e48496bda46
parentac0565462e330a2b762ca5849a4140b29d725786
Bluetooth: btintel: Move operational checks after version check

In order to allow new firmware to load, it first needs to check if the
firmware version on file matches the one loaded if it doesn't, then it
needs to revert to bootloader mode in order to load the new firmware.

Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Tested-by: Tedd Ho-Jeong An <tedd.an@intel.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
drivers/bluetooth/btintel.c
drivers/bluetooth/btusb.c