From: Grazvydas Ignotas Date: Wed, 22 May 2013 00:13:54 +0000 (+0300) Subject: wl1251: do quick poll for cmd complete interrupt X-Git-Tag: sz_155~25 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c494d28de299d1a0792a733dc1b453f5bc59fa89;p=pandora-kernel.git 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. --- Reading git-diff-tree failed