1
0
mirror of https://review.coreboot.org/flashrom.git synced 2025-04-27 23:22:37 +02:00

jlink_spi: Reduce transfer size

The maximum transfer size is too large for some devices and
results in an USB timeout.

Change-Id: If2c00b1524ec56740bdfe290096c3546cf375d73
Signed-off-by: Marc Schink <dev@zapb.de>
Reviewed-on: https://review.coreboot.org/c/flashrom/+/48379
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Miklós Márton <martonmiklosqdev@gmail.com>
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
This commit is contained in:
Marc Schink 2020-08-22 11:29:22 +02:00 committed by Angel Pons
parent d870a35de7
commit ab623c65c0

View File

@ -34,7 +34,7 @@
* Maximum number of bytes that can be transferred at once via the JTAG * Maximum number of bytes that can be transferred at once via the JTAG
* interface, see jaylink_jtag_io(). * interface, see jaylink_jtag_io().
*/ */
#define JTAG_MAX_TRANSFER_SIZE (UINT16_MAX / 8) #define JTAG_MAX_TRANSFER_SIZE (32768 / 8)
/* /*
* Default base frequency in Hz. Used when the base frequency can not be * Default base frequency in Hz. Used when the base frequency can not be