diff options
author | Prashant Malani <pmalani@chromium.org> | 2018-09-21 16:06:13 -0700 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2018-10-02 05:19:22 -0700 |
commit | 3e5fd37ee20e0d3a656a7a8137e0875a75c5d475 (patch) | |
tree | 9ef31be4c8abc6c7462533ce8f107396f16c3b32 /util/ectool.c | |
parent | 391b0506bc1cfff90876e53ba8311cbc3446b2a2 (diff) | |
download | chrome-ec-3e5fd37ee20e0d3a656a7a8137e0875a75c5d475.tar.gz |
fpsensor: Add support for sensor reset command
Update the "reset_sensor" option of the FP_MODE EC command to actually
reset the FP sensor. A reset_sensor is essentially the same as performing
a re-initialization of the sensor, so this amounts to calling
fp_sensor_init() again.
BUG=b:110805729
BRANCH=nocturne
TEST=Run updated biod and inspect cros_fp.log to ensure that the sensor
reinitialization code runs after login.
Change-Id: Ib639b64089368b38db154da4a99d4def70c48229
Signed-off-by: Prashant Malani <pmalani@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/1239623
Commit-Ready: Nicolas Norvez <norvez@chromium.org>
Tested-by: Nicolas Norvez <norvez@chromium.org>
Reviewed-by: Nicolas Norvez <norvez@chromium.org>
Diffstat (limited to 'util/ectool.c')
-rw-r--r-- | util/ectool.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/util/ectool.c b/util/ectool.c index 2322376b36..b29ddd7e03 100644 --- a/util/ectool.c +++ b/util/ectool.c @@ -1419,6 +1419,8 @@ int cmd_fp_mode(int argc, char *argv[]) mode |= FP_MODE_ENROLL_IMAGE | FP_MODE_ENROLL_SESSION; else if (!strncmp(argv[i], "match", 5)) mode |= FP_MODE_MATCH; + else if (!strncmp(argv[i], "reset_sensor", 12)) + mode = FP_MODE_RESET_SENSOR; else if (!strncmp(argv[i], "reset", 5)) mode = 0; else if (!strncmp(argv[i], "capture", 7)) |