This is an automated email from Gerrit.

"Richard Pasek <[email protected]>" just uploaded a new patch set to Gerrit, 
which you can find at https://review.openocd.org/c/openocd/+/9573

-- gerrit

commit 6a83c5b8be8fff52ce120cb896bf867611a2b8ba
Author: Richard Pasek <[email protected]>
Date:   Wed Apr 8 16:22:19 2026 -0400

    linuxspidev: Increase min size of queue buffers
    
    When spidev queue_entries is set to 1 (to disable queueing), SPI
    exchanges fail because there isn't enough space in the queue buffer
    to send the JTAG to SWD sequence. Capping this value at 64 resolves this
    issue.
    
    Change-Id: Ic553bf95282c5b73d52467b671b51d47a856a887
    Signed-off-by: Richard Pasek <[email protected]>

diff --git a/src/jtag/drivers/linuxspidev.c b/src/jtag/drivers/linuxspidev.c
index 396f1a19a9..00dd94e7ba 100644
--- a/src/jtag/drivers/linuxspidev.c
+++ b/src/jtag/drivers/linuxspidev.c
@@ -248,8 +248,8 @@ static int spidev_alloc_queue(unsigned int 
new_queue_entries)
                return ERROR_FAIL;
        }
 
-       unsigned int new_queue_buf_size =
-               (new_queue_entries * (SWD_OP_BYTES + AP_DELAY_BYTES)) + 
END_IDLE_BYTES;
+       unsigned int new_queue_buf_size = MAX((new_queue_entries * 
(SWD_OP_BYTES + AP_DELAY_BYTES)) + END_IDLE_BYTES,
+                                                                               
  MIN_QUEUE_BYTES);
 
        queue_infos = realloc(queue_infos, sizeof(struct queue_info) * 
new_queue_entries);
        if (!queue_infos)

-- 

Reply via email to