summaryrefslogtreecommitdiffstats
path: root/drivers/platform/chrome/cros_ec_debugfs.c
diff options
context:
space:
mode:
authorTzung-Bi Shih <tzungbi@kernel.org>2024-06-11 13:31:10 +0200
committerTzung-Bi Shih <tzungbi@kernel.org>2024-06-12 04:28:39 +0200
commitc2a28647bbb4e0894e8824362410f72b06ac57a4 (patch)
tree841da6520450bc53f627172fbb8a5dadeb6fdc5b /drivers/platform/chrome/cros_ec_debugfs.c
parentplatform/chrome: cros_ec_proto: update Kunit test for get_next_data_v3 (diff)
downloadlinux-c2a28647bbb4e0894e8824362410f72b06ac57a4.tar.xz
linux-c2a28647bbb4e0894e8824362410f72b06ac57a4.zip
platform/chrome: cros_ec_debugfs: fix wrong EC message version
ec_read_version_supported() uses ec_params_get_cmd_versions_v1 but it wrongly uses message version 0. Fix it. Fixes: e86264595225 ("mfd: cros_ec: add debugfs, console log file") Reviewed-by: Guenter Roeck <groeck@chromium.org> Link: https://lore.kernel.org/r/20240611113110.16955-1-tzungbi@kernel.org Signed-off-by: Tzung-Bi Shih <tzungbi@kernel.org>
Diffstat (limited to 'drivers/platform/chrome/cros_ec_debugfs.c')
-rw-r--r--drivers/platform/chrome/cros_ec_debugfs.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/platform/chrome/cros_ec_debugfs.c b/drivers/platform/chrome/cros_ec_debugfs.c
index f0e9efb543df..4525ad1b59f4 100644
--- a/drivers/platform/chrome/cros_ec_debugfs.c
+++ b/drivers/platform/chrome/cros_ec_debugfs.c
@@ -334,6 +334,7 @@ static int ec_read_version_supported(struct cros_ec_dev *ec)
if (!msg)
return 0;
+ msg->version = 1;
msg->command = EC_CMD_GET_CMD_VERSIONS + ec->cmd_offset;
msg->outsize = sizeof(*params);
msg->insize = sizeof(*response);