summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorUwe Hermann <uwe@hermann-uwe.de>2010-10-05 21:21:09 +0000
committerUwe Hermann <uwe@hermann-uwe.de>2010-10-05 21:21:09 +0000
commit16ce40ec4e4c236357bc3bf984757438aa8ff764 (patch)
treefbfb6428bc8b4f2bc3347025f060d0fe2e7fe3f2
parentcbee4a7242c2c54d64ff22b08e023d0bcec2113a (diff)
downloadast2050-flashrom-16ce40ec4e4c236357bc3bf984757438aa8ff764.zip
ast2050-flashrom-16ce40ec4e4c236357bc3bf984757438aa8ff764.tar.gz
Quick fix for broken writes on FT2232H based programmers
Not sure if this is the final/correct fix, but for now it definately fixes writes on FT2232H hardware. I have tested this on both, the DLP Design DLP-USB1232H, and the openbiosprog-spi hardware. Thanks to Joshua Roys <roysjosh@gmail.com> for the hint on IRC. Corresponding to flashrom svn r1190. Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de> Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
-rw-r--r--ft2232_spi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ft2232_spi.c b/ft2232_spi.c
index 0ffe1ce..30eff42 100644
--- a/ft2232_spi.c
+++ b/ft2232_spi.c
@@ -195,7 +195,7 @@ int ft2232_spi_init(void)
msg_perr("Unable to set latency timer\n");
}
- if (ftdi_write_data_set_chunksize(ftdic, 512)) {
+ if (ftdi_write_data_set_chunksize(ftdic, 256)) {
msg_perr("Unable to set chunk size\n");
}
OpenPOWER on IntegriCloud