]> git.baikalelectronics.ru Git - kernel.git/commit
omapdrm: use modeset_lock_all
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Sun, 20 Jan 2013 14:50:41 +0000 (15:50 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Sun, 20 Jan 2013 21:16:53 +0000 (22:16 +0100)
commitfc4dec6193d5eba476eb321a8bfb7744bcc227f3
tree497dec3a9bc20613069422e40aa8f8b40e389621
parent3be7f86408fd096eb95bcc625f289577d5fd1c0c
omapdrm: use modeset_lock_all

I've left the locking in the debugfs code as-is, it's essentially just
used to keep the framebuffer object alive (which won't be necessary
any more later on). We don't need fb refcounting either, since the new
mode_config.fb_lock ensures that the framebuffers can't disappear
(once mode_config.mutex doesn't guarantee this any more later on in
the series).

The fbcon restore needs all modeset locks. The crtc callbacks seem to
only need the crtc locks, but I've quickly discussed things with Rob
Clark and he's fine with just using modeset_lock_all for those, too.
He'll look into converting things over later.

Reviewed-by: Rob Clark <rob@ti.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/staging/omapdrm/omap_crtc.c
drivers/staging/omapdrm/omap_drv.c