From: Aries Lee Date: Tue, 18 Jan 2011 17:24:06 +0000 (+0800) Subject: [jme] Fix suspend back-port compatible issue X-Git-Tag: bp-1.0.8~3 X-Git-Url: http://bbs.cooldavid.org/git/?p=jme.git;a=commitdiff_plain;h=44d4458964df5c12bf527b8b3b17eda4c098d54e [jme] Fix suspend back-port compatible issue --- 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;