Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4cda6e8e authored by Philippe Cornu's avatar Philippe Cornu Committed by Archit Taneja
Browse files

drm/bridge/synopsys: dsi: Add a warning msg on dsi read requests



The dcs/generic dsi read feature is not yet implemented so it
is important to warn the host_transfer() caller in case of
read operation requests.

Reviewed-by: default avatarBrian Norris <briannorris@chromium.org>
Signed-off-by: default avatarPhilippe Cornu <philippe.cornu@st.com>
Signed-off-by: default avatarArchit Taneja <architt@codeaurora.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20180125103800.1999-2-philippe.cornu@st.com
parent 21f815bf
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -398,6 +398,12 @@ static ssize_t dw_mipi_dsi_host_transfer(struct mipi_dsi_host *host,
	struct mipi_dsi_packet packet;
	int ret;

	if (msg->rx_buf || msg->rx_len) {
		/* TODO dw drv improvements: implement read feature */
		dev_warn(dsi->dev, "read operations not yet implemented\n");
		return -EINVAL;
	}

	ret = mipi_dsi_create_packet(&packet, msg);
	if (ret) {
		dev_err(dsi->dev, "failed to create packet: %d\n", ret);