chromeec: correct response length for VBNV write
The EC doesn't return any data when one performs a write to VBNV context. Therefore there is a mismatch of expectations. Correct this by properly setting the expected response length. BUG=chrome-os-partner:31148 BRANCH=None TEST=No longer hanging while writing to VBNV on ryu. Change-Id: I455724f20f5442bd62a792f09273227417475f07 Signed-off-by: Aaron Durbin <adurbin@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/211137 Reviewed-by: Stefan Reinauer <reinauer@google.com> Reviewed-by: Tom Warren <twarren@nvidia.com> Reviewed-by: Furquan Shaikh <furquan@chromium.org>
This commit is contained in:
parent
a2e7d84725
commit
c1735c3377
1 changed files with 1 additions and 1 deletions
|
|
@ -195,7 +195,7 @@ int google_chromeec_vbnv_context(int is_read, uint8_t *data, int len)
|
|||
cec_cmd.cmd_data_in = &cmd_vbnvcontext;
|
||||
cec_cmd.cmd_data_out = &rsp_vbnvcontext;
|
||||
cec_cmd.cmd_size_in = sizeof(cmd_vbnvcontext);
|
||||
cec_cmd.cmd_size_out = sizeof(rsp_vbnvcontext);
|
||||
cec_cmd.cmd_size_out = is_read ? sizeof(rsp_vbnvcontext) : 0;
|
||||
|
||||
cmd_vbnvcontext.op = is_read ? EC_VBNV_CONTEXT_OP_READ :
|
||||
EC_VBNV_CONTEXT_OP_WRITE;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue