提交 e2ed07f1 编写于 作者: A Alexandre Bailon 提交者: Greg Kroah-Hartman

greybus: i2c-gb: fix bad message size in gb_i2c

The data_in_size variable was set to 1 for the status byte.
But now, the status byte has move to header. Then, the status byte
is "allocated" twice and cause bad message size error.
Signed-off-by: NAlexandre Bailon <abailon@baylibre.com>
Reviewed-by: NAlex Elder <elder@linaro.org>
Signed-off-by: NGreg Kroah-Hartman <greg@kroah.com>
上级 88e70a68
......@@ -199,7 +199,7 @@ gb_i2c_transfer_request(struct gb_connection *connection,
struct gb_i2c_transfer_op *op;
struct i2c_msg *msg;
u32 data_out_size = 0;
u32 data_in_size = 1; /* Response begins with a status byte */
u32 data_in_size = 0;
size_t request_size;
void *data;
u16 op_count;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册