linux_dsm_epyc7002/drivers/gpu/drm/bridge/synopsys
Brian Norris ad95dc86e6 drm/bridge/synopsys: dsi: use common mipi_dsi_create_packet()
This takes care of 2 TODOs in this driver, by using the common DSI
packet-marshalling code instead of our custom short/long write code.
This both saves us some duplicated code and gets us free support for
command types that weren't already part of our switch block (e.g.,
MIPI_DSI_GENERIC_LONG_WRITE).

The code logic stays mostly intact, except that it becomes unnecessary
to split the short/long write functions, and we have to copy data a bit
more.

Along the way, I noticed that loop bounds were a little odd:

	while (DIV_ROUND_UP(len, pld_data_bytes))

This really was just supposed to be 'len != 0', so I made that more
clear.

Tested on RK3399 with some pending refactoring patches by Nickey Yang,
to make the Rockchip DSI driver wrap this common driver.

Signed-off-by: Brian Norris <briannorris@chromium.org>
Reviewed-by: Philippe Cornu <philippe.cornu@st.com>
Tested-by: Philippe Cornu <philippe.cornu@st.com>
Signed-off-by: Archit Taneja <architt@codeaurora.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20180109203248.139249-1-briannorris@chromium.org
2018-01-16 11:44:01 +05:30
..
dw-hdmi-ahb-audio.c drm: bridge: dw-hdmi: constify snd_pcm_ops structures 2017-08-09 15:57:29 +05:30
dw-hdmi-audio.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
dw-hdmi-cec.c drm/bridge: dw-hdmi: add cec driver 2017-08-07 16:18:53 +05:30
dw-hdmi-cec.h drm/bridge: dw-hdmi: add cec driver 2017-08-07 16:18:53 +05:30
dw-hdmi-i2s-audio.c drm: dw-hdmi-i2s: add missing company name on Copyright 2017-08-07 09:43:08 +05:30
dw-hdmi.c Merge tag 'drm-misc-next-2017-11-30' of git://anongit.freedesktop.org/drm/drm-misc into drm-next 2017-12-04 05:42:49 +10:00
dw-hdmi.h drm/bridge: dw-hdmi: remove CEC engine register definitions 2017-08-07 16:19:13 +05:30
dw-mipi-dsi.c drm/bridge/synopsys: dsi: use common mipi_dsi_create_packet() 2018-01-16 11:44:01 +05:30
Kconfig drm/bridge: dw-hdmi: add cec driver 2017-08-07 16:18:53 +05:30
Makefile drm/bridge: dw-hdmi: add cec driver 2017-08-07 16:18:53 +05:30