mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-06 14:48:06 +00:00
drm/tegra: dc: Request syncpoint earlier
Request a syncpoint for display prior to registering the host1x client. This will ensure that the syncpoint will be acquired when the KMS driver initializes. Signed-off-by: Thierry Reding <treding@nvidia.com>
This commit is contained in:
parent
e83dcb5bb6
commit
01a5da0c10
1 changed files with 4 additions and 4 deletions
|
@ -1994,6 +1994,10 @@ static int tegra_dc_probe(struct platform_device *pdev)
|
||||||
return -ENXIO;
|
return -ENXIO;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
dc->syncpt = host1x_syncpt_request(&pdev->dev, flags);
|
||||||
|
if (!dc->syncpt)
|
||||||
|
dev_warn(&pdev->dev, "failed to allocate syncpoint\n");
|
||||||
|
|
||||||
INIT_LIST_HEAD(&dc->client.list);
|
INIT_LIST_HEAD(&dc->client.list);
|
||||||
dc->client.ops = &dc_client_ops;
|
dc->client.ops = &dc_client_ops;
|
||||||
dc->client.dev = &pdev->dev;
|
dc->client.dev = &pdev->dev;
|
||||||
|
@ -2011,10 +2015,6 @@ static int tegra_dc_probe(struct platform_device *pdev)
|
||||||
return err;
|
return err;
|
||||||
}
|
}
|
||||||
|
|
||||||
dc->syncpt = host1x_syncpt_request(&pdev->dev, flags);
|
|
||||||
if (!dc->syncpt)
|
|
||||||
dev_warn(&pdev->dev, "failed to allocate syncpoint\n");
|
|
||||||
|
|
||||||
platform_set_drvdata(pdev, dc);
|
platform_set_drvdata(pdev, dc);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Add table
Reference in a new issue