Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 73442
b: refs/heads/master
c: 4ef3170
h: refs/heads/master
v: v3
  • Loading branch information
Holger Schurig authored and Jeff Garzik committed Nov 10, 2007
1 parent 89c8728 commit 10016c1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 0f39c4ab03f072b13e783858df082877c0110b2b
refs/heads/master: 4ef31702c1a83a380d5e144f5af55e21f59c9bb6
7 changes: 5 additions & 2 deletions trunk/drivers/net/wireless/libertas/if_cs.c
Original file line number Diff line number Diff line change
Expand Up @@ -148,11 +148,11 @@ static int if_cs_poll_while_fw_download(struct if_cs_card *card, uint addr, u8 r
{
int i;

for (i = 0; i < 500; i++) {
for (i = 0; i < 1000; i++) {
u8 val = if_cs_read8(card, addr);
if (val == reg)
return i;
udelay(100);
udelay(500);
}
return -ETIME;
}
Expand Down Expand Up @@ -878,6 +878,9 @@ static int if_cs_probe(struct pcmcia_device *p_dev)
goto out3;
}

/* Clear any interrupt cause that happend while sending
* firmware/initializing card */
if_cs_write16(card, IF_CS_C_INT_CAUSE, IF_CS_C_IC_MASK);
if_cs_enable_ints(card);

/* And finally bring the card up */
Expand Down

0 comments on commit 10016c1

Please sign in to comment.