Re: [PATCH 2/3] mfd: cros_ec: Use the proper size when looking at the cros_ec_i2c result

2014-07-03 Thread Lee Jones
On Wed, 02 Jul 2014, Doug Anderson wrote: > On Wed, Jul 2, 2014 at 12:23 AM, Lee Jones wrote: > > On Fri, 27 Jun 2014, Doug Anderson wrote: > > > >> We know how many bytes the EC should be sending us (which is also the > >> number of bytes transferred) and also how many bytes the EC actually > >>

Re: [PATCH 2/3] mfd: cros_ec: Use the proper size when looking at the cros_ec_i2c result

2014-07-03 Thread Lee Jones
On Wed, 02 Jul 2014, Doug Anderson wrote: On Wed, Jul 2, 2014 at 12:23 AM, Lee Jones lee.jo...@linaro.org wrote: On Fri, 27 Jun 2014, Doug Anderson wrote: We know how many bytes the EC should be sending us (which is also the number of bytes transferred) and also how many bytes the EC

Re: [PATCH 2/3] mfd: cros_ec: Use the proper size when looking at the cros_ec_i2c result

2014-07-02 Thread Doug Anderson
Lee, On Wed, Jul 2, 2014 at 12:23 AM, Lee Jones wrote: > On Fri, 27 Jun 2014, Doug Anderson wrote: > >> We know how many bytes the EC should be sending us (which is also the >> number of bytes transferred) and also how many bytes the EC actually >> wanted to send to us. When computing the

Re: [PATCH 2/3] mfd: cros_ec: Use the proper size when looking at the cros_ec_i2c result

2014-07-02 Thread Lee Jones
On Fri, 27 Jun 2014, Doug Anderson wrote: > We know how many bytes the EC should be sending us (which is also the > number of bytes transferred) and also how many bytes the EC actually > wanted to send to us. When computing the checksum and copying back > data let's make sure we take the lesser

Re: [PATCH 2/3] mfd: cros_ec: Use the proper size when looking at the cros_ec_i2c result

2014-07-02 Thread Lee Jones
On Fri, 27 Jun 2014, Doug Anderson wrote: We know how many bytes the EC should be sending us (which is also the number of bytes transferred) and also how many bytes the EC actually wanted to send to us. When computing the checksum and copying back data let's make sure we take the lesser of

Re: [PATCH 2/3] mfd: cros_ec: Use the proper size when looking at the cros_ec_i2c result

2014-07-02 Thread Doug Anderson
Lee, On Wed, Jul 2, 2014 at 12:23 AM, Lee Jones lee.jo...@linaro.org wrote: On Fri, 27 Jun 2014, Doug Anderson wrote: We know how many bytes the EC should be sending us (which is also the number of bytes transferred) and also how many bytes the EC actually wanted to send to us. When

Re: [PATCH 2/3] mfd: cros_ec: Use the proper size when looking at the cros_ec_i2c result

2014-06-30 Thread Simon Glass
On 27 June 2014 12:56, Doug Anderson wrote: > We know how many bytes the EC should be sending us (which is also the > number of bytes transferred) and also how many bytes the EC actually > wanted to send to us. When computing the checksum and copying back > data let's make sure we take the

Re: [PATCH 2/3] mfd: cros_ec: Use the proper size when looking at the cros_ec_i2c result

2014-06-30 Thread Simon Glass
On 27 June 2014 12:56, Doug Anderson diand...@chromium.org wrote: We know how many bytes the EC should be sending us (which is also the number of bytes transferred) and also how many bytes the EC actually wanted to send to us. When computing the checksum and copying back data let's make sure

[PATCH 2/3] mfd: cros_ec: Use the proper size when looking at the cros_ec_i2c result

2014-06-27 Thread Doug Anderson
We know how many bytes the EC should be sending us (which is also the number of bytes transferred) and also how many bytes the EC actually wanted to send to us. When computing the checksum and copying back data let's make sure we take the lesser of the two of those. We'll also complain if the EC

[PATCH 2/3] mfd: cros_ec: Use the proper size when looking at the cros_ec_i2c result

2014-06-27 Thread Doug Anderson
We know how many bytes the EC should be sending us (which is also the number of bytes transferred) and also how many bytes the EC actually wanted to send to us. When computing the checksum and copying back data let's make sure we take the lesser of the two of those. We'll also complain if the EC