projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
21f815b
)
drm/bridge/synopsys: dsi: Add a warning msg on dsi read requests
author
Philippe Cornu
<
[email protected]
>
Thu, 25 Jan 2018 10:37:59 +0000
(11:37 +0100)
committer
Archit Taneja
<
[email protected]
>
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 <
[email protected]
>
Signed-off-by: Philippe Cornu <
[email protected]
>
Signed-off-by: Archit Taneja <
[email protected]
>
Link:
https://patchwork.freedesktop.org/patch/msgid/
[email protected]
drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c
b/drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c
index c83049d66baf37965d5bfc3d685f4a5b3216152a..37d13ccad2e7548720f9b46c9525ced10ab021aa 100644
(file)
--- 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);