drm/nouveau/tegra: Skip manual unpowergating when not necessary
authorMikko Perttunen <mperttunen@nvidia.com>
Fri, 9 Jun 2017 12:25:39 +0000 (15:25 +0300)
committerBen Skeggs <bskeggs@redhat.com>
Fri, 16 Jun 2017 04:05:03 +0000 (14:05 +1000)
commitb1df242544b9477dd529b468c13066b66a3f9e97
tree496ef17036e3a15e8f73137362a61738b5840731
parent3a93dd2243c6af8a52edad675c11a6cdaef969c6
drm/nouveau/tegra: Skip manual unpowergating when not necessary

On Tegra186, powergating is handled by the BPMP power domain provider
and the "legacy" powergating API is not available. Therefore skip
these calls if we are attached to a power domain.

Signed-off-by: Mikko Perttunen <mperttunen@nvidia.com>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/nvkm/engine/device/tegra.c