Skip to content

Commit c2a2864

Browse files
author
Tzung-Bi Shih
committed
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: e862645 ("mfd: cros_ec: add debugfs, console log file") Reviewed-by: Guenter Roeck <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Tzung-Bi Shih <[email protected]>
1 parent 41f1242 commit c2a2864

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/platform/chrome/cros_ec_debugfs.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -334,6 +334,7 @@ static int ec_read_version_supported(struct cros_ec_dev *ec)
334334
if (!msg)
335335
return 0;
336336

337+
msg->version = 1;
337338
msg->command = EC_CMD_GET_CMD_VERSIONS + ec->cmd_offset;
338339
msg->outsize = sizeof(*params);
339340
msg->insize = sizeof(*response);

0 commit comments

Comments
 (0)