Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 280698
b: refs/heads/master
c: 7f97c00
h: refs/heads/master
v: v3
  • Loading branch information
Maciej Szmigiero authored and Greg Kroah-Hartman committed Dec 10, 2011
1 parent b1947cc commit ee5b30f
Show file tree
Hide file tree
Showing 2 changed files with 5 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: 7d73aaf1d45d9bd95638680361db4d019ebb75bb
refs/heads/master: 7f97c000e87751fdca69d14cba2bbba795c1a972
8 changes: 4 additions & 4 deletions trunk/drivers/tty/serial/serial_cs.c
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ static int serial_probe(struct pcmcia_device *link)
info->p_dev = link;
link->priv = info;

link->config_flags |= CONF_ENABLE_IRQ;
link->config_flags |= CONF_ENABLE_IRQ | CONF_AUTO_SET_IO;
if (do_sound)
link->config_flags |= CONF_ENABLE_SPKR;

Expand Down Expand Up @@ -445,7 +445,7 @@ static int simple_config(struct pcmcia_device *link)

/* First pass: look for a config entry that looks normal.
* Two tries: without IO aliases, then with aliases */
link->config_flags |= CONF_AUTO_SET_VPP | CONF_AUTO_SET_IO;
link->config_flags |= CONF_AUTO_SET_VPP;
for (try = 0; try < 4; try++)
if (!pcmcia_loop_config(link, simple_config_check, &try))
goto found_port;
Expand Down Expand Up @@ -501,7 +501,8 @@ static int multi_config_check_notpicky(struct pcmcia_device *p_dev,
{
int *base2 = priv_data;

if (!p_dev->resource[0]->end || !p_dev->resource[1]->end)
if (!p_dev->resource[0]->end || !p_dev->resource[1]->end ||
p_dev->resource[0]->start + 8 != p_dev->resource[1]->start)
return -ENODEV;

p_dev->resource[0]->end = p_dev->resource[1]->end = 8;
Expand All @@ -520,7 +521,6 @@ static int multi_config(struct pcmcia_device *link)
struct serial_info *info = link->priv;
int i, base2 = 0;

link->config_flags |= CONF_AUTO_SET_IO;
/* First, look for a generic full-sized window */
if (!pcmcia_loop_config(link, multi_config_check, &info->multi))
base2 = link->resource[0]->start + 8;
Expand Down

0 comments on commit ee5b30f

Please sign in to comment.