Re: [PATCH] i2c: i2c-gpio: fix some of gpio sleep issues

2015-04-22 Thread Uwe Kleine-König
On Fri, Mar 27, 2015 at 04:46:09PM +0100, Wolfram Sang wrote: > On Tue, Mar 17, 2015 at 12:04:29PM +, Ben Dooks wrote: > > The i2c-gpio driver can be used in systems where the GPIO itself is > > provided by a GPIO driver that may be sleeping (for example, SPI or > > USB). In this case, it is pr

Re: [Linux-kernel] [PATCH] i2c: i2c-gpio: fix some of gpio sleep issues

2015-04-22 Thread Ben Dooks
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 On 22/04/15 11:40, Ben Dooks wrote: > On 27/03/15 17:46, Wolfram Sang wrote: >> On Tue, Mar 17, 2015 at 12:04:29PM +, Ben Dooks wrote: >>> The i2c-gpio driver can be used in systems where the GPIO >>> itself is provided by a GPIO driver that may

Re: [PATCH] i2c: i2c-gpio: fix some of gpio sleep issues

2015-04-22 Thread Ben Dooks
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 On 27/03/15 17:46, Wolfram Sang wrote: > On Tue, Mar 17, 2015 at 12:04:29PM +, Ben Dooks wrote: >> The i2c-gpio driver can be used in systems where the GPIO itself >> is provided by a GPIO driver that may be sleeping (for example, >> SPI or USB).

Re: [PATCH] i2c: i2c-gpio: fix some of gpio sleep issues

2015-03-27 Thread Wolfram Sang
On Tue, Mar 17, 2015 at 12:04:29PM +, Ben Dooks wrote: > The i2c-gpio driver can be used in systems where the GPIO itself is > provided by a GPIO driver that may be sleeping (for example, SPI or > USB). In this case, it is preferable to use the _cansleep() variants > of the GPIO code. > > We c

[PATCH] i2c: i2c-gpio: fix some of gpio sleep issues

2015-03-17 Thread Ben Dooks
The i2c-gpio driver can be used in systems where the GPIO itself is provided by a GPIO driver that may be sleeping (for example, SPI or USB). In this case, it is preferable to use the _cansleep() variants of the GPIO code. We can only fix this up for the case where the i2c-gpio implementation prov