From: Tomi Valkeinen Date: Wed, 3 Sep 2014 19:25:54 +0000 (+0000) Subject: drm/omap: add pin refcounting to omap_framebuffer X-Git-Tag: omap-for-v4.1/fixes-rc1~82^2~15^2~18 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f36eb5a899d3ea57e3d167427260848e116e27a0;p=pandora-kernel.git drm/omap: add pin refcounting to omap_framebuffer omap_framebuffer_pin() and omap_framebuffer_unpin() are currently broken, as they cannot be called multiple times (i.e. pin, pin, unpin, unpin), which is what happens in certain cases. This issue causes the driver to possibly use 0 as an address for a displayed buffer, leading to OCP error from DSS. This patch fixes the issue by adding a simple pin_count, used to track the number of pins. Signed-off-by: Tomi Valkeinen --- Reading git-diff-tree failed