[lkml]   [2014]   [Jun]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH 2/3] mfd: cros_ec: Use the proper size when looking at the cros_ec_i2c result
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 lesser of the two of those. We'll
> also complain if the EC tried to send us too many bytes. The EC
> sending us too few bytes is legit for when we send the EC an invalid
> command.
> This is based on similar code in cros_ec_spi.
> Signed-off-by: Doug Anderson <>

Reviewed-by: Simon Glass <>

 \ /
  Last update: 2014-06-30 22:21    [W:0.092 / U:0.836 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site