Re: [RFC PATCHv2 2/3] drm/prime: Introduce drm_gem_prime_import_platform

2017-05-02 Thread Daniel Vetter
On Wed, Apr 26, 2017 at 02:12:29PM -0700, Laura Abbott wrote: > The existing drm_gem_prime_import function uses the underlying > struct device of a drm_device for attaching to a dma_buf. Some drivers > (notably vgem) may not have an underlying device structure. Offer > an alternate function to atta

[RFC PATCHv2 2/3] drm/prime: Introduce drm_gem_prime_import_platform

2017-04-26 Thread Laura Abbott
The existing drm_gem_prime_import function uses the underlying struct device of a drm_device for attaching to a dma_buf. Some drivers (notably vgem) may not have an underlying device structure. Offer an alternate function to attach using a platform device associated with drm_device. Signed-off-by: