]> git.baikalelectronics.ru Git - kernel.git/commit
gpu: host1x: Set DMA ops on device creation
authorAlexandre Courbot <acourbot@nvidia.com>
Fri, 26 Feb 2016 09:06:53 +0000 (18:06 +0900)
committerThierry Reding <treding@nvidia.com>
Fri, 4 Mar 2016 15:24:57 +0000 (16:24 +0100)
commitcac31be281142fdf997cb5407d836c9d26ceb1f3
treeff5b147057b1b5f9fb981ae411c173865e0a40d2
parentf1514f8ba85977d0eb8517eaa58ac3c7dc0c6957
gpu: host1x: Set DMA ops on device creation

Currently host1x-instanciated devices have their dma_ops left to NULL,
which makes any DMA operation (like buffer import) on ARM64 fallback
to the dummy_dma_ops and fail with an error.

This patch calls of_dma_configure() with the host1x node when creating
such a device, so the proper DMA operations are set.

Suggested-by: Thierry Reding <thierry.reding@gmail.com>
Signed-off-by: Alexandre Courbot <acourbot@nvidia.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
drivers/gpu/host1x/bus.c