summaryrefslogtreecommitdiff
path: root/patches/collateral-evolutions/network
diff options
context:
space:
mode:
authorHauke Mehrtens <hauke@hauke-m.de>2013-08-19 01:37:55 +0200
committerLuis R. Rodriguez <mcgrof@do-not-panic.com>2013-08-27 11:43:04 -0700
commit9bb8b700a4fa9de778d1a17c337382e48d3133fd (patch)
treeb733936e9dec69552ae5ea7c6e4828f2d129e2ef /patches/collateral-evolutions/network
parentb38999b42636f20da4c5398073d0378302240651 (diff)
backports: backport pci power save for mwifiex
This patch makes mwifiex use the old suspend resume functions on older kernels. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
Diffstat (limited to 'patches/collateral-evolutions/network')
-rw-r--r--patches/collateral-evolutions/network/11-dev-pm-ops/drivers_net_wireless_mwifiex_pcie.patch27
1 files changed, 27 insertions, 0 deletions
diff --git a/patches/collateral-evolutions/network/11-dev-pm-ops/drivers_net_wireless_mwifiex_pcie.patch b/patches/collateral-evolutions/network/11-dev-pm-ops/drivers_net_wireless_mwifiex_pcie.patch
new file mode 100644
index 00000000..4b76db35
--- /dev/null
+++ b/patches/collateral-evolutions/network/11-dev-pm-ops/drivers_net_wireless_mwifiex_pcie.patch
@@ -0,0 +1,27 @@
+--- a/drivers/net/wireless/mwifiex/pcie.c
++++ b/drivers/net/wireless/mwifiex/pcie.c
+@@ -260,6 +260,9 @@ static DEFINE_PCI_DEVICE_TABLE(mwifiex_i
+ MODULE_DEVICE_TABLE(pci, mwifiex_ids);
+
+ #ifdef CONFIG_PM_SLEEP
++compat_pci_suspend(mwifiex_pcie_suspend);
++compat_pci_resume(mwifiex_pcie_resume);
++
+ /* Power Management Hooks */
+ static SIMPLE_DEV_PM_OPS(mwifiex_pcie_pm_ops, mwifiex_pcie_suspend,
+ mwifiex_pcie_resume);
+@@ -272,9 +275,14 @@ static struct pci_driver __refdata mwifi
+ .probe = mwifiex_pcie_probe,
+ .remove = mwifiex_pcie_remove,
+ #ifdef CONFIG_PM_SLEEP
++#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,29))
+ .driver = {
+ .pm = &mwifiex_pcie_pm_ops,
+ },
++#else
++ .suspend = mwifiex_pcie_suspend_compat,
++ .resume = mwifiex_pcie_resume_compat,
++#endif
+ #endif
+ .shutdown = mwifiex_pcie_shutdown,
+ };