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)
commitc95469aa5a188384ccf8ac520ece931c66caf8aa
treeff5b147057b1b5f9fb981ae411c173865e0a40d2
parent097452e61366a939a4772332181cea7cdcc74760
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