]> err.no Git - linux-2.6/commitdiff
rt2x00: rt61pci needs another millisecond after firmware upload
authorIvo van Doorn <ivdoorn@gmail.com>
Sun, 27 Jul 2008 13:06:50 +0000 (15:06 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 1 Aug 2008 19:31:34 +0000 (15:31 -0400)
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>
drivers/net/wireless/rt2x00/rt61pci.c

index fbe2a652e014b0c194aee79d0c3aa82ad2045dfe..087e90b328cd285dfbda2837a807ca243d1fe788 100644 (file)
@@ -1003,6 +1003,11 @@ static int rt61pci_load_firmware(struct rt2x00_dev *rt2x00dev, const void *data,
                return -EBUSY;
        }
 
+       /*
+        * Hardware needs another millisecond before it is ready.
+        */
+       msleep(1);
+
        /*
         * Reset MAC and BBP registers.
         */