Previously we only print "bus idle" log when the bus is busy.
This patch we put I2C STAT SFR info for more convinient debugging.
Change-Id: I9b18366f7bdcdacfec0e7d0ae4b7cc4e26851e73
Signed-off-by: Kyungwoo Kang <kwoo.kang@samsung.com>
}
if (iicstat & S3C2410_IICSTAT_START) {
- dev_warn(i2c->dev, "timeout waiting for bus idle\n");
+ dev_warn(i2c->dev, "timeout waiting for bus idle\n"
+ "I2C Stat Reg dump:\n"
+ "IIC STAT = 0x%08x\n"
+ , readl(i2c->regs + S3C2410_IICSTAT));
if (i2c->state != STATE_STOP)
s3c24xx_i2c_stop(i2c, -ENXIO);
}