* [PATCH] airo : allow supend with card without power management
@ 2009-10-09 20:12 matthieu castet
0 siblings, 0 replies; only message in thread
From: matthieu castet @ 2009-10-09 20:12 UTC (permalink / raw)
To: linux-wireless
Some airo card don't support power Management [1].
Don't abort suspend with those cards.
00:06.0 Network controller: AIRONET Wireless Communications PC4800 (rev 01)
Flags: medium devsel, IRQ 17
Memory at dffffe00 (32-bit, non-prefetchable) [size=128]
I/O ports at d000 [size=128]
I/O ports at cc00 [size=64]
Kernel driver in use: airo
Signed-off-by: Matthieu CASTET <castet.matthieu@free.fr>
Index: linux-2.6/drivers/net/wireless/airo.c
===================================================================
--- linux-2.6.orig/drivers/net/wireless/airo.c 2009-10-09 22:06:24.000000000 +0200
+++ linux-2.6/drivers/net/wireless/airo.c 2009-10-09 22:06:38.000000000 +0200
@@ -5660,7 +5660,8 @@
pci_enable_wake(pdev, pci_choose_state(pdev, state), 1);
pci_save_state(pdev);
- return pci_set_power_state(pdev, pci_choose_state(pdev, state));
+ pci_set_power_state(pdev, pci_choose_state(pdev, state));
+ return 0;
}
static int airo_pci_resume(struct pci_dev *pdev)
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2009-10-09 20:13 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-10-09 20:12 [PATCH] airo : allow supend with card without power management matthieu castet
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).