MLK-19252-1 drm/bridge: sec-dsim: move PLL check to DSIM Encoder
authorFancy Fang <chen.fang@nxp.com>
Wed, 15 Aug 2018 01:28:09 +0000 (09:28 +0800)
committerLeonard Crestez <leonard.crestez@nxp.com>
Wed, 17 Apr 2019 23:51:34 +0000 (02:51 +0300)
commit47c63d6b94042c3e0f344be004f2d469fbed98c2
treea307e8f86e4e831c1a3afeec4316a85331b20a72
parentd8be7e5598ef61e84df2734e5388bf27fde86f01
MLK-19252-1 drm/bridge: sec-dsim: move PLL check to DSIM Encoder

Defer the PLL output check to the SEC DSIM Encoder's atomic check
from SEC DSIM Bridge's mode_fixup(), since in the attached DSI
device Bridge's mode_fixup(), it may change the data lanes number,
and this change is done after the SEC DSIM Bridge's mode_fixup().
And the DSIM Encoder's atomic check is the ideal place to do this
PLL check, since it happens after all the Bridges' mode_fixup()
done.

Signed-off-by: Fancy Fang <chen.fang@nxp.com>
(cherry picked from commit c9bce66fed982383dde189c428d4c2ee2c2fc623)
(cherry picked from commit ead3666313e552296da7e7b5094579b47dbdc364)
(cherry picked from commit 6a8fa239b31eca24f32b350e3c7e3118684b7323)
drivers/gpu/drm/bridge/sec-dsim.c
drivers/gpu/drm/imx/sec_mipi_dsim-imx.c
include/drm/bridge/sec_mipi_dsim.h