diff options
author | Philippe Cornu <philippe.cornu@st.com> | 2018-01-25 13:37:59 +0300 |
---|---|---|
committer | Archit Taneja <architt@codeaurora.org> | 2018-01-30 13:49:17 +0300 |
commit | 4cda6e8e1ea0e7bc80028fa4fe196357a2799d05 (patch) | |
tree | c95d1bd8c14b7d99569ad1043d31424e6a41df6d /drivers/gpu/drm/bridge | |
parent | 21f815bf773c1f7dc278060eb49d7651c3175148 (diff) | |
download | linux-4cda6e8e1ea0e7bc80028fa4fe196357a2799d05.tar.xz |
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: 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
Diffstat (limited to 'drivers/gpu/drm/bridge')
-rw-r--r-- | drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c b/drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c index c83049d66baf..37d13ccad2e7 100644 --- a/drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c +++ b/drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c @@ -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); |