]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
Bluetooth: btmtk: Add reset mechanism if downloading firmware failed
authorChris Lu <chris.lu@mediatek.com>
Tue, 3 Feb 2026 06:25:10 +0000 (14:25 +0800)
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Fri, 10 Apr 2026 14:21:39 +0000 (10:21 -0400)
commit679621a767bfa0a2cb77fbd8b664412e9e3f89cf
tree54b48f9509b568e3c2a323914663b0fa8e89f0d9
parentb27a306e9f206aaf10f22b0c6338d7b97799c7b7
Bluetooth: btmtk: Add reset mechanism if downloading firmware failed

Add a new flag 'BTMTK_FIRMWARE_DL_RETRY'.
If an error occurs during mt79xx firmware download process, this flag
will be set and cleared after a reset. If the flag is already set and
firmware still cannot be loaded successfully after a reset, no further
reset attempts will be made. In other words, if there is a problem during
firmware download, only one reset will be attempted.

Signed-off-by: Chris Lu <chris.lu@mediatek.com>
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
drivers/bluetooth/btmtk.c
drivers/bluetooth/btmtk.h