summaryrefslogtreecommitdiffstats
path: root/meta-moblin/packages/linux/linux-moblin-2.6.29.1/linux-2.6.29-psb-S0i1_and_S0i3_OSPM_support.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-moblin/packages/linux/linux-moblin-2.6.29.1/linux-2.6.29-psb-S0i1_and_S0i3_OSPM_support.patch')
-rw-r--r--meta-moblin/packages/linux/linux-moblin-2.6.29.1/linux-2.6.29-psb-S0i1_and_S0i3_OSPM_support.patch28
1 files changed, 28 insertions, 0 deletions
diff --git a/meta-moblin/packages/linux/linux-moblin-2.6.29.1/linux-2.6.29-psb-S0i1_and_S0i3_OSPM_support.patch b/meta-moblin/packages/linux/linux-moblin-2.6.29.1/linux-2.6.29-psb-S0i1_and_S0i3_OSPM_support.patch
new file mode 100644
index 0000000000..1003765535
--- /dev/null
+++ b/meta-moblin/packages/linux/linux-moblin-2.6.29.1/linux-2.6.29-psb-S0i1_and_S0i3_OSPM_support.patch
@@ -0,0 +1,28 @@
1diff --git a/drivers/gpu/drm/psb/psb_fb.c b/drivers/gpu/drm/psb/psb_fb.c
2index 67934c0..8fc5221 100644
3--- a/drivers/gpu/drm/psb/psb_fb.c
4+++ b/drivers/gpu/drm/psb/psb_fb.c
5@@ -896,8 +896,10 @@ static int psbfb_kms_off(struct drm_device *dev, int suspend)
6 list_for_each_entry(fb, &dev->mode_config.fb_list, head) {
7 struct fb_info *info = fb->fbdev;
8
9- if (suspend)
10+ if (suspend) {
11 fb_set_suspend(info, 1);
12+ psbfb_blank(FB_BLANK_POWERDOWN, info);
13+ }
14 }
15 mutex_unlock(&dev->mode_config.mutex);
16
17@@ -928,8 +930,10 @@ static int psbfb_kms_on(struct drm_device *dev, int resume)
18 list_for_each_entry(fb, &dev->mode_config.fb_list, head) {
19 struct fb_info *info = fb->fbdev;
20
21- if (resume)
22+ if (resume) {
23 fb_set_suspend(info, 0);
24+ psbfb_blank(FB_BLANK_UNBLANK, info);
25+ }
26
27 }
28 mutex_unlock(&dev->mode_config.mutex);