From 7fcc229e1b68bf399311c8ae73d6a307aba7ad18 Mon Sep 17 00:00:00 2001 From: Alex Frid Date: Sat, 2 Oct 2010 23:12:22 -0700 Subject: [ARM/tegra] nvhost: Reset syncpoints on host initialization. Added syncpoints reset to host initialization, to synchronize h/w state with shadow variables. Bug 743910 Change-Id: I09420fe2fb85b0e79f0e5d11ade8515e28e96910 Reviewed-on: http://git-master/r/8038 Tested-by: Stephen Warren Reviewed-by: Andrew Howe Reviewed-by: Yu-Huan Hsu --- drivers/video/tegra/host/nvhost_dev.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/video/tegra/host/nvhost_dev.c b/drivers/video/tegra/host/nvhost_dev.c index 334e9b6acdb9..c6be45647e2b 100644 --- a/drivers/video/tegra/host/nvhost_dev.c +++ b/drivers/video/tegra/host/nvhost_dev.c @@ -707,6 +707,10 @@ static int __init nvhost_probe(struct platform_device *pdev) platform_set_drvdata(pdev, host); + clk_enable(host->mod.clk[0]); + nvhost_syncpt_reset(&host->syncpt); + clk_disable(host->mod.clk[0]); + dev_info(&pdev->dev, "initialized\n"); return 0; -- cgit v1.2.3