mfd: cros-ec: Fix host command buffer size
authorVic Yang <victoryang@google.com>
Fri, 24 Mar 2017 17:44:01 +0000 (18:44 +0100)
committerLee Jones <lee.jones@linaro.org>
Wed, 5 Apr 2017 12:30:07 +0000 (13:30 +0100)
commitb2376407f98920c9b0c411948675f58a9640be35
tree5b71cd9324c622f1b4cd4daa57e71d2350d7d94d
parentc1ae3cfa0e89fa1a7ecc4c99031f5e9ae99d9201
mfd: cros-ec: Fix host command buffer size

For SPI, we can get up to 32 additional bytes for response preamble.
The current overhead (2 bytes) may cause problems when we try to receive
a big response. Update it to 32 bytes.

Without this fix we could see a kernel BUG when we receive a big response
from the Chrome EC when is connected via SPI.

Signed-off-by: Vic Yang <victoryang@google.com>
Tested-by: Enric Balletbo i Serra <enric.balletbo.collabora.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
include/linux/mfd/cros_ec.h