rt2x00: Increase REGISTER_BUSY_COUNT
authorIvo van Doorn <ivdoorn@gmail.com>
Sat, 13 Nov 2010 18:08:14 +0000 (19:08 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 17 Nov 2010 21:18:45 +0000 (16:18 -0500)
For some hardware the REGISTER_BUSY_COUNT isn't sufficient,
increase the REGISTER_BUSY_COUNT to 100 to catch most
devices which have more problems with accessing the registers.

For normal operating devices nothing would change as they will
exit the loop early anyway.

Signed-off-by: Ivo van Doorn <IvDoorn@gmail.com>
Acked-by: Helmut Schaa <helmut.schaa@googlemail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/rt2x00/rt2x00.h

index 42bd3a96f23b8fac6f847a61e04325b8a1c10be5..0a55eeff871e80126c07616eac938087393f184e 100644 (file)
@@ -915,7 +915,7 @@ struct rt2x00_dev {
  * in those cases REGISTER_BUSY_COUNT attempts should be
  * taken with a REGISTER_BUSY_DELAY interval.
  */
-#define REGISTER_BUSY_COUNT    5
+#define REGISTER_BUSY_COUNT    100
 #define REGISTER_BUSY_DELAY    100
 
 /*