mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2026-01-15 08:57:42 +00:00
53019df3a6ffe3f3a67ac0c7613e543da0fd9e3c
When issuing a host command whose request packet length is equal to the maximum size (ie max_request_packet_size as returned by EC_CMD_GET_PROTOCOL_INFO), the command currently fails with STM32H7 over SPI host protocol. The finger template upload through the EC_CMD_FP_TEMPLATE host command fails due to the issue as it 'optimizes' the chunk length to the maximum size. For now, workaround this issue by removing a 32-bit word (aka 4 bytes) to max_request_packet_size, so we never hit this corner case. Signed-off-by: Vincent Palatin <vpalatin@chromium.org> BRANCH=none BUG=b:78544921 TEST=On Meowth, run 'ectool --name=cros_fp fptemplate finger0.bin' and see it succeeding. Change-Id: I52072ddeb12534045c37ab30df301a60c8841199 Reviewed-on: https://chromium-review.googlesource.com/1026680 Commit-Ready: Vincent Palatin <vpalatin@chromium.org> Tested-by: Vincent Palatin <vpalatin@chromium.org> Reviewed-by: Nicolas Boichat <drinkcat@chromium.org>
For an overview of the Embedded Controller firmware, refer to http://www.chromium.org/chromium-os/2014-firmware-summit For instructions on building from source, refer to http://www.chromium.org/chromium-os/ec-development/getting-started-building-ec-images-quickly
Description
Languages
C
64.7%
Lasso
20.7%
ASL
3.6%
JavaScript
3.2%
C#
2.9%
Other
4.6%