OSDN Git Service

drm/bridge/synopsys: dsi: allow sending longer LP commands
authorAntonio Borneo <antonio.borneo@st.com>
Wed, 1 Jul 2020 14:31:31 +0000 (16:31 +0200)
committerNeil Armstrong <narmstrong@baylibre.com>
Mon, 7 Sep 2020 08:04:02 +0000 (10:04 +0200)
commit9e025e80660fe35432c81e67d401109d8e7b0ff4
treecd8fcf3c010b3d3041cde12290d0a534ec3f2c0b
parent6188b06e0357b3bc3b91d0b67783681d34ff2b64
drm/bridge/synopsys: dsi: allow sending longer LP commands

Current code does not properly computes the max length of LP
commands that can be send during H or V sync, and rely on static
values.
Limiting the max LP length to 4 byte during the V-sync is overly
conservative.

Relax the limit and allows longer LP commands (16 bytes) to be
sent during V-sync.

Signed-off-by: Antonio Borneo <antonio.borneo@st.com>
Tested-by: Philippe Cornu <philippe.cornu@st.com>
Reviewed-by: Philippe Cornu <philippe.cornu@st.com>
Acked-by: Neil Armstrong <narmstrong@baylibre.com>
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200701143131.841-1-yannick.fertre@st.com
drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c