Bluetooth: btusb: Handle download_firmware failure cases
authorMark Chen <mark-yw.chen@mediatek.com>
Mon, 6 Dec 2021 17:33:42 +0000 (01:33 +0800)
committerMarcel Holtmann <marcel@holtmann.org>
Tue, 7 Dec 2021 16:05:52 +0000 (17:05 +0100)
commit00c0ee9850b7b0cb7c40b8daba806ae2245e59d4
tree5ca506e0ff6ee4e0f049b29c5d3dd374e753b732
parent9a667031b9228222e7c577b39189caca5ca5bd96
Bluetooth: btusb: Handle download_firmware failure cases

For Mediatek chipset, it can not enabled if there are something wrong
in btmtk_setup_firmware_79xx(). Thus, the process must be terminated
and returned error code.

Fixes: fc342c4dc4087 ("Bluetooth: btusb: Add protocol support for MediaTek MT7921U USB devices")
Co-developed-by: Sean Wang <sean.wang@mediatek.com>
Signed-off-by: Sean Wang <sean.wang@mediatek.com>
Signed-off-by: Mark Chen <mark-yw.chen@mediatek.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
drivers/bluetooth/btusb.c