From: Tomi Valkeinen Date: Thu, 4 Jun 2015 07:56:33 +0000 (+0300) Subject: drm: omapdrm: add lock for fb pinning X-Git-Tag: omap-for-v4.2/fixes-rc1^2~17^2~16^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f524ab7c070b39f4c8bd76fede6cacd17057ebc3;p=pandora-kernel.git drm: omapdrm: add lock for fb pinning Before atomic modesetting omap_framebuffer_pin() and omap_framebuffer_unpin() were always called with modesetting locks taken. With atomic modesetting support this is no longer the case, and we need locking to protect the pin_count and the paddr, as multiple threads may pin the same fb concurrently. This patch adds a mutex to struct omap_framebuffer, and uses it in omap_framebuffer_pin() and omap_framebuffer_unpin(). Signed-off-by: Tomi Valkeinen Acked-by: Laurent Pinchart --- Reading git-diff-tree failed