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 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 <diand...@chromium.org>
Reviewed-by: Simon Glass <s...@chromium.org> -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/