trunks: make timeout calculations more accurate
The existing timeout calculation assumes that actual communication
with the chip is instantaneous. It is an almost true assumption for a
hardware interfaced device (LPC), but is wrong for the FTDI case.
Let's use system clock to make sure that timeouts are accurate and
while we are at it set the default timeout to 10 s.
TEST=observed proper timeouts during the test run
Signed-off-by: Vadim Bendebury <email@example.com>
Reviewed-by: Bill Richardson <firstname.lastname@example.org>
2 files changed