rockchip: rk3399: check vop status when we wait dma finish flag
authorLin Huang <hl@rock-chips.com>
Thu, 1 Dec 2016 08:55:05 +0000 (16:55 +0800)
committerXing Zheng <zhengxing@rock-chips.com>
Fri, 24 Feb 2017 12:07:44 +0000 (20:07 +0800)
commita82ec8145961e57d19cdb71ad9823fd99f7f7c53
treeddf1788cecedd6b84788bad32d48cbf89cc57913
parent95c3f422d843f00076088ad39075af1ec4c93d8e
rockchip: rk3399: check vop status when we wait dma finish flag

When vop is disabled and we read the vop register the system will
hang, so check vop status when we wait for the DMA finish flag to
avoid this sitiuation. This is done by checking for standby, DMA stop
mode, and disabled window states. Any one of these will prevent the
DMA finish flag from triggering.

Signed-off-by: Lin Huang <hl@rock-chips.com>
Signed-off-by: Derek Basehore <dbasehore@chromium.org>
plat/rockchip/rk3399/drivers/m0/src/dram.c