]> git.baikalelectronics.ru Git - kernel.git/commit
drm/tegra: hub: Do not enable orphaned window group
authorNicolin Chen <nicoleotsuka@gmail.com>
Tue, 19 May 2020 09:03:01 +0000 (02:03 -0700)
committerThierry Reding <treding@nvidia.com>
Tue, 16 Jun 2020 11:46:18 +0000 (13:46 +0200)
commit1a40ac6473f295c572750d83670ab31bf8248304
tree0385fe3732656a37bd36ad519abe1d41dae76835
parentdd5fe398fe309167bc99e371cc120243d242dcb0
drm/tegra: hub: Do not enable orphaned window group

Though the unconditional enable/disable code is not a final solution,
we don't want to run into a NULL pointer situation when window group
doesn't link to its DC parent if the DC is disabled in Device Tree.

So this patch simply adds a check to make sure that window group has
a valid parent before running into tegra_windowgroup_enable/disable.

Signed-off-by: Nicolin Chen <nicoleotsuka@gmail.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
drivers/gpu/drm/tegra/hub.c