Netdev List
 help / color / mirror / Atom feed
* [PATCH] pcmcia: xirc2ps_cs bugfix
@ 2010-08-13 18:56 Dominik Brodowski
  2010-08-13 23:48 ` Linus Torvalds
  0 siblings, 1 reply; 2+ messages in thread
From: Dominik Brodowski @ 2010-08-13 18:56 UTC (permalink / raw)
  To: Linus Torvalds; +Cc: netdev, Komuro

Linus,

could you apply the attached bugfix for PCMCIA, please? Alternatively,
please pull from 

git://git.kernel.org/pub/scm/linux/kernel/git/brodo/pcmcia-2.6.git master

where this one patch is located. What do you prefer, actually, if it is just
one patch I want to push to you?

Thanks & best,

	Dominik

---
From: Dominik Brodowski <linux@dominikbrodowski.net>
Date: Fri, 13 Aug 2010 20:33:34 +0200
Subject: [PATCH] pcmcia: xirc2ps_cs bugfix

We need to set io_lines to 10 unconditionally.

Reported-by: Komuro <komurojun-mbn@nifty.com>
CC: netdev@vger.kernel.org
Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net>

diff --git a/drivers/net/pcmcia/xirc2ps_cs.c b/drivers/net/pcmcia/xirc2ps_cs.c
index 4eb6f98..f581952 100644
--- a/drivers/net/pcmcia/xirc2ps_cs.c
+++ b/drivers/net/pcmcia/xirc2ps_cs.c
@@ -808,6 +808,7 @@ xirc2ps_config(struct pcmcia_device * link)
     }
 
     link->resource[0]->flags |= IO_DATA_PATH_WIDTH_16;
+    link->io_lines = 10;
     if (local->modem) {
 	int pass;
 
@@ -839,7 +840,6 @@ xirc2ps_config(struct pcmcia_device * link)
 	}
 	printk(KNOT_XIRC "no ports available\n");
     } else {
-	link->io_lines = 10;
 	link->resource[0]->end = 16;
 	for (ioaddr = 0x300; ioaddr < 0x400; ioaddr += 0x10) {
 	    link->resource[0]->start = ioaddr;

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-08-13 23:49 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-08-13 18:56 [PATCH] pcmcia: xirc2ps_cs bugfix Dominik Brodowski
2010-08-13 23:48 ` Linus Torvalds

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox