projects
/
linux-2.6-microblaze.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
drm/vc4: hdmi: Add a spinlock to protect register access
[linux-2.6-microblaze.git]
/
drivers
/
gpu
/
drm
/
vc4
/
vc4_hdmi_regs.h
diff --git
a/drivers/gpu/drm/vc4/vc4_hdmi_regs.h
b/drivers/gpu/drm/vc4/vc4_hdmi_regs.h
index
99dde6e
..
fc97150
100644
(file)
--- a/
drivers/gpu/drm/vc4/vc4_hdmi_regs.h
+++ b/
drivers/gpu/drm/vc4/vc4_hdmi_regs.h
@@
-442,6
+442,8
@@
static inline void vc4_hdmi_write(struct vc4_hdmi *hdmi,
const struct vc4_hdmi_variant *variant = hdmi->variant;
void __iomem *base;
+ lockdep_assert_held(&hdmi->hw_lock);
+
WARN_ON(!pm_runtime_active(&hdmi->pdev->dev));
if (reg >= variant->num_registers) {