Commit c2a28647 authored by Tzung-Bi Shih's avatar Tzung-Bi Shih

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: e8626459 ("mfd: cros_ec: add debugfs, console log file")
Reviewed-by: default avatarGuenter Roeck <groeck@chromium.org>
Link: https://lore.kernel.org/r/20240611113110.16955-1-tzungbi@kernel.orgSigned-off-by: default avatarTzung-Bi Shih <tzungbi@kernel.org>
parent 41f1242f
...@@ -334,6 +334,7 @@ static int ec_read_version_supported(struct cros_ec_dev *ec) ...@@ -334,6 +334,7 @@ static int ec_read_version_supported(struct cros_ec_dev *ec)
if (!msg) if (!msg)
return 0; return 0;
msg->version = 1;
msg->command = EC_CMD_GET_CMD_VERSIONS + ec->cmd_offset; msg->command = EC_CMD_GET_CMD_VERSIONS + ec->cmd_offset;
msg->outsize = sizeof(*params); msg->outsize = sizeof(*params);
msg->insize = sizeof(*response); msg->insize = sizeof(*response);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment