提交 1a1c130c 编写于 作者: P Philippe Cornu 提交者: Archit Taneja

drm/bridge/synopsys: dsi: Fix dsi_host_transfer() return value

The dw_mipi_dsi_host_transfer() must return the number of
bytes transmitted/received on success instead of 0.
Note: As the read feature is not implemented, only the
transmitted number of bytes is returned for the moment.
Reviewed-by: NBrian Norris <briannorris@chromium.org>
Signed-off-by: NPhilippe Cornu <philippe.cornu@st.com>
Signed-off-by: NArchit Taneja <architt@codeaurora.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20180125103800.1999-3-philippe.cornu@st.com
上级 4cda6e8e
......@@ -412,7 +412,16 @@ static ssize_t dw_mipi_dsi_host_transfer(struct mipi_dsi_host *host,
dw_mipi_message_config(dsi, msg);
return dw_mipi_dsi_write(dsi, &packet);
ret = dw_mipi_dsi_write(dsi, &packet);
if (ret)
return ret;
/*
* TODO Only transmitted size is returned as actual driver does
* not support dcs/generic reads. Please update return value when
* delivering the read feature.
*/
return packet.size;
}
static const struct mipi_dsi_host_ops dw_mipi_dsi_host_ops = {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册