Prev: [PATCH 02/16] viafb: use proper pci config API
Next: [PATCH 12/16] fix register save count, so it matches the restore count.
From: Jonathan Corbet on 8 Apr 2010 13:20 The code is only known to work there, and is strongly suspected to not work on other chipsets. Signed-off-by: Jonathan Corbet <corbet(a)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 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo(a)vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/ |