lkml.org 
[lkml]   [2010]   [Apr]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH 16/16] viafb: Only suspend/resume on VX855
Date
The code is only known to work there, and is strongly suspected to not work
on other chipsets.

Signed-off-by: Jonathan Corbet <corbet@lwn.net>
---
drivers/video/via/viafbdev.c | 12 ++++++++++++
1 files changed, 12 insertions(+), 0 deletions(-)

diff --git a/drivers/video/via/viafbdev.c b/drivers/video/via/viafbdev.c
index f834440..2e70c79 100644
--- a/drivers/video/via/viafbdev.c
+++ b/drivers/video/via/viafbdev.c
@@ -1916,6 +1916,12 @@ static int viafb_suspend(struct pci_dev *pdev, pm_message_t state)
int i;
void __iomem *iomem = viaparinfo->shared->engine_mmio;

+/*
+ * This code is currently only known to work on VX855
+ */
+ if (viaparinfo->shared->chip_info.gfx_chip_name != UNICHROME_VX855)
+ return -ENOTSUPP;
+
if (state.event == PM_EVENT_SUSPEND) {
acquire_console_sem();

@@ -1940,6 +1946,12 @@ static int viafb_resume(struct pci_dev *pdev)
int i;
void __iomem *iomem = viaparinfo->shared->engine_mmio;

+/*
+ * This code is currently only known to work on VX855
+ */
+ if (viaparinfo->shared->chip_info.gfx_chip_name != UNICHROME_VX855)
+ return -ENOTSUPP;
+
acquire_console_sem();
pci_set_power_state(pdev, PCI_D0);
pci_restore_state(pdev);
--
1.7.0.1


\
 
 \ /
  Last update: 2010-04-08 19:21    [W:0.292 / U:0.352 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site