From 44d4458964df5c12bf527b8b3b17eda4c098d54e Mon Sep 17 00:00:00 2001 From: Aries Lee Date: Wed, 19 Jan 2011 01:24:06 +0800 Subject: [PATCH] [jme] Fix suspend back-port compatible issue --- jme.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/jme.c b/jme.c index d366e6a..3ebfd49 100644 --- a/jme.c +++ b/jme.c @@ -3322,7 +3322,11 @@ jme_suspend(struct pci_dev *pdev, pm_message_t state) pci_save_state(pdev); jme_powersave_phy(jme); +#if LINUX_VERSION_CODE <= KERNEL_VERSION(2,6,27) pci_enable_wake(pdev, PCI_D3hot, true); +#else + pci_pme_active(pdev, true); +#endif pci_set_power_state(pdev, PCI_D3hot); return 0; -- 2.39.3