summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/tegra/sor.c
diff options
context:
space:
mode:
authorThierry Reding2017-12-14 13:37:53 +0100
committerThierry Reding2017-12-21 14:52:34 +0100
commit1087fac18b8e3ec8fadf1595bbc46dce7ff08a81 (patch)
treebcaa99364e5ef62abc799aa36aa4625235e3a61a /drivers/gpu/drm/tegra/sor.c
parentdrm/tegra: dc: Support more formats (diff)
downloadkernel-qcow2-linux-1087fac18b8e3ec8fadf1595bbc46dce7ff08a81.tar.gz
kernel-qcow2-linux-1087fac18b8e3ec8fadf1595bbc46dce7ff08a81.tar.xz
kernel-qcow2-linux-1087fac18b8e3ec8fadf1595bbc46dce7ff08a81.zip
drm/tegra: dc: Use direct offset to plane registers
Traditionally, windows were accessed indirectly, through a register selection window that required a global register to be programmed with the index of the window to access. Since the global register could be written from modesetting functions as well as the interrupt handler concurrently, accesses had to be serialized using a lock. Using direct accesses to the window registers the lock can be avoided. Signed-off-by: Thierry Reding <treding@nvidia.com>
Diffstat (limited to 'drivers/gpu/drm/tegra/sor.c')
-rw-r--r--drivers/gpu/drm/tegra/sor.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/tegra/sor.c b/drivers/gpu/drm/tegra/sor.c
index f6313c4d612e..4be9edf9c6fe 100644
--- a/drivers/gpu/drm/tegra/sor.c
+++ b/drivers/gpu/drm/tegra/sor.c
@@ -3047,6 +3047,8 @@ static int tegra_sor_probe(struct platform_device *pdev)
name, err);
goto remove;
}
+ } else {
+ sor->clk_out = sor->clk;
}
sor->clk_parent = devm_clk_get(&pdev->dev, "parent");