MLK-19152-2 drm/imx: lcdif: force 'mode_changed' when fb width changed
authorFancy Fang <chen.fang@nxp.com>
Tue, 7 Aug 2018 09:41:39 +0000 (17:41 +0800)
committerLeonard Crestez <leonard.crestez@nxp.com>
Wed, 17 Apr 2019 23:51:34 +0000 (02:51 +0300)
commit8c1b1eff0e457eaa2f2ec181aa71be23b8da50bf
tree0cc439995d53668d449ef09b56b1f7739b3ca08f
parent7cc4bdfd83902ab14697d32c491450590cf7afc1
MLK-19152-2 drm/imx: lcdif: force 'mode_changed' when fb width changed

In DRM atomic modeset check, it will not check the fb's width
change, so in later atomic commit, it will not disable the CRTC
which has no mode changed. But for LCDIF, the fb width related
registers configuration can not be done when LCDIF is running.
So force 'mode_changed' to be true when fb width changed.

Signed-off-by: Fancy Fang <chen.fang@nxp.com>
(cherry picked from commit 518ff82756a39ff2d2f750596295baa4f5fca4c5)
(cherry picked from commit c399d83491cb80ca9d6b040cdf3e9d1e709785b2)
drivers/gpu/drm/imx/lcdif/lcdif-plane.c