From b67b5c5dc12c619e304c755faf05c3a8259583e7 Mon Sep 17 00:00:00 2001 From: Matthias Ringwald Date: Fri, 29 Mar 2024 12:51:43 +0100 Subject: [PATCH] bluetooth: cyw43xxx: support newer PatchRAM files The CYW43xxx for Infineon Controllers stops after the first LauncRAM command. Newer Controllers like the CYW5557x update the firmware in multiple stages, which is supported by this commit. Signed-off-by: Matthias Ringwald --- drivers/bluetooth/hci/h4_ifx_cyw43xxx.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/bluetooth/hci/h4_ifx_cyw43xxx.c b/drivers/bluetooth/hci/h4_ifx_cyw43xxx.c index 8e57b7f47f8..ffdda83281b 100644 --- a/drivers/bluetooth/hci/h4_ifx_cyw43xxx.c +++ b/drivers/bluetooth/hci/h4_ifx_cyw43xxx.c @@ -189,6 +189,7 @@ static int bt_firmware_download(const uint8_t *firmware_image, uint32_t size) switch (op_code) { case BT_HCI_VND_OP_WRITE_RAM: + case BT_HCI_VND_OP_LAUNCH_RAM: /* Update remaining length and data pointer: * content of data length + 2 bytes of opcode and 1 byte of data length. */ @@ -196,10 +197,6 @@ static int bt_firmware_download(const uint8_t *firmware_image, uint32_t size) remaining_length -= data_length + 3; break; - case BT_HCI_VND_OP_LAUNCH_RAM: - remaining_length = 0; - break; - default: return -ENOMEM; }