Bluetooth: btnxpuart: Handle FW Download Abort scenario
authorNeeraj Sanjay Kale <neeraj.sanjaykale@nxp.com>
Wed, 15 May 2024 07:06:57 +0000 (12:36 +0530)
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Mon, 15 Jul 2024 01:33:25 +0000 (21:33 -0400)
commite3c4891098c875a63ab0c3b31d584f6d4f1895fd
tree07cbb256c8e9596756e5604e1581d29031001923
parent2684dd614ccf085b64456d78e2c23911006d503d
Bluetooth: btnxpuart: Handle FW Download Abort scenario

This adds a new flag BTNXPUART_FW_DOWNLOAD_ABORT which handles the
situation where driver is removed while firmware download is in
progress.

logs:
modprobe btnxpuart
[65239.230431] Bluetooth: hci0: ChipID: 7601, Version: 0
[65239.236670] Bluetooth: hci0: Request Firmware: nxp/uartspi_n61x_v1.bin.se
rmmod btnxpuart
[65241.425300] Bluetooth: hci0: FW Download Aborted

Signed-off-by: Neeraj Sanjay Kale <neeraj.sanjaykale@nxp.com>
Tested-by: Guillaume Legoupil <guillaume.legoupil@nxp.com>
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
drivers/bluetooth/btnxpuart.c