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

2015-08-19 Thread Gao Pandy
From: linux-i2c-ow...@vger.kernel.org <mailto:linux-i2c-ow...@vger.kernel.org> Sent: Wednesday, August 19, 2015 3:14 PM > To: Gao Pan-B54642 > Cc: w...@the-dreams.de; linux-i2c@vger.kernel.org; Li Frank-B20596; Duan > Fugang-B38611; ker...@pengutronix.de > Subject: Re: [

[Patch v3] i2c: imx: implement bus recovery

2015-08-19 Thread Gao Pan
Implement bus recovery methods for i2c-imx so we can recover from situations where SCL/SDA are stuck low. Once i2c bus SCL/SDA are stuck low during transfer, config the i2c pinctrl to gpio mode by calling pinctrl sleep set function, and then use GPIO to emulate the i2c protocol to send nine dummy

Re: [Patch v3] i2c: imx: implement bus recovery

2015-08-19 Thread Uwe Kleine-König
Hello, On Wed, Aug 19, 2015 at 03:04:01PM +0800, Gao Pan wrote: > Implement bus recovery methods for i2c-imx so we can recover from > situations where SCL/SDA are stuck low. > > Once i2c bus SCL/SDA are stuck low during transfer, config the i2c > pinctrl to gpio mode by calling pinctrl sleep set