diff options
author | Marc Schink <dev@zapb.de> | 2020-08-22 11:29:22 +0200 |
---|---|---|
committer | Felix Singer <felixsinger@posteo.net> | 2022-09-29 17:02:52 +0000 |
commit | da00f265cb819c22d7ce483910a9b12855820472 (patch) | |
tree | e6158bf9a84d5f62e4c347f68e7e58418e4f5d23 | |
parent | 5096333a67a226530e20142894bed17df63553b9 (diff) | |
download | flashrom-da00f265cb819c22d7ce483910a9b12855820472.tar.gz flashrom-da00f265cb819c22d7ce483910a9b12855820472.tar.bz2 flashrom-da00f265cb819c22d7ce483910a9b12855820472.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>
Reviewed-on: https://review.coreboot.org/c/flashrom/+/67855
Reviewed-by: Felix Singer <felixsinger@posteo.net>
-rw-r--r-- | jlink_spi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/jlink_spi.c b/jlink_spi.c index 08a9ba98c..cf732b083 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 |