RE: [Patch V5] ARM: dts: imx6qdl-sabresd: add i2c pinctrl gpio state for bus recovery

2015-09-18 Thread Gao Pandy
Ping... From: Gao Pan Sent: Friday, September 11, 2015 6:43 PM > To: w...@the-dreams.de; u.kleine-koe...@pengutronix.de; > shawn...@kernel.org; ker...@pengutronix.de > Cc: linux-i2c@vger.kernel.org; Li Frank-B20596; Duan Fugang-B38611; Gao > Pan-B54642;

RE: [Patch V5] i2c: imx: implement bus recovery

2015-09-18 Thread Gao Pandy
Ping... From: Gao Pan Sent: Friday, September 11, 2015 6:43 PM > To: w...@the-dreams.de; u.kleine-koe...@pengutronix.de; > shawn...@kernel.org; ker...@pengutronix.de > Cc: linux-i2c@vger.kernel.org; Li Frank-B20596; Duan Fugang-B38611; Gao > Pan-B54642;

[PATCH v2 1/1] i2c: core: fix a code to suppress a warning

2015-09-18 Thread Andy Shevchenko
There is a warning when compiling i2c-core.c drivers/i2c/i2c-core.c:2561:36: warning: dubious: x | !y Fix it by using a plain bitwise AND since I2C_M_RD is a bit 0 and thus we are on the safe side. Signed-off-by: Andy Shevchenko --- drivers/i2c/i2c-core.c | 2

[Patch V8] i2c: imx: add runtime pm support to improve the performance

2015-09-18 Thread Gao Pan
In our former i2c driver, i2c clk is enabled and disabled in xfer function, which contributes to power saving. However, the clk enable process brings a busy wait delay until the core is stable. As a result, the performance is sacrificed. To weigh the power consumption and i2c bus performance,