summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarc Schink <dev@zapb.de>2020-08-22 11:29:22 +0200
committerAngel Pons <th3fanbus@gmail.com>2021-02-07 16:53:13 +0000
commitab623c65c0a1df941d4694c8c9bb3065133fff22 (patch)
tree69fe591fec192efb2044103fa2c15e25d405791d
parentd870a35de7aef0940838da6b8e5ddd798940e7ee (diff)
downloadflashrom-ab623c65c0a1df941d4694c8c9bb3065133fff22.tar.gz
flashrom-ab623c65c0a1df941d4694c8c9bb3065133fff22.tar.bz2
flashrom-ab623c65c0a1df941d4694c8c9bb3065133fff22.zip
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>
-rw-r--r--jlink_spi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/jlink_spi.c b/jlink_spi.c
index 36611bf04..3a73c01b1 100644
--- a/jlink_spi.c
+++ b/jlink_spi.c
@@ -34,7 +34,7 @@
* Maximum number of bytes that can be transferred at once via the JTAG
* 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