From 5302628c0d9aa88febf6c422b88f4ef4e8201a69 Mon Sep 17 00:00:00 2001 From: Liang Chen Date: Tue, 4 Apr 2023 20:27:12 +0800 Subject: [PATCH] MALI: mali400: force gpu enter runtime suspend before system suspend Signed-off-by: Liang Chen Change-Id: I17c3c883774de97f2e09c56184ed98baf1ce5a07 --- drivers/gpu/arm/mali400/mali/linux/mali_kernel_linux.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/gpu/arm/mali400/mali/linux/mali_kernel_linux.c b/drivers/gpu/arm/mali400/mali/linux/mali_kernel_linux.c index 487227f6631d..534db255ed02 100755 --- a/drivers/gpu/arm/mali400/mali/linux/mali_kernel_linux.c +++ b/drivers/gpu/arm/mali400/mali/linux/mali_kernel_linux.c @@ -31,6 +31,7 @@ #include #include #include +#include #include #include "mali_kernel_common.h" @@ -745,6 +746,7 @@ static int mali_driver_suspend_scheduler(struct device *dev) return -ENODEV; #endif + pm_runtime_force_suspend(dev); #if defined(CONFIG_MALI_DEVFREQ) && \ (LINUX_VERSION_CODE >= KERNEL_VERSION(3, 8, 0)) devfreq_suspend_device(mdev->devfreq); @@ -789,6 +791,7 @@ static int mali_driver_resume_scheduler(struct device *dev) (LINUX_VERSION_CODE >= KERNEL_VERSION(3, 8, 0)) devfreq_resume_device(mdev->devfreq); #endif + pm_runtime_force_resume(dev); return 0; }