summaryrefslogtreecommitdiffstats
path: root/flashchips.h
diff options
context:
space:
mode:
authorCarl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>2010-09-16 22:34:25 +0000
committerCarl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>2010-09-16 22:34:25 +0000
commitd2f007f98b64969bf788d251377c41e75abb69b1 (patch)
treedd8ff0f4846f741f85d58af6b553ef690c453f87 /flashchips.h
parentf4925168c86e5f2c514e478af9f413eb855d663d (diff)
downloadast2050-flashrom-d2f007f98b64969bf788d251377c41e75abb69b1.zip
ast2050-flashrom-d2f007f98b64969bf788d251377c41e75abb69b1.tar.gz
Handle Bus Pirates already in bit banging mode correctly
Thanks to Johannes Sjölund for reporting that the Bus Pirate init could not deal with a Bus Pirate which is already in binary Bitbang mode. This is caused by a combination of the slowness of the Bus Pirate, the slowness of USB and a fast serial port flush routine which just flushes the buffer contents and does not wait until data arrival stops. Make the Bus Pirate init more robust by running the flush command 10 times with 1.5 ms delay in between. This code development was sponsored by Mattias Mattsson. Thanks! Tested a few dozen times, should work reliably. Corresponding to flashrom svn r1178. Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> Acked-by: Mattias Mattsson <vitplister@gmail.com>
Diffstat (limited to 'flashchips.h')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud