Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

+1
+1
drivers/platform/chrome/cros_ec_debugfs.c
··· 334 334 if (!msg) 335 335 return 0; 336 336 337 + msg->version = 1; 337 338 msg->command = EC_CMD_GET_CMD_VERSIONS + ec->cmd_offset; 338 339 msg->outsize = sizeof(*params); 339 340 msg->insize = sizeof(*response);