UPSTREAM: drm/rockchip: vop: fix mask when updating interrupts
authorJohn Keeping <john@metanate.com>
Tue, 12 Jan 2016 18:05:18 +0000 (18:05 +0000)
committerMark Yao <mark.yao@rock-chips.com>
Thu, 17 Mar 2016 01:42:05 +0000 (09:42 +0800)
commitec4cbab9bbf015ede752b567403abb4961fb405e
tree5130f0f241a30e1d05d74aac057c8b4734492609
parent9de6f301646488db7a8fcfc16020783fff51807f
UPSTREAM: drm/rockchip: vop: fix mask when updating interrupts

Commit dbb3d94 (drm/rockchip: vop: move interrupt registers into
vop_data) introduced new macros for updating the interrupt control
registers but these always use the mask from the register definition
without refining it for the particular bits that are being changed.

This means that whenever we enable/disable a particular interrupt we end
up disabling all of the others as a side effect.

Change-Id: I3b0f2574315f3655c183c21143b0bca7cdd9f6fa
Signed-off-by: John Keeping <john@metanate.com>
(cherry picked from commit c7647f8681feeb6c0957e3cf5daed1fbf8b3a5af)
Signed-off-by: Mark Yao <mark.yao@rock-chips.com>
drivers/gpu/drm/rockchip/rockchip_drm_vop.c