Skip to content

Commit

Permalink
rt2x00: rt61pci needs another millisecond after firmware upload
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Ivo van Doorn authored and John W. Linville committed Aug 1, 2008
1 parent ada662f commit e6d3e90
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions drivers/net/wireless/rt2x00/rt61pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*/
Expand Down

0 comments on commit e6d3e90

Please sign in to comment.