summaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorTim Wawrzynczak <twawrzynczak@chromium.org>2020-01-17 13:48:01 -0700
committerCommit Bot <commit-bot@chromium.org>2020-01-18 01:11:17 +0000
commitc520344abe270967b1bd96d43559fb00c0d431d4 (patch)
tree989b9d9763a660e3691bc3cbe3d3a4d65bd1045e /util
parent77a89596929beea6646ef361b19e09ab75a5a3b9 (diff)
downloadchrome-ec-c520344abe270967b1bd96d43559fb00c0d431d4.tar.gz
ectool: Fix ectool motionsense info command
Commit 267da3cfc increased the response size of the motionsense "info" command implicitly by adding a new version of the command. ectool explicitly gets the latest version of the command to use, and the kernel was complaining because it only requested 16 bytes, but the new version sends back 19. Hence, update the expected size of the response to compensate for this. BUG=b:147472780, b:147720232 BRANCH=firmware-hatch-12672.B TEST=ectool motionsense info X now returns data instead of failing Change-Id: Ib297c02f55406b4dc3b8bb0b6b0843165b350995 Signed-off-by: Tim Wawrzynczak <twawrzynczak@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2007897 Reviewed-by: Jack Rosenthal <jrosenth@chromium.org> Reviewed-by: Evan Green <evgreen@chromium.org>
Diffstat (limited to 'util')
-rw-r--r--util/ectool.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/ectool.c b/util/ectool.c
index a502e24b9f..ded1af6cde 100644
--- a/util/ectool.c
+++ b/util/ectool.c
@@ -4479,7 +4479,7 @@ static const struct {
sizeof(struct ec_response_motion_sensor_data) *
ECTOOL_MAX_SENSOR
},
- ST_BOTH_SIZES(info_3),
+ { ST_PRM_SIZE(info_3), ST_RSP_SIZE(info_4) },
ST_BOTH_SIZES(ec_rate),
ST_BOTH_SIZES(sensor_odr),
ST_BOTH_SIZES(sensor_range),