]> git.baikalelectronics.ru Git - kernel.git/commit
drm: tegra: protect DC register access with mutex
authorLucas Stach <dev@lynxeye.de>
Wed, 19 Dec 2012 21:38:54 +0000 (21:38 +0000)
committerDave Airlie <airlied@redhat.com>
Sun, 30 Dec 2012 04:01:33 +0000 (14:01 +1000)
commit1f077c9ab3974000f784cdea1b06a5a2c7300320
treef6b6448f3080240513a40208098e99625010a31d
parent37a9416d117508e6f158de677e44da48471aa87c
drm: tegra: protect DC register access with mutex

Window properties are programmed through a shared aperture and have to
happen atomically. Also we do the read-update-write dance on some of the
shared regs.
To make sure that different functions don't stumble over each other
protect the register access with a mutex.

Signed-off-by: Lucas Stach <dev@lynxeye.de>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/tegra/dc.c
drivers/gpu/drm/tegra/drm.h