Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 102922
b: refs/heads/master
c: 4c55523
h: refs/heads/master
v: v3
  • Loading branch information
Holger Schurig authored and John W. Linville committed Jun 14, 2008
1 parent 43d15e3 commit 009aab8
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 5314325692239a977a58fc796b4f4fb783643012
refs/heads/master: 4c55523e600ee762c2b00b1ade4c5a82b57d07aa
12 changes: 12 additions & 0 deletions trunk/drivers/net/wireless/libertas/if_cs.c
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,12 @@ static int if_cs_poll_while_fw_download(struct if_cs_card *card, uint addr, u8 r
#define IF_CS_SCRATCH_BOOT_OK 0x00
#define IF_CS_SCRATCH_HELPER_OK 0x5a

/*
* Used to detect ancient chips:
*/
#define IF_CS_PRODUCT_ID 0x0000001C
#define IF_CS_CF8385_B1_REV 0x12


/********************************************************************/
/* I/O and interrupt handling */
Expand Down Expand Up @@ -861,6 +867,12 @@ static int if_cs_probe(struct pcmcia_device *p_dev)
p_dev->irq.AssignedIRQ, p_dev->io.BasePort1,
p_dev->io.BasePort1 + p_dev->io.NumPorts1 - 1);

/* Check if we have a current silicon */
if (if_cs_read8(card, IF_CS_PRODUCT_ID) < IF_CS_CF8385_B1_REV) {
lbs_pr_err("old chips like 8385 rev B1 aren't supported\n");
ret = -ENODEV;
goto out2;
}

/* Load the firmware early, before calling into libertas.ko */
ret = if_cs_prog_helper(card);
Expand Down

0 comments on commit 009aab8

Please sign in to comment.