Re: [U-Boot] [PATCH v2] common/xyzModem.c: Fix delay timeout calculation

2016-09-27 Thread Andrew F. Davis
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()

Re: [U-Boot] [PATCH v2] common/xyzModem.c: Fix delay timeout calculation

2016-09-23 Thread Tom Rini
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

[U-Boot] [PATCH v2] common/xyzModem.c: Fix delay timeout calculation

2016-09-20 Thread Andrew F. Davis
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