Bluetooth: btrtl: Load FW v2 otherwise FW v1 for RTL8852C
authorMax Chou <max.chou@realtek.com>
Mon, 7 Aug 2023 11:42:59 +0000 (19:42 +0800)
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Fri, 11 Aug 2023 18:57:13 +0000 (11:57 -0700)
commitbd003fb338afee97c76f13c3e9144a7e4ad37179
tree4ffac600b1b254589d9ab39317305e6a37262101
parent3cd43dd15f9dbfb67a60889992bf03b92370b202
Bluetooth: btrtl: Load FW v2 otherwise FW v1 for RTL8852C

In this commit, prefer to load FW v2 if available. Fallback to FW v1
otherwise. This behavior is only for RTL8852C.

Fixes: 9a24ce5e29b1 ("Bluetooth: btrtl: Firmware format v2 support")
Cc: stable@vger.kernel.org
Suggested-by: Juerg Haefliger <juerg.haefliger@canonical.com>
Tested-by: Hilda Wu <hildawu@realtek.com>
Signed-off-by: Max Chou <max.chou@realtek.com>
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
drivers/bluetooth/btrtl.c