summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIvo van Doorn2008-07-27 15:06:50 +0200
committerJohn W. Linville2008-08-01 21:31:34 +0200
commite6d3e902088ac5da77b074f513e3cb80422ff471 (patch)
tree998f5c9021f3152ad9606400a61a84a178f54a5c
parentrt2x00: Fix partial antenna configuration (diff)
downloadkernel-qcow2-linux-e6d3e902088ac5da77b074f513e3cb80422ff471.tar.gz
kernel-qcow2-linux-e6d3e902088ac5da77b074f513e3cb80422ff471.tar.xz
kernel-qcow2-linux-e6d3e902088ac5da77b074f513e3cb80422ff471.zip
rt2x00: rt61pci needs another millisecond after firmware upload
After the hardware has indicated the firmware upload has completed and the device is ready, we should wait another millisecond to make sure the device is really ready to continue. Without this timout, bringing the interface down and up again will fail due to incorrect register initialization. Signed-off-by: Ivo van Doorn <IvDoorn@gmail.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
-rw-r--r--drivers/net/wireless/rt2x00/rt61pci.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/net/wireless/rt2x00/rt61pci.c b/drivers/net/wireless/rt2x00/rt61pci.c
index fbe2a652e014..087e90b328cd 100644
--- a/drivers/net/wireless/rt2x00/rt61pci.c
+++ b/drivers/net/wireless/rt2x00/rt61pci.c
@@ -1004,6 +1004,11 @@ static int rt61pci_load_firmware(struct rt2x00_dev *rt2x00dev, const void *data,
}
/*
+ * Hardware needs another millisecond before it is ready.
+ */
+ msleep(1);
+
+ /*
* Reset MAC and BBP registers.
*/
reg = 0;