summaryrefslogtreecommitdiffstats
path: root/drivers/net/tg3.c
diff options
context:
space:
mode:
authorReinette Chatre <reinette.chatre@intel.com>2009-02-10 21:02:49 +0100
committerJohn W. Linville <linville@tuxdriver.com>2009-02-11 17:27:21 +0100
commit89c581b3fb2986e303f1299e6458e3e9b115fa3f (patch)
tree6123009bfd05d833060ecf44c9965870beb5e3d5 /drivers/net/tg3.c
parentzd1211rw: treat MAXIM_NEW_RF(0x08) as UW2453_RF(0x09) for TP-Link WN322/422G (diff)
downloadlinux-89c581b3fb2986e303f1299e6458e3e9b115fa3f.tar.xz
linux-89c581b3fb2986e303f1299e6458e3e9b115fa3f.zip
iwlwifi: fix suspend/resume and its usage of pci saved state
Here we do two things: First, revert "iwlwifi: save PCI state before suspend, restore after resume". That misguided patch led to being unable to use iwlwifi devices after resume. Next, indicate to PCI driver that the saved PCI state is valid during suspend. We restore PCI state and enable the device when network interface is created, similarly PCI state is saved and the device is disabled when network interface is removed. Thus, when .suspend is called the PCI state is saved and device is disabled. This is the case even if an interface is never created as PCI state is saved and device disabled during .probe. PCI driver assumes PCI state is saved in .suspend. Saving the state at this time will save state of disabled device and thus cause problems during resume (resuming a disabled device). We thus indicate directly to PCI driver that current PCI saved state is valid. Signed-off-by: Reinette Chatre <reinette.chatre@intel.com> Tested-by: Alex Riesen <fork0@users.sf.net> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions