diff options
author | Ivo van Doorn <ivdoorn@gmail.com> | 2008-07-27 15:06:50 +0200 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-08-01 15:31:34 -0400 |
commit | e6d3e902088ac5da77b074f513e3cb80422ff471 (patch) | |
tree | 998f5c9021f3152ad9606400a61a84a178f54a5c | |
parent | ada662f3eb6231ab27f5e6366d4e5c395d25edd3 (diff) | |
download | blackbird-op-linux-e6d3e902088ac5da77b074f513e3cb80422ff471.tar.gz blackbird-op-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.c | 5 |
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; |