]> www.infradead.org Git - users/jedix/linux-maple.git/commit
Bluetooth: btnxpuart: Handle bootloader error during cmd5 and cmd7
authorNeeraj Sanjay Kale <neeraj.sanjaykale@nxp.com>
Mon, 10 Mar 2025 12:02:30 +0000 (17:32 +0530)
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Tue, 25 Mar 2025 19:22:01 +0000 (15:22 -0400)
commitbf81cf29b77c09b8c0a5ef3d574945e57dfde787
tree612fdd38ce16c2e8c6bb6a20d6e30e43bda429d1
parentc59d88101cd9ed609678880e93b8e7684c7ba68e
Bluetooth: btnxpuart: Handle bootloader error during cmd5 and cmd7

This handles the scenario where the driver receives an error code after
sending cmd5 or cmd7 in the bootloader signature during FW download.
The bootloader error code is handled by the driver and FW offset is
corrected accordingly, and the cmd5 or cmd7 is re-sent to the controller
in case of CRC error.

Fixes: 689ca16e5232 ("Bluetooth: NXP: Add protocol support for NXP Bluetooth chipsets")
Signed-off-by: Neeraj Sanjay Kale <neeraj.sanjaykale@nxp.com>
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
drivers/bluetooth/btnxpuart.c