Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

i2c-omap: Program I2C_WE on OMAP4 to enable i2c wakeup

For the I2C module to be wakeup capable, programming I2C_WE register (which
was skipped for OMAP4430) is needed even on OMAP4.

This fixes i2c controller timeouts which were seen recently with the static
dependency being cleared between MPU and L4PER clockdomains.

Signed-off-by: Rajendra Nayak <rnayak@ti.com>
[ben-linux@fluff.org: re-flowed description]
Signed-off-by: Ben Dooks <ben-linux@fluff.org>

authored by

Rajendra Nayak and committed by
Ben Dooks
120bdaa4 fb62c00a

+1 -3
+1 -3
drivers/i2c/busses/i2c-omap.c
··· 378 378 * REVISIT: Some wkup sources might not be needed. 379 379 */ 380 380 dev->westate = OMAP_I2C_WE_ALL; 381 - if (dev->rev < OMAP_I2C_REV_ON_4430) 382 - omap_i2c_write_reg(dev, OMAP_I2C_WE_REG, 383 - dev->westate); 381 + omap_i2c_write_reg(dev, OMAP_I2C_WE_REG, dev->westate); 384 382 } 385 383 } 386 384 omap_i2c_write_reg(dev, OMAP_I2C_CON_REG, 0);