wl1251: do quick poll for cmd complete interrupt
authorGrazvydas Ignotas <notasas@gmail.com>
Wed, 22 May 2013 00:13:54 +0000 (03:13 +0300)
committerGrazvydas Ignotas <notasas@gmail.com>
Thu, 23 May 2013 22:13:08 +0000 (01:13 +0300)
commitc494d28de299d1a0792a733dc1b453f5bc59fa89
tree171cde0c33f7d943b559ed5da19e0564a1e5cd77
parente9ae6157999c9faba3d89bf19d5a5d2a7f2d156f
wl1251: do quick poll for cmd complete interrupt

Most of commands are complete on second read from status register, so
it's unwise to sleep after first try, as sleep may take much longer than
desired 1ms (which is actually already too much waiting for most commands).
So use udelay() for first several tries, and only sleep if command takes
longer, like wl1271+ driver does. This shortens typical powersave setup
time from 50+ ms to <1 ms.
drivers/net/wireless/wl1251/cmd.c