[flashrom] [PATCH] Make Bus Pirate init more robust

Carl-Daniel Hailfinger c-d.hailfinger.devel.2006 at gmx.net
Fri Sep 17 00:35:52 CEST 2010

On 17.09.2010 00:27, Mattias Mattsson wrote:
> On Fri, Jul 23, 2010 at 22:52, Carl-Daniel Hailfinger
> <c-d.hailfinger.devel.2006 at gmx.net> wrote:
>> 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.
>> Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006 at gmx.net>
> Acked-by: Mattias Mattsson <vitplister at gmail.com>

Thanks, committed in r1178.



More information about the flashrom mailing list