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)
commit83c0bcb694be31dcd6c04bdd935b96a95a0af548
treef6b6448f3080240513a40208098e99625010a31d
parent4026bfb39a3e63e32b3c4a648bb1ac1fd8c6b162
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