]> git.baikalelectronics.ru Git - kernel.git/commit
drm/mediatek: use correct device to import PRIME buffers
authorAlexandre Courbot <acourbot@chromium.org>
Mon, 29 Jul 2019 05:33:34 +0000 (14:33 +0900)
committerCK Hu <ck.hu@mediatek.com>
Wed, 14 Aug 2019 23:43:45 +0000 (07:43 +0800)
commit90aba5feef2c500872b934bbfaf8c2efa460fce9
treeff297572bce266628c87b9d609d5ff2b67e81e7d
parent3946fc9291da929ed6836ab79a3b87c34d142954
drm/mediatek: use correct device to import PRIME buffers

PRIME buffers should be imported using the DMA device. To this end, use
a custom import function that mimics drm_gem_prime_import_dev(), but
passes the correct device.

Fixes: 6a252d99de5c3 ("drm/mediatek: Add DRM Driver for Mediatek SoC MT8173.")
Signed-off-by: Alexandre Courbot <acourbot@chromium.org>
Signed-off-by: CK Hu <ck.hu@mediatek.com>
drivers/gpu/drm/mediatek/mtk_drm_drv.c