drm/msm/mdp5: add tracking for clk enable-count
authorRob Clark <robdclark@gmail.com>
Mon, 3 Jul 2017 17:13:57 +0000 (13:13 -0400)
committerRob Clark <robdclark@gmail.com>
Tue, 22 Aug 2017 17:20:37 +0000 (13:20 -0400)
commita7d3bb0045365ff84be35e3a4715af5d0216b7bd
tree52b2833d7e9394c10eea12eeb78cea6a7fe85150
parenta0ce4d23b13d2b028d20d34655a1a9afa300b625
drm/msm/mdp5: add tracking for clk enable-count

Accessing registers for an unclocked block is an insta-reboot on
snapdragon devices.  So add a bit of logic to track the enable_count so
we can WARN_ON() unclocked register writes.  This makes it much easier
to track down mistakes.

Signed-off-by: Rob Clark <robdclark@gmail.com>
drivers/gpu/drm/msm/mdp/mdp5/mdp5_kms.c
drivers/gpu/drm/msm/mdp/mdp5/mdp5_kms.h