]> git.baikalelectronics.ru Git - kernel.git/commit
drm/imx: disable planes before DC
authorLucas Stach <l.stach@pengutronix.de>
Tue, 8 Nov 2016 16:04:10 +0000 (17:04 +0100)
committerPhilipp Zabel <p.zabel@pengutronix.de>
Wed, 9 Nov 2016 09:35:50 +0000 (10:35 +0100)
commitf61eaf7c7ad15fad3b0e05667e56bf5a8d26d930
treeea19cfe781362971eda6e26e26c774ac3d4bd724
parentfa345be03d4e8f4a3e8308a520e2b85facfb587c
drm/imx: disable planes before DC

If the DC clock is disabled before the attached IDMACs are properly
stopped the IDMACs may hang the IPU or even the whole system.

Make sure the IDMACs are in safe state by disabling the planes before
removal of the DC clock.

Also set the atomic parameter to false to stop calling the atomic_begin
hook, which does nothing useful as we immediately afterwards turn off
vblank interrupts and possibly send the pending vblank event.

Fixes: 9693357cb285 (drm/imx: atomic phase 1: Use transitional atomic
                     CRTC and plane helpers)
Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
drivers/gpu/drm/imx/ipuv3-crtc.c