drm/msm: Enable clocks during enable/disable_vblank() callbacks
authorHai Li <hali@codeaurora.org>
Mon, 27 Jul 2015 17:49:45 +0000 (13:49 -0400)
committerRob Clark <robdclark@gmail.com>
Sat, 15 Aug 2015 22:27:22 +0000 (18:27 -0400)
commit78b1d470d57dd7a6e0efda63ebad97f0d44e817c
treedf7ce98b79674d78b29fb050c21be46c1f69ea58
parent8a94b0aa372ebf7375c8ea861cb9bbf84b39d2df
drm/msm: Enable clocks during enable/disable_vblank() callbacks

AHB clock should be enabled before accessing registers during
enable/disable_vblank(). Since these 2 callbacks are called in
atomic context while clk_prepare may cause thread sleep, a work
is scheduled to control vblanks.

v2: fixup spinlock initialization

Signed-off-by: Hai Li <hali@codeaurora.org>
[add comment about cancel_work_sync() before drm_irq_uninstall()]
Signed-off-by: Rob Clark <robdclark@gmail.com>
drivers/gpu/drm/msm/mdp/mdp4/mdp4_irq.c
drivers/gpu/drm/msm/mdp/mdp5/mdp5_irq.c
drivers/gpu/drm/msm/msm_drv.c
drivers/gpu/drm/msm/msm_drv.h