Commit d5ad0e3d authored by Thierry Reding's avatar Thierry Reding

drm/tegra: vic: Inherit DMA mask from host1x

VIC, just like all other host1x clients, has the same addressing range
as its parent host1x device. Inherit the DMA mask to reflect that.
Signed-off-by: default avatarThierry Reding <treding@nvidia.com>
parent dd631e8a
...@@ -385,6 +385,13 @@ static int vic_probe(struct platform_device *pdev) ...@@ -385,6 +385,13 @@ static int vic_probe(struct platform_device *pdev)
struct vic *vic; struct vic *vic;
int err; int err;
/* inherit DMA mask from host1x parent */
err = dma_coerce_mask_and_coherent(dev, *dev->parent->dma_mask);
if (err < 0) {
dev_err(&pdev->dev, "failed to set DMA mask: %d\n", err);
return err;
}
vic = devm_kzalloc(dev, sizeof(*vic), GFP_KERNEL); vic = devm_kzalloc(dev, sizeof(*vic), GFP_KERNEL);
if (!vic) if (!vic)
return -ENOMEM; return -ENOMEM;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment