]> git.baikalelectronics.ru Git - kernel.git/commit
drm/omap: use refcount API to track the number of users of dma_addr
authorJean-Jacques Hiblot <jjhiblot@ti.com>
Thu, 10 Oct 2019 11:59:53 +0000 (13:59 +0200)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Fri, 11 Oct 2019 14:00:53 +0000 (17:00 +0300)
commitc0d8d8199f5bf5b312f05e337f486a6f651f91ae
tree6ff8fa04992ee647187d7e8d3c035d4525eb759d
parentf4e9cb38a8db01b2092ab3e47db4877f8f68b6a5
drm/omap: use refcount API to track the number of users of dma_addr

This would give us a WARN_ON() if the pin/unpin calls are unbalanced.

Proposed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Jean-Jacques Hiblot <jjhiblot@ti.com>
Reviewed-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20191010120000.1421-2-jjhiblot@ti.com
drivers/gpu/drm/omapdrm/omap_gem.c