Bluetooth: btusb: Trigger Intel FW download error recovery
authorAmit K Bag <amit.k.bag@intel.com>
Thu, 17 Oct 2019 08:22:29 +0000 (13:52 +0530)
committerMarcel Holtmann <marcel@holtmann.org>
Thu, 17 Oct 2019 07:23:47 +0000 (09:23 +0200)
commitb9a2562f4918c557f664fbba215122aca3cbb2fe
tree80cce9db2d5f74521fd1c95afd1e03bdab2f2f49
parenteb8c101e28496888a0dcfe16ab86a1bee369e820
Bluetooth: btusb: Trigger Intel FW download error recovery

Sometimes during FW data download stage, in case of an error is
encountered the controller device could not be recovered. To recover
from such failures send Intel hard Reset to re-trigger FW download in
following error scenarios:

1. Intel Read version command error
2. Firmware download timeout
3. Failure in Intel Soft Reset for switching to operational FW
4. Boot timeout for switching to operaional FW

Signed-off-by: Raghuram Hegde <raghuram.hegde@intel.com>
Signed-off-by: Chethan T N <chethan.tumkur.narayan@intel.com>
Signed-off-by: Amit K Bag <amit.k.bag@intel.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
drivers/bluetooth/btintel.c
drivers/bluetooth/btintel.h
drivers/bluetooth/btusb.c