From 54eecdabe0cdfdc47d77b3e182fda5899702ded7 Mon Sep 17 00:00:00 2001 From: Tudor Florea Date: Thu, 16 Oct 2014 02:06:17 +0200 Subject: initial commit for Enea Linux 4.0-140929 Migrated from the internal git server on the daisy-enea-point-release branch Signed-off-by: Tudor Florea --- ...5-GPU-Correct-suspend-resume-calling-afte.patch | 61 ++++++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 recipes-kernel/linux/linux-wandboard-3.0.35/0005-ENGR00264275-GPU-Correct-suspend-resume-calling-afte.patch (limited to 'recipes-kernel/linux/linux-wandboard-3.0.35/0005-ENGR00264275-GPU-Correct-suspend-resume-calling-afte.patch') diff --git a/recipes-kernel/linux/linux-wandboard-3.0.35/0005-ENGR00264275-GPU-Correct-suspend-resume-calling-afte.patch b/recipes-kernel/linux/linux-wandboard-3.0.35/0005-ENGR00264275-GPU-Correct-suspend-resume-calling-afte.patch new file mode 100644 index 0000000..fa937e4 --- /dev/null +++ b/recipes-kernel/linux/linux-wandboard-3.0.35/0005-ENGR00264275-GPU-Correct-suspend-resume-calling-afte.patch @@ -0,0 +1,61 @@ +From a845abe4589366d3e37b5a646be6337984074b28 Mon Sep 17 00:00:00 2001 +From: Loren HUANG +Date: Wed, 22 May 2013 17:21:30 +0800 +Subject: [PATCH 5/6] ENGR00264275 [GPU]Correct suspend/resume calling after + adding runtime pm. + +After enabling runtime pm the suspend/resume entry is changed. + +-Add new entry for suspend/resume in runtime pm frame work. +-Add static define for all runtime pm function. + +Upstream-Status: Backport [3.5.7-1.0.0] + +Signed-off-by: Loren HUANG +Acked-by: Lily Zhang +--- + .../gpu-viv/hal/os/linux/kernel/gc_hal_kernel_driver.c | 16 ++++++++++++++-- + 1 file changed, 14 insertions(+), 2 deletions(-) + +diff --git a/drivers/mxc/gpu-viv/hal/os/linux/kernel/gc_hal_kernel_driver.c b/drivers/mxc/gpu-viv/hal/os/linux/kernel/gc_hal_kernel_driver.c +index 183000d..3632a6c 100644 +--- a/drivers/mxc/gpu-viv/hal/os/linux/kernel/gc_hal_kernel_driver.c ++++ b/drivers/mxc/gpu-viv/hal/os/linux/kernel/gc_hal_kernel_driver.c +@@ -1252,20 +1252,32 @@ static const struct of_device_id mxs_gpu_dt_ids[] = { + MODULE_DEVICE_TABLE(of, mxs_gpu_dt_ids); + + #ifdef CONFIG_PM +-int gpu_runtime_suspend(struct device *dev) ++static int gpu_runtime_suspend(struct device *dev) + { + release_bus_freq(BUS_FREQ_HIGH); + return 0; + } + +-int gpu_runtime_resume(struct device *dev) ++static int gpu_runtime_resume(struct device *dev) + { + request_bus_freq(BUS_FREQ_HIGH); + return 0; + } + ++static int gpu_system_suspend(struct device *dev) ++{ ++ pm_message_t state={0}; ++ return gpu_suspend(to_platform_device(dev), state); ++} ++ ++static int gpu_system_resume(struct device *dev) ++{ ++ return gpu_resume(to_platform_device(dev)); ++} ++ + static const struct dev_pm_ops gpu_pm_ops = { + SET_RUNTIME_PM_OPS(gpu_runtime_suspend, gpu_runtime_resume, NULL) ++ SET_SYSTEM_SLEEP_PM_OPS(gpu_system_suspend, gpu_system_resume) + }; + #endif + #endif +-- +1.8.3.2 + -- cgit v1.2.3-54-g00ecf