mirror of
https://github.com/torvalds/linux.git
synced 2026-06-08 14:42:37 +02:00
MALI Utgard: RK: fix some potential problems about pm_runtime
Including: not to call pm_runtime_suspend() in mali_runtime_idle(); make it more strict to power off the GPU. Change-Id: I8c49dd13f57826f28606fd7a4e451707978b2906 Signed-off-by: Zhen Chen <chenzhen@rock-chips.com>
This commit is contained in:
parent
ac1e80931c
commit
1919e3d736
|
|
@ -62,9 +62,7 @@ struct rk_context *s_rk_context;
|
|||
|
||||
static int rk_context_create_sysfs_files(struct device *dev)
|
||||
{
|
||||
int ret = 0;
|
||||
|
||||
return ret;
|
||||
return 0;
|
||||
}
|
||||
|
||||
static void rk_context_remove_sysfs_files(struct device *dev)
|
||||
|
|
@ -358,7 +356,8 @@ static int mali_runtime_suspend(struct device *device)
|
|||
ret = device->driver->pm->runtime_suspend(device);
|
||||
}
|
||||
|
||||
rk_platform_power_off_gpu(device);
|
||||
if (!ret)
|
||||
rk_platform_power_off_gpu(device);
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
|
@ -396,8 +395,6 @@ static int mali_runtime_idle(struct device *device)
|
|||
return ret;
|
||||
}
|
||||
|
||||
pm_runtime_suspend(device);
|
||||
|
||||
return 0;
|
||||
}
|
||||
#endif
|
||||
|
|
@ -415,7 +412,8 @@ static int mali_os_suspend(struct device *device)
|
|||
ret = device->driver->pm->suspend(device);
|
||||
}
|
||||
|
||||
rk_platform_power_off_gpu(device);
|
||||
if (!ret)
|
||||
rk_platform_power_off_gpu(device);
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user