diff options
author | Maxime Ripard <maxime@cerno.tech> | 2021-10-25 16:11:08 +0200 |
---|---|---|
committer | Maxime Ripard <maxime@cerno.tech> | 2021-11-05 12:53:24 +0100 |
commit | 81fb55e500a82a070da20f02b2e252d6a09a34c3 (patch) | |
tree | c675e4bee7f906a53c186e7c2d28b5a69f84afbd /security | |
parent | eeb6ab4639590130d25670204ab7b6011333d685 (diff) | |
download | linux-81fb55e500a82a070da20f02b2e252d6a09a34c3.tar.bz2 |
drm/vc4: hdmi: Add a spinlock to protect register access
The vc4 HDMI driver has multiple path shared between the CEC, ALSA and
KMS frameworks, plus two interrupt handlers (CEC and hotplug) that will
read and modify a number of registers.
Even though not bug has been reported so far, it's definitely unsafe, so
let's just add a spinlock to protect the register access of the HDMI
controller.
Link: https://lore.kernel.org/r/20211025141113.702757-5-maxime@cerno.tech
Fixes: c8b75bca92cb ("drm/vc4: Add KMS support for Raspberry Pi.")
Acked-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Maxime Ripard <maxime@cerno.tech>
Diffstat (limited to 'security')
0 files changed, 0 insertions, 0 deletions