rt61pci: fix module reloading
authorPavel Roskin <proski@gnu.org>
Sun, 2 Aug 2009 18:30:02 +0000 (14:30 -0400)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 4 Aug 2009 20:44:24 +0000 (16:44 -0400)
commit117839bd1251dc654938c529c95c7611ac260351
tree6a374c36e8c87add6399d32b959e0b77a942dd6e
parentc1be5152860218dffea6a47cff5ea31a56c6cff5
rt61pci: fix module reloading

Unloading rt61pci can leave the device in such state that reloading
rt61pci would fail to reinitialize it.  Bogus data would be read from
the EEPROM and the RF version won't be recognized.

It appears that unloading rt61pci with power saving enabled would have
such effect.  To initialize the device properly, SOFT_RESET_CSR should
be set to the same value as rt61pci_config_ps() uses to wake up the
device.

Signed-off-by: Pavel Roskin <proski@gnu.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/rt2x00/rt61pci.c