]> 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)
commitbb07cf4f9f1fb4b64d1d074c9faa61a2ee100658
tree5b71cd9324c622f1b4cd4daa57e71d2350d7d94d
parent8a17c7afe9fb246fbdf434a8c4a84cdc5bada8cb
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