Reinette Chatre
c4e061ace7
iwlwifi: save PCI state before suspend, restore after resume
This is the right thing to do and fixes the following warning:
[ 115.012278] ------------[ cut here ]------------
[ 115.012281] WARNING: at drivers/pci/pci-driver.c:370
pci_legacy_suspend+0x85/0xc2()
[ 115.012285] Hardware name: Latitude D630
[ 115.012301] PCI PM: Device state not saved by
iwl3945_pci_suspend+0x0/0x4c [iwl3945]
[ 115.012304] Modules linked in: fuse nfsd lockd nfs_acl auth_rpcgss
exportfs sunrpc ipv6 acpi_cpufreq kvm_intel kvm snd_hda_codec_idt
snd_hda_intel snd_hda_codec snd_hwdep arc4 snd_seq_device snd_pcm_oss
snd_mixer_oss ecb snd_pcm cryptomgr aead snd_timer crypto_blkcipher
snd snd_page_alloc ohci1394 crypto_hash crypto_algapi ch341 ieee1394
usbserial thermal iwl3945 mac80211 led_class lib80211 tg3 processor
i2c_i801 i2c_core sg cfg80211 libphy usbhid battery ac button sr_mod
cdrom evdev dcdbas ata_generic ata_piix libata sd_mod scsi_mod ext3
jbd mbcache uhci_hcd ohci_hcd ehci_hcd usbcore [last unloaded:
microcode]
[ 115.012374] Pid: 4163, comm: pm-suspend Not tainted
2.6.29-rc3-00227-gf1dd849-dirty #67
[ 115.012377] Call Trace:
[ 115.012382] [<ffffffff8023d04d>] warn_slowpath+0xb1/0xed
[ 115.012387] [<ffffffff80450b5e>] ? _spin_unlock_irqrestore+0x5c/0x78
[ 115.012390] [<ffffffff80254f08>] ? up+0x34/0x39
[ 115.012394] [<ffffffff80362319>] ? acpi_ut_release_mutex+0x5d/0x61
[ 115.012397] [<ffffffff803584b2>] ? acpi_get_data+0x5e/0x70
[ 115.012400] [<ffffffff80363dd9>] ? acpi_bus_get_device+0x25/0x39
[ 115.012403] [<ffffffff80363e98>] ? acpi_bus_power_manageable+0x11/0x29
[ 115.012406] [<ffffffff803462f7>] ? acpi_pci_power_manageable+0x17/0x19
[ 115.012410] [<ffffffff8033ddfd>] ? pci_set_power_state+0xcc/0x101
[ 115.012418] [<ffffffffa01f28e9>] ? iwl3945_pci_suspend+0x0/0x4c [iwl3945]
[ 115.012422] [<ffffffff803401e6>] pci_legacy_suspend+0x85/0xc2
[ 115.012425] [<ffffffff80340316>] pci_pm_suspend+0x34/0x86
[ 115.012429] [<ffffffff8039d7ce>] pm_op+0x52/0xe5
[ 115.012432] [<ffffffff8039dd78>] device_suspend+0x32a/0x451
[ 115.012436] [<ffffffff80269ec2>] suspend_devices_and_enter+0x3e/0x13a
[ 115.012439] [<ffffffff8026a128>] enter_state+0x110/0x164
[ 115.012442] [<ffffffff8026a233>] state_store+0xb7/0xd7
[ 115.012446] [<ffffffff8032f95f>] kobj_attr_store+0x17/0x19
[ 115.012449] [<ffffffff80307d64>] sysfs_write_file+0xe4/0x119
[ 115.012453] [<ffffffff802baa7a>] vfs_write+0xae/0x137
[ 115.012456] [<ffffffff802babc7>] sys_write+0x47/0x70
[ 115.012459] [<ffffffff8020b73a>] system_call_fastpath+0x16/0x1b
[ 115.012467] ---[ end trace 829828966f6f24dc ]---
Signed-off-by: Reinette Chatre <reinette.chatre@intel.com>
Tested-by: Ming Lei <tom.leiming@gmail.com>
Cc: Rafael J. Wysocki <rjw@sisk.pl>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
2009-02-04 16:11:42 -05:00
..
2009-01-16 14:45:34 -05:00
2009-01-08 16:29:41 +00:00
2009-01-29 18:19:30 -08:00
2009-01-08 08:31:14 -08:00
2009-01-28 15:55:48 -08:00
2009-01-16 16:15:13 +11:00
2009-01-31 15:51:31 -08:00
2009-01-10 06:12:18 -08:00
2009-02-02 23:26:57 -08:00
2009-01-12 20:56:42 +01:00
2009-01-19 15:36:21 -07:00
2009-01-28 17:15:52 +11:00
2009-01-29 20:19:48 +01:00
2009-01-27 02:15:47 -05:00
2009-01-29 18:04:43 -08:00
2009-01-31 15:08:56 -08:00
2009-01-29 11:23:12 +01:00
2009-01-29 18:04:45 -08:00
2009-01-26 21:19:53 +01:00
2009-02-02 20:12:23 +01:00
2009-01-29 18:09:41 -08:00
2009-01-16 15:05:54 -08:00
2009-01-11 01:34:25 +01:00
2009-01-26 12:24:38 -08:00
2009-01-15 16:39:40 -08:00
2009-01-30 11:34:11 +10:30
2009-01-07 11:31:52 -08:00
2009-01-09 08:31:11 +11:00
2009-02-01 10:41:02 -02:00
2009-01-09 16:54:41 -08:00
2009-01-13 10:36:02 -06:00
2009-01-13 14:52:35 -08:00
2009-02-03 15:16:48 -08:00
2009-02-02 20:57:07 +01:00
2009-01-29 18:12:58 -08:00
2009-02-04 16:11:42 -05:00
2009-01-09 15:49:06 -07:00
2009-01-17 17:26:39 +01:00
2009-01-29 18:19:29 -08:00
2009-01-06 15:59:31 -08:00
2009-01-27 15:35:51 -08:00
2009-01-13 14:47:59 +11:00
2009-01-29 18:04:45 -08:00
2009-01-09 03:39:43 -05:00
2009-01-26 02:09:26 +03:00
2009-01-16 16:15:14 +11:00
2009-01-06 15:59:28 -08:00
2009-01-30 21:50:49 +00:00
2009-01-15 16:39:36 -08:00
2009-01-25 17:59:26 -08:00
2009-01-25 08:14:53 -06:00
2009-01-30 08:40:54 -08:00
2009-01-26 21:19:54 +01:00
2009-01-29 18:19:29 -08:00
2009-02-02 17:52:39 +00:00
2009-01-23 12:57:20 +00:00
2009-02-02 19:26:44 -08:00
2009-02-02 19:17:56 -08:00
2009-01-08 08:31:14 -08:00
2009-01-24 16:48:42 +00:00
2009-01-29 13:20:36 +01:00
2009-01-12 20:56:43 +01:00
2009-01-09 04:56:56 -05:00