From c494d28de299d1a0792a733dc1b453f5bc59fa89 Mon Sep 17 00:00:00 2001 From: Grazvydas Ignotas Date: Wed, 22 May 2013 03:13:54 +0300 Subject: [PATCH] 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-format-patch failed