rk_fb: fix iommu problem when hdmi plug or unplug.
authorMark Yao <mark.yao@rock-chips.com>
Mon, 1 Dec 2014 00:47:24 +0000 (08:47 +0800)
committerMark Yao <mark.yao@rock-chips.com>
Mon, 1 Dec 2014 01:02:56 +0000 (09:02 +0800)
commit6ba051470a10c3a6fa34b6fc758aaa5ebf115034
treee03e3936e05a1a669a568140cab41444c4ff019d
parent8a297b0552ba7b5a0a9a58b8a383d7c80a04d91b
rk_fb: fix iommu problem when hdmi plug or unplug.

There are two thread will update the win config,
one is update_regs handler, another is hdmi hotplug
thread, win config maybe modify by another thread
unexpectly, then vop scan umap address, cause iommu
crash, so we need use a mutex to protect win config.

Signed-off-by: Mark Yao <mark.yao@rock-chips.com>
drivers/video/rockchip/rk_fb.c
include/linux/rk_fb.h