forked from luck/tmp_suning_uos_patched
libertas: speeds up downloading of CF firmware
Keep the timeout the same (1000*500 == 100000 * 5), but take shorter naps. Makes downloading the firmware slightly faster. Signed-off-by: Holger Schurig <hs4233@mail.mn-solutions.de> Acked-by: Dan Williams <dcbw@redhat.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
parent
b43441a49d
commit
93416c871f
@ -148,11 +148,11 @@ static int if_cs_poll_while_fw_download(struct if_cs_card *card, uint addr, u8 r
|
|||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
for (i = 0; i < 1000; i++) {
|
for (i = 0; i < 100000; i++) {
|
||||||
u8 val = if_cs_read8(card, addr);
|
u8 val = if_cs_read8(card, addr);
|
||||||
if (val == reg)
|
if (val == reg)
|
||||||
return i;
|
return i;
|
||||||
udelay(500);
|
udelay(5);
|
||||||
}
|
}
|
||||||
return -ETIME;
|
return -ETIME;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user