jacky liu

i.MX28 Linux BSP I2C source codes bug

Discussion created by jacky liu Employee on Mar 28, 2012
Latest reply on Feb 14, 2013 by Artem Kamshilin

in drivers/i2c/busses/i2c-mxs.c, mxs_i2c_xfer_msg() function:
below codes are not correct:
 err = wait_for_completion_interruptible_timeout(&dev->cmd_complete,
       msecs_to_jiffies(1000)
     );
 if (err <= 0) {
  mxs_i2c_reset(dev);
  dev_dbg(dev->dev, "controller is timed out\n");
  return -ETIMEDOUT;
 }

Outcomes