kernel - Reduce ig4 receive errors
authorMatthew Dillon <dillon@apollo.backplane.com>
Fri, 15 Aug 2014 17:05:21 +0000 (10:05 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Fri, 15 Aug 2014 17:05:21 +0000 (10:05 -0700)
commitffcfd82d02034a17cb4c9a62369e77682cdba2ef
tree8f4fb63f60fceef53678b5097570f3fa50e192f2
parent36679856f75062deb2a9f87e4963e641dedcd732
kernel - Reduce ig4 receive errors

* The timeout code now checks the FIFO and register status at least once
  before testing whether the timeout has been exceeded, and at least once
  more after waiting the timeout period.

  Previously the code would check, see that no data was present, then delay
  a little and check whether a timeout occurred after the delay without
  again testing whether data is present.

* Appears to fix receive timeouts reported by cyapa and atmel_mxt.
sys/bus/smbus/ichiic/ig4_iic.c