[U-Boot] [PATCH v2] common/xyzModem.c: Fix delay timeout calculation
Andrew F. Davis
afd at ti.com
Tue Sep 27 18:27:42 CEST 2016
On 09/23/2016 02:57 PM, Tom Rini wrote:
> On Tue, Sep 20, 2016 at 10:39:49AM -0500, Andrew F. Davis wrote:
>
>> When waiting for input in CYGACC_COMM_IF_GETC_TIMEOUT we delay 2
>> seconds by incrementing and checking a counter variable every 20
>> uSeconds. The overhead in the loop calling tstc() thousands of times
>> causes the timeout to be closer to 20 seconds. Delay longer per iteration
>> to reduce overhead and bring the timeout back closer to the correct time.
>>
>> Signed-off-by: Andrew F. Davis <afd at ti.com>
>
> Reviewed-by: Tom Rini <trini at konsulko.com>
>
I was just informed that this may be breaking UART boot on a couple of
our platforms, so this shouldn't be taken until I can get this figured out.
Thanks,
Andrew
More information about the U-Boot
mailing list