disable powersave, vlynq can't handle this
[openwrt-10.03/.git] / package / acx / patches / 011-no_pm.patch
1 diff -ruN acx-20070610-old/pci.c acx-20070610-new/pci.c
2 --- acx-20070610-old/pci.c      2007-09-16 17:57:55.000000000 +0200
3 +++ acx-20070610-new/pci.c      2007-09-16 17:59:25.000000000 +0200
4 @@ -1630,7 +1630,9 @@
5         log(L_IRQ|L_INIT, "using IRQ %d\n", pdev->irq);
6  
7         /* need to be able to restore PCI state after a suspend */
8 +#ifdef CONFIG_PM
9         pci_save_state(pdev);
10 +#endif
11         pci_set_drvdata(pdev, ndev);
12  
13         /* ok, pci setup is finished, now start initializing the card */
14 @@ -1728,7 +1730,9 @@
15         pci_disable_device(pdev);
16  fail_pci_enable_device:
17  
18 +#ifdef CONFIG_PM
19         pci_set_power_state(pdev, PCI_D3hot);
20 +#endif
21  
22  done:
23         FN_EXIT1(result);
24 @@ -1848,7 +1852,9 @@
25         free_netdev(ndev);
26  
27         /* put device into ACPI D3 mode (shutdown) */
28 +#ifdef CONFIG_PM
29         pci_set_power_state(pdev, PCI_D3hot);
30 +#endif
31  
32  end:
33         FN_EXIT0;