rockchip: rk3399: check vop status when we wait dma finish flag
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 <c9fe3c0450a180d111405ace687410d20d0d0895@rock-chips.com>
Signed-off-by: Derek Basehore <fb1ef5d447d8cd53e9e4511d7b18b7cdbb10397f@chromium.org>

sbranden/arm-trusted-firmware,sbranden/arm-trusted-firmware,achingupta/arm-trusted-firmware,lsigithub/arm-trusted-firmware_public,lsigithub/arm-trusted-firmware_public,achingupta/arm-trusted-firmware