Commit 4914c7f8 authored by Dominik Brodowski's avatar Dominik Brodowski Committed by Linus Torvalds

pcmcia: xirc2ps_cs bugfix

We need to set io_lines to 10 unconditionally.
Reported-by: default avatarKomuro <komurojun-mbn@nifty.com>
CC: netdev@vger.kernel.org
Signed-off-by: default avatarDominik Brodowski <linux@dominikbrodowski.net>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent fe622e76
...@@ -808,6 +808,7 @@ xirc2ps_config(struct pcmcia_device * link) ...@@ -808,6 +808,7 @@ xirc2ps_config(struct pcmcia_device * link)
} }
link->resource[0]->flags |= IO_DATA_PATH_WIDTH_16; link->resource[0]->flags |= IO_DATA_PATH_WIDTH_16;
link->io_lines = 10;
if (local->modem) { if (local->modem) {
int pass; int pass;
...@@ -839,7 +840,6 @@ xirc2ps_config(struct pcmcia_device * link) ...@@ -839,7 +840,6 @@ xirc2ps_config(struct pcmcia_device * link)
} }
printk(KNOT_XIRC "no ports available\n"); printk(KNOT_XIRC "no ports available\n");
} else { } else {
link->io_lines = 10;
link->resource[0]->end = 16; link->resource[0]->end = 16;
for (ioaddr = 0x300; ioaddr < 0x400; ioaddr += 0x10) { for (ioaddr = 0x300; ioaddr < 0x400; ioaddr += 0x10) {
link->resource[0]->start = ioaddr; link->resource[0]->start = ioaddr;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment