Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 38206
b: refs/heads/master
c: a8244b5
h: refs/heads/master
v: v3
  • Loading branch information
Russell King authored and Russell King committed Oct 1, 2006
1 parent 02249f6 commit 753233e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 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: 1fbbac4bcb03033d325c71fc7273aa0b9c1d9a03
refs/heads/master: a8244b564ccc46dabf2367008aecf2b380a9be8d
11 changes: 7 additions & 4 deletions trunk/drivers/serial/serial_cs.c
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,8 @@ module_param(buggy_uart, int, 0444);
/* Table of multi-port card ID's */

struct serial_quirk {
u_short manfid;
u_short prodid;
unsigned int manfid;
unsigned int prodid;
int multi; /* 1 = multifunction, > 1 = # ports */
};

Expand Down Expand Up @@ -645,9 +645,12 @@ static int serial_config(struct pcmcia_device * link)
if (first_tuple(link, tuple, parse) == CS_SUCCESS) {
info->manfid = parse->manfid.manf;
info->prodid = parse->manfid.card;

for (i = 0; i < ARRAY_SIZE(quirks); i++)
if ((info->manfid == quirks[i].manfid) &&
(info->prodid == quirks[i].prodid)) {
if ((quirks[i].manfid == ~0 ||
quirks[i].manfid == info->manfid) &&
(quirks[i].prodid == ~0 ||
quirks[i].prodid == info->prodid)) {
info->quirk = &quirks[i];
break;
}
Expand Down

0 comments on commit 753233e

Please sign in to comment.