Re: [PATCH v2 5/7] mfd: cros_ec: wait for completion of commands that return IN_PROGRESS

2014-09-08 Thread Javier Martinez Canillas
Hello Lee, On 09/04/2014 10:34 AM, Lee Jones wrote: On Mon, 25 Aug 2014, Javier Martinez Canillas wrote: From: Andrew Bresticker abres...@chromium.org When an EC command returns EC_RES_IN_PROGRESS, we need to query the state of the EC until it indicates that it is no longer busy. Do this

Re: [PATCH v2 5/7] mfd: cros_ec: wait for completion of commands that return IN_PROGRESS

2014-09-08 Thread Lee Jones
On Mon, 08 Sep 2014, Javier Martinez Canillas wrote: On 09/04/2014 10:34 AM, Lee Jones wrote: On Mon, 25 Aug 2014, Javier Martinez Canillas wrote: From: Andrew Bresticker abres...@chromium.org When an EC command returns EC_RES_IN_PROGRESS, we need to query the state of the EC until it

Re: [PATCH v2 5/7] mfd: cros_ec: wait for completion of commands that return IN_PROGRESS

2014-09-08 Thread Andrew Bresticker
On Mon, Sep 8, 2014 at 4:39 AM, Javier Martinez Canillas javier.marti...@collabora.co.uk wrote: Hello Lee, On 09/04/2014 10:34 AM, Lee Jones wrote: On Mon, 25 Aug 2014, Javier Martinez Canillas wrote: From: Andrew Bresticker abres...@chromium.org When an EC command returns

Re: [PATCH v2 5/7] mfd: cros_ec: wait for completion of commands that return IN_PROGRESS

2014-09-04 Thread Lee Jones
On Mon, 25 Aug 2014, Javier Martinez Canillas wrote: From: Andrew Bresticker abres...@chromium.org When an EC command returns EC_RES_IN_PROGRESS, we need to query the state of the EC until it indicates that it is no longer busy. Do this in cros_ec_cmd_xfer() under the EC's mutex so that

[PATCH v2 5/7] mfd: cros_ec: wait for completion of commands that return IN_PROGRESS

2014-08-25 Thread Javier Martinez Canillas
From: Andrew Bresticker abres...@chromium.org When an EC command returns EC_RES_IN_PROGRESS, we need to query the state of the EC until it indicates that it is no longer busy. Do this in cros_ec_cmd_xfer() under the EC's mutex so that other commands (e.g. keyboard, I2C passtru) aren't issued to