platform/chrome: cros_ec_debugfs: fix wrong EC message version
[ Upstream commit c2a28647bbb4e0894e8824362410f72b06ac57a4 ]
ec_read_version_supported() uses ec_params_get_cmd_versions_v1 but it
wrongly uses message version 0.
Fix it.
Fixes: e862645952 ("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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
(cherry picked from commit c0e53e36452d1b2a3ec71bf0586251245a5686c0)
Signed-off-by: Vegard Nossum <vegard.nossum@oracle.com>
This commit is contained in:
committed by
Vegard Nossum
parent
6da009d8de
commit
dd6caa8da1
@@ -236,6 +236,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);
|
||||
|
||||
Reference in New Issue
Block a user