]> git.baikalelectronics.ru Git - kernel.git/commit
drm/rockchip: Clear interrupt status bits before enabling
authorTomasz Figa <tfiga@chromium.org>
Wed, 14 Sep 2016 12:54:54 +0000 (21:54 +0900)
committerSean Paul <seanpaul@chromium.org>
Wed, 21 Sep 2016 13:55:49 +0000 (06:55 -0700)
commit6a9945a0c9370cea763c1c090e89a326c6a01713
tree942066355c9a0beefb0f064bedaeafa227e0d3d1
parentd04604bbedea3a60e80aa26b78bbe3c121ad22be
drm/rockchip: Clear interrupt status bits before enabling

The enable register only masks the raw status bits to signal CPU
interrupt only for enabled interrupts. The status bits are activated
regardless of the enable register. This means that we might have an old
interrupt event queued, which we are not interested in. To avoid getting
a spurious interrupt signalled, we have to clear the old bit before we
update the enable register.

Signed-off-by: Tomasz Figa <tfiga@chromium.org>
drivers/gpu/drm/rockchip/rockchip_drm_vop.c