drm/bridge/synopsys: dsi: use adjusted_mode in mode_set
authorPhilippe CORNU <philippe.cornu@st.com>
Thu, 25 Jan 2018 15:55:04 +0000 (16:55 +0100)
committerAndrzej Hajda <a.hajda@samsung.com>
Thu, 26 Apr 2018 06:24:26 +0000 (08:24 +0200)
commit741c3aeb82c78e173aa7155aaffb971e5c73ab3c
treeadaa3779d56f4bbbd254836b5153f72780b72881
parent664991010ff34ce2a51cea95dfdfb711be8c780f
drm/bridge/synopsys: dsi: use adjusted_mode in mode_set

The "adjusted_mode" clock value (ie the real pixel clock) is more
accurate than "mode" clock value (ie the panel/bridge requested
clock value). It offers a better preciseness for timing
computations and allows to reduce the extra dsi bandwidth in
burst mode (from ~20% to ~10-12%, hw platform dependent).

Signed-off-by: Philippe Cornu <philippe.cornu@st.com>
Tested-by: Brian Norris <briannorris@chromium.org>
Reviewed-by: Yannick Fertré <yannick.fertre@st.com>
Tested-by: Yannick Fertré <yannick.fertre@st.com>
Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180125155504.8611-1-philippe.cornu@st.com
drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c