UPSTREAM: lpss_i2c: Increase default timeout to 4ms

Increase the default timeout in the LPSS I2C driver to 4ms
from 2ms.  During testing with some slower devices I found
that the existing timeout could be too short leading to
transaction failures.

BUG=None
BRANCH=None
TEST=None

Signed-off-by: Duncan Laurie <dlaurie@chromium.org>
Reviewed-on: https://review.coreboot.org/16392
Reviewed-by: Furquan Shaikh <furquan@google.com>
Tested-by: build bot (Jenkins)
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>

Change-Id: Ied86c7a0aa26d55b31f447c5938803c194d0045e
Reviewed-on: https://chromium-review.googlesource.com/381654
Commit-Ready: Furquan Shaikh <furquan@chromium.org>
Tested-by: Furquan Shaikh <furquan@chromium.org>
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
This commit is contained in:
Duncan Laurie 2016-09-01 14:22:34 -07:00 committed by chrome-bot
commit 63e438f86c

View file

@ -60,8 +60,8 @@ struct lpss_i2c_regs {
uint32_t tx_abort_source;
} __attribute__((packed));
/* Use a ~2ms timeout for various operations */
#define LPSS_I2C_TIMEOUT_US 2000
/* Use a ~4ms timeout for various operations */
#define LPSS_I2C_TIMEOUT_US 4000
/* High and low times in different speed modes (in ns) */
enum {