mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-22 17:25:35 +03:00
gpu: host1x: Remove PM ops from DLA host1x bus-side driver
Remove power management ops from the host1x bus-side DLA driver. The host1x bus-side driver is a virtual device and should not directly access hardware. PM ops should only be used in the platform device driver. This fixes suspend/resume test failure when tegra-drm is loaded without any enabled engines under host1x node. Bug 5055946 Change-Id: I2e07f759e1d92b4c5a92739e1b5439d39800773f Signed-off-by: Vamsee Vardhan Thummala <vthummala@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3337661 Reviewed-by: Sourab Gupta <sourabg@nvidia.com> Reviewed-by: Mikko Perttunen <mperttunen@nvidia.com> Reviewed-by: Mainak Sen <msen@nvidia.com> GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com>
This commit is contained in:
committed by
Jon Hunter
parent
05fdb35d8e
commit
6b5d0b8383
@@ -396,14 +396,6 @@ static int nvdla_resume(struct device *dev)
|
|||||||
return nvdla_runtime_resume(dev);
|
return nvdla_runtime_resume(dev);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Create our own PM operations structure */
|
|
||||||
static const struct dev_pm_ops nvdla_pm_ops = {
|
|
||||||
.runtime_suspend = nvdla_runtime_suspend,
|
|
||||||
.runtime_resume = nvdla_runtime_resume,
|
|
||||||
.suspend = nvdla_suspend,
|
|
||||||
.resume = nvdla_resume,
|
|
||||||
};
|
|
||||||
|
|
||||||
/* Module runtime suspend implementation */
|
/* Module runtime suspend implementation */
|
||||||
int nvdla_module_runtime_suspend(struct device *dev)
|
int nvdla_module_runtime_suspend(struct device *dev)
|
||||||
{
|
{
|
||||||
@@ -547,7 +539,6 @@ void nvdla_module_complete_resume(struct device *dev)
|
|||||||
static struct host1x_driver host1x_nvdla_driver = {
|
static struct host1x_driver host1x_nvdla_driver = {
|
||||||
.driver = {
|
.driver = {
|
||||||
.name = "host1x-nvdla",
|
.name = "host1x-nvdla",
|
||||||
.pm = &nvdla_pm_ops,
|
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user