drm/rockchip: vop: set vop enabled after enable iommu
authorMark Yao <mark.yao@rock-chips.com>
Thu, 22 Jan 2015 10:29:57 +0000 (18:29 +0800)
committerMark Yao <mark.yao@rock-chips.com>
Mon, 16 Mar 2015 05:50:32 +0000 (13:50 +0800)
commit52ab7891fb8e45bda6015da8b5ac82ad600355e3
tree9e65cc1eb981f4b4dbd1a334b8d60072b6c17ad6
parent31e980c5a2d35ce411034b7fd842433542c1c60e
drm/rockchip: vop: set vop enabled after enable iommu

there is a Bug that:
  vop_enable()->drm_vblank_on, drm_vblank_on may call vop
enable vblank. if it happen, vblank enable would failed,
then cause irq status error. because is_enabled value is set
after drm_vblank_on.

after enable vop clocks and iommu regs, we can sure that
R/W vop regs and do vop plane flip is safe, so place
is_enabled = true after enable iommu is suitable.

Signed-off-by: Mark Yao <mark.yao@rock-chips.com>
drivers/gpu/drm/rockchip/rockchip_drm_vop.c