]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit398d25cc649ce1f8541033bb25d68600ce6aca71
tree5b71cd9324c622f1b4cd4daa57e71d2350d7d94d
parent94e2a518d0ac4a168bccd1446b1a1407458c45bd
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