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:
4cda6e8
)
drm/bridge/synopsys: dsi: Fix dsi_host_transfer() return value
author
Philippe Cornu
<
[email protected]
>
Thu, 25 Jan 2018 10:38:00 +0000
(11:38 +0100)
committer
Archit Taneja
<
[email protected]
>
Tue, 30 Jan 2018 10:49:17 +0000
(16:19 +0530)
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: 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 37d13ccad2e7548720f9b46c9525ced10ab021aa..d098e23298684d6c48e4c28a2be5d125c8b4e304 100644
(file)
--- a/
drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c
+++ b/
drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c
@@
-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 = {