]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
drm/bridge/synopsys: dsi: Add a warning msg on dsi read requests
authorPhilippe Cornu <philippe.cornu@st.com>
Thu, 25 Jan 2018 10:37:59 +0000 (11:37 +0100)
committerArchit Taneja <architt@codeaurora.org>
Tue, 30 Jan 2018 10:49:17 +0000 (16:19 +0530)
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: Brian Norris <briannorris@chromium.org>
Signed-off-by: Philippe Cornu <philippe.cornu@st.com>
Signed-off-by: Archit Taneja <architt@codeaurora.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20180125103800.1999-2-philippe.cornu@st.com
drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c

index c83049d66baf37965d5bfc3d685f4a5b3216152a..37d13ccad2e7548720f9b46c9525ced10ab021aa 100644 (file)
@@ -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);