aboutsummaryrefslogtreecommitdiffstats
path: root/package/acx/patches
diff options
context:
space:
mode:
authorMatteo Croce <matteo@openwrt.org>2007-09-17 00:08:24 +0000
committerMatteo Croce <matteo@openwrt.org>2007-09-17 00:08:24 +0000
commit2bf61a9094a0329b6a7cc300117e98fec05b2125 (patch)
tree37f0199146a9aa0d7edff6467241095ae74397ce /package/acx/patches
parente61c6fae14c94770c94d9a4f9e7c97941d36cf16 (diff)
downloadupstream-2bf61a9094a0329b6a7cc300117e98fec05b2125.tar.gz
upstream-2bf61a9094a0329b6a7cc300117e98fec05b2125.tar.bz2
upstream-2bf61a9094a0329b6a7cc300117e98fec05b2125.zip
disable powersave, vlynq can't handle this
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@8818 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/acx/patches')
-rw-r--r--package/acx/patches/011-no_pm.patch33
1 files changed, 33 insertions, 0 deletions
diff --git a/package/acx/patches/011-no_pm.patch b/package/acx/patches/011-no_pm.patch
new file mode 100644
index 0000000000..d1d0feb2f8
--- /dev/null
+++ b/package/acx/patches/011-no_pm.patch
@@ -0,0 +1,33 @@
+diff -ruN acx-20070610-old/pci.c acx-20070610-new/pci.c
+--- acx-20070610-old/pci.c 2007-09-16 17:57:55.000000000 +0200
++++ acx-20070610-new/pci.c 2007-09-16 17:59:25.000000000 +0200
+@@ -1630,7 +1630,9 @@
+ log(L_IRQ|L_INIT, "using IRQ %d\n", pdev->irq);
+
+ /* need to be able to restore PCI state after a suspend */
++#ifdef CONFIG_PM
+ pci_save_state(pdev);
++#endif
+ pci_set_drvdata(pdev, ndev);
+
+ /* ok, pci setup is finished, now start initializing the card */
+@@ -1728,7 +1730,9 @@
+ pci_disable_device(pdev);
+ fail_pci_enable_device:
+
++#ifdef CONFIG_PM
+ pci_set_power_state(pdev, PCI_D3hot);
++#endif
+
+ done:
+ FN_EXIT1(result);
+@@ -1848,7 +1852,9 @@
+ free_netdev(ndev);
+
+ /* put device into ACPI D3 mode (shutdown) */
++#ifdef CONFIG_PM
+ pci_set_power_state(pdev, PCI_D3hot);
++#endif
+
+ end:
+ FN_EXIT0;