浏览代码

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>
Ivo van Doorn 17 年之前
父节点
当前提交
e6d3e90208
共有 1 个文件被更改,包括 5 次插入0 次删除
  1. 5 0
      drivers/net/wireless/rt2x00/rt61pci.c

+ 5 - 0
drivers/net/wireless/rt2x00/rt61pci.c

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