]> git.baikalelectronics.ru Git - kernel.git/commit
wl1271: Improve command polling
authorJuuso Oikarinen <juuso.oikarinen@nokia.com>
Wed, 28 Apr 2010 06:49:59 +0000 (09:49 +0300)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 28 Apr 2010 20:50:25 +0000 (16:50 -0400)
commit8d4cec7eee23a9a92d4b131794283ecd26276fd9
tree18d3e8b6dd64032b03329596a117026da4cfaa6e
parentfe592b01467accc75cf18adff47e8d5f48d55f0f
wl1271: Improve command polling

In testing I noticed that the wl1271 commands fall into two categories. In the
first category are "fast" commands, these mostly take only 0 or 1 polls to
complete, but occasionally upto 50 (giving a 0.5ms execution time.) In the
second category, the command completion takes well more than 0.5ms (from
1.5ms upwards.)

This patch fixes command polling such that it is optimal for the fast commands,
but also allows sleep for the longer ones.

Signed-off-by: Juuso Oikarinen <juuso.oikarinen@nokia.com>
Reviewed-by: Luciano Coelho <luciano.coelho@nokia.com>
Signed-off-by: Luciano Coelho <luciano.coelho@nokia.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/wl12xx/wl1271_cmd.c