Bluetooth: btintel_pcie: Add recovery mechanism
authorKiran K <kiran.k@intel.com>
Tue, 1 Oct 2024 10:44:51 +0000 (16:14 +0530)
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Thu, 14 Nov 2024 20:30:53 +0000 (15:30 -0500)
commita430c2a10c743dab5a3a07bc4e9544c55bd010fd
tree8de5c6b3e1020d9ad03ac20396ee26616ab9bd89
parent05c200c8f0295c9c91beeb3ee0552331c1f8adbe
Bluetooth: btintel_pcie: Add recovery mechanism

This patch adds a recovery mechanism to recover controller if firmware
download fails due to unresponsive controller, command timeout, firmware
signature verification failure etc. Driver attmepts maximum of 5 times
before giving up.

Signed-off-by: Kiran K <kiran.k@intel.com>
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
drivers/bluetooth/btintel.c
drivers/bluetooth/btintel_pcie.c
drivers/bluetooth/btintel_pcie.h