We should be using usecs_to_jiffies() for microsecond values. Correct
this.
BUG=chrome-os-partner:12420
BRANCH=snow
TEST=manual
On kernel:
while true; do i2cdump -f -y 4 0x48; done >/dev/null
On EC:
pmu 1000
See that there are no errors.
Change-Id: I589721e200ad9ad7d872ee952aece84ca2bec923
Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-on: https://gerrit.chromium.org/gerrit/31924
Reviewed-by: Doug Anderson <dianders@chromium.org>
return 0;
/* Start a round of trying to claim the bus */
- stop_time = jiffies + msecs_to_jiffies(i2c->wait_free_us) + 1;
+ stop_time = jiffies + usecs_to_jiffies(i2c->wait_free_us) + 1;
do {
/* Indicate that we want to claim the bus */
gpio_set_value(i2c->arb_gpios[I2C_ARB_GPIO_AP], 0);